Using Jupyter notebooks on the frontends: Difference between revisions
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
</pre> | </pre> | ||
After some command lines down, it should appear a text saying "<code>Or copy and paste one of these URLs</code>" | After some command lines down, it should appear a text saying "<code>Or copy and paste one of these URLs: | ||
http://localhost:8890/lab?token=26d5c6636d8c325a3f8e1570555d3a3a7c5bcac6c14f40e9 | |||
or http://127.0.0.1:8890/lab?token=26d5c6636d8c325a3f8e1570555d3a3a7c5bcac6c14f40e9</code>" | |||
Copy & Paste any of those two links in your browser and you should be able to navigate into your home directory through the Jupyter server in your browser. |
Revision as of 13:06, 15 November 2023
Remote data analysis, compilations, and short test runs are possible by using Jupyter notebooks. The configuration for a Jupyter notebook server has to be done after loading the python module. As of August 3, 2021 the system version of python is 3.8.11. To access the python module provided by Anaconda3-2021.05 type in the terminal:
>> module load python/anaconda3
This loads many packages, including ipython, Jupyter and YT. If additional packages are needed in the Anaconda environment, contact Andrius.
To call jupyter-lab without background type in the terminal:
>> jupiter-lab --no-browser
It is possible to call jupyter-lab using background, type in the terminal:
>> nohup jupyter-lab --no-browser >& jlog &
it should appear an ID number of your job.
To check the URL to use and open the Jupyter kernel in the browser type in the terminal:
>> cat jlog
After some command lines down, it should appear a text saying "Or copy and paste one of these URLs:
http://localhost:8890/lab?token=26d5c6636d8c325a3f8e1570555d3a3a7c5bcac6c14f40e9
or http://127.0.0.1:8890/lab?token=26d5c6636d8c325a3f8e1570555d3a3a7c5bcac6c14f40e9
"
Copy & Paste any of those two links in your browser and you should be able to navigate into your home directory through the Jupyter server in your browser.