Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
habrok:examples:jupyter [2024/08/02 15:34] – Update for habrok pedrohabrok:examples:jupyter [2026/04/07 15:43] (current) pedro
Line 60: Line 60:
  
 The next step is to create a batch job that will start jupyter within your virtual environment. A sample jobscript may look like: The next step is to create a batch job that will start jupyter within your virtual environment. A sample jobscript may look like:
-<code>+<code shell>
 #!/bin/bash #!/bin/bash
 #SBATCH --nodes=1 #SBATCH --nodes=1
Line 76: Line 76:
  
 # Activate the virtual environment # Activate the virtual environment
-source ~/virtual_env/jupyter_tunnel/bin/activate+source ~/virtual_env/myenv/bin/activate
  
 # Start the jupyter server, using the hostname of the node as the way to connect to it # Start the jupyter server, using the hostname of the node as the way to connect to it