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: docs/source/installation/developer-anaconda.rst
+13-12Lines changed: 13 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Developer installations are useful for those who want to customise the *labscrip
8
8
Moreover, there is now an option to write and use custom labscript device drivers outside of the labscript-devices installation directory.
9
9
10
10
11
-
In this example, we will use an existing conda environment named `py38`.
11
+
In this example, we will use an existing conda environment named `labscript`.
12
12
Skip the first line/step if continuing on from the instructions to :ref:`set up this environment <installation/setting-up-an-environment:Anaconda Python>`.
13
13
14
14
.. attention::
@@ -21,8 +21,8 @@ Skip the first line/step if continuing on from the instructions to :ref:`set up
21
21
Quick start
22
22
-----------
23
23
24
-
.. note:: After the first line, the current directory is ommited from the command prompt
25
-
for brevity.
24
+
.. note::
25
+
After the first line, the current directory is ommited from the command prompt for brevity.
Copy file name to clipboardExpand all lines: docs/source/installation/regular-anaconda.rst
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Regular installation (Anaconda Cloud)
2
2
=====================================
3
3
4
-
In this example, we will use an existing conda environment named `py38`.
4
+
In this example, we will use an existing conda environment named `labscript`.
5
5
Skip the first line/step if continuing on from the instructions to :ref:`set up this environment <installation/setting-up-an-environment:Anaconda Python>`.
4. Create a profile directory in your home directory (the location of user data; see :doc:`/changes`):
44
44
45
45
.. code-block:: console
46
46
47
-
(py38) C:\> labscript-profile-create
47
+
(labscript) C:\> labscript-profile-create
48
48
49
49
50
50
5. (Optional) Create shortcuts for the GUI applications (blacs, lyse, runmanager, and runviewer) and place them in the start-menu (or non-Windows OS equivalent).
Copy file name to clipboardExpand all lines: docs/source/installation/setting-up-an-environment.rst
+19-9Lines changed: 19 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,8 @@ Below we outline how to create and activate a virtual environment for Anaconda P
9
9
Anaconda Python
10
10
---------------
11
11
Anaconda Python includes a `virtual environment manager <https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ as part of the `conda` executable.
12
-
Here's an example (on Windows):
12
+
Below is an example (on Windows).
13
+
13
14
14
15
.. note::
15
16
@@ -27,33 +28,39 @@ Here's an example (on Windows):
27
28
Quickstart
28
29
**********
29
30
31
+
When creating a new virtual enviornment, it is preferrable to specify the python version to use.
32
+
You will need to specify a python version that is compatible with the **labscript-suite**.
33
+
The currently compatible versions are |PyPI pyversions|.
34
+
It is recommended to select a newer version of python for a new install,
35
+
though some device drivers may require an older version of python to operate correctly.
36
+
30
37
.. code-block:: console
31
38
32
-
(base) C:\> conda create -n py38 python=3.8
33
-
(base) C:\> conda activate py38
34
-
(py38) C:\>
39
+
(base) C:\> conda create -n labscript python=3.11
40
+
(base) C:\> conda activate labscript
41
+
(labscript) C:\>
35
42
36
-
Once activated, the name of the virtual environment (in this case, `py38` ) will prefix the command line.
43
+
Once activated, the name of the virtual environment (in this case, `labscript` ) will prefix the command line.
37
44
38
45
.. _Conda Instructions:
39
46
40
47
Detailed Instructions
41
48
*********************
42
49
43
50
1. Create a virtual (conda) environment.
44
-
Here we name it `py38` and ask conda to use Python 3.8 within the virtual environment (name and Python version are variable but these are conventional choices):
51
+
Here we name it `labscript` and ask conda to use Python 3.11 within the virtual environment (name and Python version are variable but these are conventional choices):
45
52
46
53
.. code-block:: console
47
54
48
-
(base) C:\> conda create -n py38 python=3.8
55
+
(base) C:\> conda create -n labscript python=3.11
49
56
50
57
51
58
2. Activate the virtual (conda) environment:
52
59
53
60
.. code-block:: console
54
61
55
-
(base) C:\> conda activate py38
56
-
(py38) C:\>
62
+
(base) C:\> conda activate labscript
63
+
(labscript) C:\>
57
64
58
65
59
66
Regular Python
@@ -122,3 +129,6 @@ Once you have a virtual environment up and running, choose from one of the follo
0 commit comments