Skip to content
Snippets Groups Projects
Commit dea6118b authored by Guilherme Calandrini's avatar Guilherme Calandrini
Browse files

fixes for the new jupyter framework

parent efdc826d
No related branches found
No related tags found
2 merge requests!990Automated merge from preview to main,!971Fixes for Jupyter
...@@ -37,13 +37,13 @@ other material to your students. ...@@ -37,13 +37,13 @@ other material to your students.
To create a shareable link, we recommend to use [URL encoding](https://en.wikipedia.org/wiki/Percent-encoding) To create a shareable link, we recommend to use [URL encoding](https://en.wikipedia.org/wiki/Percent-encoding)
instead of plain text for the link in order to avoid defective links. The instead of plain text for the link in order to avoid defective links. The
[nbgitpuller link generator](https://jupyterhub.github.io/nbgitpuller/link?hub=https://taurus.hrsk.tu-dresden.de/jupyter/) [nbgitpuller link generator](https://jupyterhub.github.io/nbgitpuller/link?hub=https://jupyterhub.hpc.tu-dresden.de/)
supports you in generating valid links for sharing. supports you in generating valid links for sharing.
??? example ??? example
A shareable link for this feature looks like this: A shareable link for this feature looks like this:
``` ```
https://taurus.hrsk.tu-dresden.de/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fjdwittenauer%2Fipython-notebooks&urlpath=tree%2Fipython-notebooks%2Fnotebooks%2Flanguage%2FIntro.ipynb https://jupyterhub.hpc.tu-dresden.de/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fjdwittenauer%2Fipython-notebooks&urlpath=tree%2Fipython-notebooks%2Fnotebooks%2Flanguage%2FIntro.ipynb
``` ```
!!! warning !!! warning
...@@ -73,10 +73,10 @@ The spawn form now offers a quick start mode by passing URL parameters. ...@@ -73,10 +73,10 @@ The spawn form now offers a quick start mode by passing URL parameters.
!!! example !!! example
The following link would create a jupyter notebook session on the The following link would create a jupyter notebook session on the
partition `interactive` with the `test` environment being loaded: cluster `barnard` with 1 CPU and 1,5 GB RAM:
``` ```
https://taurus.hrsk.tu-dresden.de/jupyter/hub/spawn#/~(partition~'interactive~environment~'test) https://jupyterhub.hpc.tu-dresden.de/hub/spawn#/~(cluster~'barnard~nodes~'1~ntasks~'1~cpuspertask~'1~mempercpu~'1536)
``` ```
![URL with quickstart parameters](misc/url-quick-start.png) ![URL with quickstart parameters](misc/url-quick-start.png)
...@@ -87,18 +87,15 @@ parameter is not mentioned, the default value will be loaded. ...@@ -87,18 +87,15 @@ parameter is not mentioned, the default value will be loaded.
| Parameter | Default Value | | Parameter | Default Value |
|:----------------|:-----------------------------------------| |:----------------|:-----------------------------------------|
| `partition` | default | | `cluster` | barnard |
| `nodes` | 1 | | `nodes` | 1 |
| `ntasks` | 1 | | `ntasks` | 1 |
| `cpuspertask` | 1 | | `cpuspertask` | 1 |
| `gres` | *empty* (no generic resources) | | `gres` | *empty* (no generic resources) |
| `mempercpu` | 1000 | | `mempercpu` | 1000 |
| `runtime` | 8:00:00 | | `runtime` | 1:00:00 |
| `reservation` | *empty* (use no reservation) | | `reservation` | *empty* (use no reservation) |
| `project` | *empty* (use default project) | | `project` | *empty* (use default project) |
| `modules` | *empty* (do not load additional modules) |
| `environment` | production |
| `launch` | JupyterLab |
| `workspace_scope` | *empty* (home directory) | | `workspace_scope` | *empty* (home directory) |
You can use the advanced form to generate a URL for the settings you want. The You can use the advanced form to generate a URL for the settings you want. The
...@@ -109,7 +106,7 @@ address bar contains the encoded parameters starting with `#/`. ...@@ -109,7 +106,7 @@ address bar contains the encoded parameters starting with `#/`.
You can combine both features in a single link: You can combine both features in a single link:
``` ```
https://taurus.hrsk.tu-dresden.de/jupyter/hub/user-redirect/git-pull?repo=https://github.com/jdwittenauer/ipython-notebooks&urlpath=/tree/ipython-notebooks/notebooks/language/Intro.ipynb#/~(partition~'interactive~environment~'test) https://jupyterhub.hpc.tu-dresden.de/hub/user-redirect/git-pull?repo=https://github.com/jdwittenauer/ipython-notebooks&urlpath=/tree/ipython-notebooks/notebooks/language/Intro.ipynb#/~(cluster~'barnard~nodes~'1~ntasks~'1~cpuspertask~'1~mempercpu~'1536)
``` ```
![URL with quickstart parameters](misc/url-git-pull-and-quick-start.png) ![URL with quickstart parameters](misc/url-git-pull-and-quick-start.png)
...@@ -120,7 +117,7 @@ https://taurus.hrsk.tu-dresden.de/jupyter/hub/user-redirect/git-pull?repo=https: ...@@ -120,7 +117,7 @@ https://taurus.hrsk.tu-dresden.de/jupyter/hub/user-redirect/git-pull?repo=https:
With the following link you will be redirected to a certain file in your With the following link you will be redirected to a certain file in your
home directory. home directory.
[https://taurus.hrsk.tu-dresden.de/jupyter/user-redirect/notebooks/demo.ipynb](https://taurus.hrsk.tu-dresden.de/jupyter/user-redirect/notebooks/demo.ipynb) [https://jupyterhub.hpc.tu-dresden.de/user-redirect/notebooks/demo.ipynb](https://jupyterhub.hpc.tu-dresden.de/user-redirect/notebooks/demo.ipynb)
The file needs to exist, otherwise a 404 error will be thrown. The file needs to exist, otherwise a 404 error will be thrown.
...@@ -128,7 +125,7 @@ The file needs to exist, otherwise a 404 error will be thrown. ...@@ -128,7 +125,7 @@ The file needs to exist, otherwise a 404 error will be thrown.
{: align="center"} {: align="center"}
This link would redirect to This link would redirect to
`https://taurus.hrsk.tu-dresden.de/jupyter/user/{login}/notebooks/demo.ipynb`. `https://jupyterhub.hpc.tu-dresden.de/user/{login}/notebooks/demo.ipynb`.
## Create a Shared Python Environment ## Create a Shared Python Environment
......
doc.zih.tu-dresden.de/docs/software/misc/tensorflow_jupyter_module.png

33.7 KiB | W: | H:

doc.zih.tu-dresden.de/docs/software/misc/tensorflow_jupyter_module.png

79.7 KiB | W: | H:

doc.zih.tu-dresden.de/docs/software/misc/tensorflow_jupyter_module.png
doc.zih.tu-dresden.de/docs/software/misc/tensorflow_jupyter_module.png
doc.zih.tu-dresden.de/docs/software/misc/tensorflow_jupyter_module.png
doc.zih.tu-dresden.de/docs/software/misc/tensorflow_jupyter_module.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment