00 Installation
00 Installation
00 Installation
The JuPy tutorial requires Anaconda and some additional packages. The installation is de-
scribed in this document.
The installation as described in this document creates a separate environment named ”jupy-
course” with all required packages. Of course, you may also perform the installation in Ana-
conda’s ”base” environment. In this case you will be informed that some packages are already
installed.
This document assumes Windows as operating system. The installation for other operating
systems follows similar steps.
Note: Please make sure that the JuPy Python course is extracted inside you home direc-
tory, in Windows this is Users\Username. The course will be extracted in a folder named
JuPyTutorialV2En.
Important Note
To use the JuPy tutorial, JupyterLab must always be started inside the same envi-
ronment (e.g. ”jupycourse”), in which you installed the packages as described in this
document.
1
Step 1: Installation of Anaconda
(d) In the Windows start menu you should now find the Anaconda folder:
(e) Select Anaconda Navigator and start it.
(f) You will see the navigator screen with the available Apps, e.g. JupyterLab.
2
Step 2: Installation of an Environment
(d) Name the new environment ”jupycourse”1 and select 3.9.7 as Python version2 :
1
Hint: In order to avoid problems make sure that the environment name does not contain uppercase letters,
special characters or blanks.
2
You may equally select a higher Python 3.9.x version.
3
Step 3: Configuration of the Environment
(a) In order to install packages and configure the environment we need to execute some
commands. We will use the Powershell that needs to be installed first.
Go to the Powershell Prompt tile and click on ”Install”:
(c) Please enter the following commands in the specified order in the prompt. The
commands will install the required packages.
You might be asked to confirm the installation with ”y”.3
conda install -c conda-forge nodejs=17.4.0
conda install -c conda-forge numpy=1.21.5
conda install -c conda-forge matplotlib=3.5.1
conda install -c conda-forge scipy=1.7.3
conda install -c conda-forge ipython=7.31.1
conda install -c conda-forge jupyterlab=3.3.0
conda install -c conda-forge ipympl=0.8.8
(e) Now the Widgets Extension must be activated with the follwing command:
jupyter nbextension enable --py widgetsnbextension
4
Step 4: Starting JupyterLab and the JuPy Tutorial
(d) Go to the file browser, open the directory ”JuPyTutorialV2En” and start the tutorial
by double clicking on the file ”00 Introduction.ipynb”.
5
Hints:
Problems with the interactive exercises can often be resolved by restarting the JupyterLab
extensions. Please start the Powershell Prompt and enter the following commands:
jupyter lab clean
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter lab build
jupyter nbextension enable --py widgetsnbextension
If you get the error with Exit code: 1 when lauching Anaconda Apps, please do the
following:
Enter ”Registry Editor” or ”regedit” in the Windows search bar and open the application.
Go to the path
Computer\HKEY CURRENT USER\Software\Microsoft\Command Processor
and delete – if present – the file ”Autorun”.