The JGU Jupyter Notebook server#

Jupyter notebook’ servers are amazing to present your lab results/notes/analysis to an audience. The JGU provides a Jupyter server that avoids any software set-up from your side, it is a very simple way for you to start. Feel free to use whatever you want, but take into account that the JGU server could be down or any internet connection problem could arise. To solve that, I provide many very simple alternatives to install Python in your home/presential computer.

Using a Jupyter notebook from the JGU server#

Jupyter notebooks are web applications where you run iPython (interactive Python). More than 100 programming languages can be used there, like Julia, R, etc. Because of their versatility, Jupyter notebooks are very much used in data science.

  1. Go to https://jupyterhub.zdv.uni-mainz.de/

  2. Login with your JGU credentials, select the “Default environment” and press “Start” at the bottom of the page.

  3. Open a new notebook: “New” and select “Python 3 (ipykerner)”

  4. Click in the cell (the box)

  5. Code within the cell. For instance:

print("Hello world")
  1. Run the code of the cell: Shift + Enter (that is, Shift and Enter, with Shift already pressed). Instead you can run and create a new cell: Alt + Enter

In order to save your notebook in a .pynb file:

  1. Select “File” and “Save as…” (give it a name with no extension). In the previous jupyter tab you can see the file saved. Note that Jupyter notebooks do not use the extension .py extension but .ipynb instead.


Last but not least!#

Set-up Python on your home and presential computer.