You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-15Lines changed: 12 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ Python-3.8 such as that provided by
60
60
First install [Docker](https://www.docker.com/products/docker-desktop). Once
61
61
installed, start the Docker desktop application.
62
62
63
-
Next check out or download the glowscript repository. Then:
63
+
Next check out or download the glowscript repository. Then, in a terminal window, change directory to the glowscript repository and type:
64
64
65
65
docker-compose up
66
66
@@ -80,28 +80,25 @@ When you're finished, shut down the system with:
80
80
81
81
To run a local webserver with only the datastore in Docker, but the
82
82
webserver itself running natively you need Python-3.8.3. The easiest method
83
-
is probably to install [anaconda](https://docs.anaconda.com/anaconda/install/) (or [miniconda](https://docs.conda.io/en/latest/miniconda.html), if you don't want the GUI package manager and extra applications). Once you have that you need to check out
84
-
the glowscript repository.
85
-
(How you do this depends on your familiarity with git. The simplest is to download a .zip file of the repository [here](https://github.com/vpython/glowscript/archive/refs/heads/master.zip))
86
-
First "cd" to the `glowscript` directory (the root directory of the repository)
87
-
and create a virtual environment for glowscript like so:
83
+
is probably to install [anaconda](https://docs.anaconda.com/anaconda/install/) (or [miniconda](https://docs.conda.io/en/latest/miniconda.html), if you don't want the GUI package manager and extra applications). With Anaconda or miniconda you can use the `conda` command to do this, for example:
88
84
89
-
cd /path/to/glowscript
90
-
python -m venv venv
85
+
conda install -n py383 python=3.8.3
86
+
conda activate py383
91
87
92
-
This will build a virtual environment for running locally. To activiate the virtual environment:
88
+
Your terminal prompt should now have a `(py383)` indicating that you have
89
+
activated the python-3.8.3 virtual environment. Once you have that you need to check out the glowscript repository. (How you do this depends on your familiarity with git. The simplest is to download a .zip file of the repository [here](https://github.com/vpython/glowscript/archive/refs/heads/master.zip))
90
+
Next change directory to the glowscript repository:
93
91
94
-
mac: source venv/bin/activate
95
-
windows (power shell): venv\Scripts\Activate.ps1
96
-
windows (cmd.exe shell): venv\Scripts\activate.bat
92
+
cd /path/to/glowscript
97
93
98
-
Your terminal prompt should now have a `(venv)` indicating that you have
99
-
activated the glowscript virtual environment. Before you can run glowscript the
94
+
Before you can run glowscript the
100
95
first time, you'll need to install dependencies into the virtual environment.
101
96
This can be done with pip:
102
97
103
98
pip install -r requirements.txt
104
99
100
+
If you encounter any problems, follow the suggestions provided by the error messages.
101
+
105
102
In order to run the local datastore emulator it's easiest to use
0 commit comments