This is an old revision of the document!


Connecting to the web interface

After the successful launch of the container you should see instructions like following:

[Jupyter] container is up. Preparing the environment...

[Jupyter] running jupyter notebook...

[Jupyter] jupyter is up. You can access it by following the instructions.

[Jupyter] 1. Open a new terminal and tunnel port 8888 from the host gwdc047

[Jupyter] a) With direct access to nodes: ssh -L 0.0.0.0:8888:172.18.0.2:8888 yourlogin@gwdc047.gwdg.de -N

[Jupyter] b) Without direct access: ssh -L 0.0.0.0:8888:0.0.0.0:8640 yourlogin@login.gwdg.de ssh -L 0.0.0.0:8640:0.0.0.0:8640 gwdu101 ssh -L 0.0.0.0:8640:172.18.0.2:8888 -N gwdc047

[Jupyter] 2. Open the link in a browser: http://0.0.0.0:8888/?token=ce28b2500a5f2c0e637c7c8a67fa318155e4c36bb3e5608b

The important part here is step 1. If you can directly log in to the computing nodes like gwdc047.gwdg.de, then you can run the command 1a in the terminal, otherwise run the command 1b. After that the corresponding port will be tunneled and the terminal becomes unavailable. Don’t close it! If everything is done right, then just open the link in your browser mentioned in step 2 and you should be able to access your Jupyter instance.

Installing python packages

In order to install Python packages, create a Terminal in Jupyter (New->Terminal). After that you will be redirected to a web page with a virtual shell inside the container, where you can execute commands.

You have no root access inside the container, therefore you should install Python packages in your $HOME directory (remember that the $HOME inside the container is actually the job submission folder). You can do this with the next command using pip3:

pip3 install --user package_name

After that, the package will be installed in $HOME/.local and will be available after the container is destroyed. In order to have these packages when you run other instances of Jupyter, you should submit the job from the same folder.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies