Skip to content

Commit 9dad36a

Browse files
authored
Merge pull request #175 from danyeaw/add-conda-dev-env
Add conda dev environment instructions
2 parents 8bcc0ac + b19414a commit 9dad36a

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

Diff for: docs/developers.md

+31-7
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,10 @@ compassion wins every time.
3838

3939
All contributors are expected to follow our [code of conduct](conduct.md).
4040

41-
## Setup
42-
43-
**You must have recent versions of [Python](https://python.org/),
44-
[node.js](https://nodejs.org/en) and [npm](https://www.npmjs.com/) already
45-
installed on your system.**
46-
41+
## Setup
4742
The following steps create a working development environment for PyScript. It
48-
is through this environment that you contribute to PyScript.
43+
is through this environment that you contribute to PyScript. You can choose
44+
between two options for setting up your environment.
4945

5046
!!! danger
5147

@@ -89,6 +85,34 @@ is through this environment that you contribute to PyScript.
8985
deactivate
9086
```
9187
88+
### Option 2: Create a conda environment
89+
**This option will install Python and NodeJS for you, so you don't need to have them
90+
pre-installed on your system.**
91+
92+
* If you prefer using [conda](https://docs.conda.io/en/latest/) for environment management,
93+
you can create a conda environment that includes both Python and NodeJS:
94+
*
95+
```sh
96+
conda create --name pyscript python nodejs
97+
conda activate pyscript
98+
```
99+
100+
!!! warning
101+
102+
Replace `pyscript` with a meaningful name for the conda environment, that works for you.
103+
104+
* This creates a new environment with both Python and NodeJS installed. The prompt in your
105+
terminal will change to include the name of your conda environment indicating the sandbox is active.
106+
* To deactivate the conda environment just type the following into your terminal:
107+
108+
```sh
109+
conda deactivate
110+
```
111+
112+
* If you don't have conda installed, you can download and install
113+
[Miniconda, Miniforge](https://docs.conda.io/projects/conda), or
114+
[Anaconda](https://www.anaconda.com/download).
115+
92116
!!! info
93117
94118
The rest of the instructions on this page assume you are working in **an

0 commit comments

Comments
 (0)