Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,30 @@ You can use the Python Scripting package to run native Python scripts, import an

## How to install

1. Download [Bonsai](https://bonsai-rx.org/).
1. Install [Bonsai](https://bonsai-rx.org/).
2. From the package manager, search and install the **Bonsai - Python Scripting** package.

## Create a Python environment
## Install Python

In addition to the Python Scripting package you need to have a version of [Python](https://www.python.org/) installed in your system. Below are suggested installation steps for Windows and Linux.

# [Windows](#tab/windows)

Download and install the latest [Python distribution](https://www.python.org/downloads/).

# [Linux](#tab/linux)

In addition to the Python Scripting package you need to have a version of [Python](https://www.python.org/) installed in your system. We recommend installing the official distributions and using `venv` to create virtual environments to run your specific projects.
Run the following commands to install the latest stable Python for your operating system:

```bash
sudo apt install python3
sudo apt install libpython3-dev
```
---

## Create a Python environment

To create a virtual environment you can run the following command from inside the folder where you want to install the environment:
We recommend using the `venv` tool to create virtual environments for running your specific projects. To create a virtual environment you can run the following command from inside the folder where you want to install the environment:

```ps
python -m venv .venv
Expand Down