Jupyter¶
Jupyter is an IDE specialized for the Python programming language.
What is an IDE?
See the page on IDEs.
Info
- You can run Python in a Jupyter-notebook, i.e. in a web interface with possibility of inline figures and debugging.
- Jupyter-lab is installed in the python>=3.10.8 module
Warning
Always start Jupyter in a ThinLinc session and preferably in an interactive session.
Start¶
Start a notebook like this:
or jupyter lab:A local Firefox session (not a internet web page!) should start with the Jupyter notebook/lab interface.
- If not, make jupyter work in background, start firefox and paste the address.
- <ctrl-z>
- bg
- firefox &
- copy-paste one of the addresses from the jupyter output in the terminal into the address files in the open firefox
session.
- You can browse in jupyter to a test notebook in
/proj/workshop/Jupyter-demo/Test-01.ipynb
Jupyter in a virtual environment (venv)¶
You could also use jupyter- (lab or notebook) in a virtual environment.
If you decide to use the --system-site-packages
configuration you will get jupyter
from the python modules you created you virtual environment with.
However, you won't find your locally installed packages from that jupyter session. To solve this, reinstall jupyter within the virtual environment by force (option -I
):
Be sure to start the kernel with the virtual environment name, like "project A", and not "Python 3 (ipykernel)".