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
Last revisionBoth sides next revision
working_with_python [2022/04/04 06:52] โ€“ jansenworking_with_python [2023/11/06 13:12] โ€“ [Jupyter Notebooks] jansen
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.txt ยท Last modified: 2024/04/22 10:51 by jansen