User Tools

Site Tools


working_with_python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
working_with_python [2020/12/22 14:06] โ€“ jansenworking_with_python [2023/11/06 13:12] (current) โ€“ [Jupyter Notebooks] jansen
Line 189: Line 189:
 In this example we create a python2 virtual environment in which we will install the latest version of numpy that will use the openBLAS library.  In this example we create a python2 virtual environment in which we will install the latest version of numpy that will use the openBLAS library. 
  
-:!: The procedure and paths below will work on any maris node and on the para cluster+:!: The procedure and paths below will work on any maris node. 
  
 <code bash> <code bash>
Line 269: Line 269:
 ====== Jupyter Notebooks ====== ====== Jupyter Notebooks ======
 Depending on your operating system (Fedora or RedHat) you might get a different python kernel version as the standard kernel. If you get ''python2'' as the default kernel and only option, but wish the use the ''python3'' kernel you need to add this kernel to you local environment. This can be done by executing: Depending on your operating system (Fedora or RedHat) you might get a different python kernel version as the standard kernel. If you get ''python2'' as the default kernel and only option, but wish the use the ''python3'' kernel you need to add this kernel to you local environment. This can be done by executing:
-    python3 -m ipykernel install โ€“user+    python3 -m ipykernel install --user
 Once this command has run successfully, it will have installed python3 as a jupyter kernel. Once this command has run successfully, it will have installed python3 as a jupyter kernel.
  
 After starting ''jupyter notebook'' you can select ''python3'' as kernel. After starting ''jupyter notebook'' you can select ''python3'' as kernel.
 +
 +If you need to work with several python setups (e.g. the system python3, but also from loaded environment modules), it is easy to assign a name to the generated kernel, e.g:
 +    python3 -m ipykernel install --user --name system-python3
 +
 +
working_with_python.1608645967.txt.gz ยท Last modified: 2020/12/22 14:06 by jansen