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

fix jupyterhub url

parent 4e65bb55
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.
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
[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.
??? example
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
......@@ -73,10 +73,10 @@ The spawn form now offers a quick start mode by passing URL parameters.
!!! example
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)
......@@ -87,18 +87,15 @@ parameter is not mentioned, the default value will be loaded.
| Parameter | Default Value |
|:----------------|:-----------------------------------------|
| `partition` | default |
| `cluster` | barnard |
| `nodes` | 1 |
| `ntasks` | 1 |
| `cpuspertask` | 1 |
| `gres` | *empty* (no generic resources) |
| `mempercpu` | 1000 |
| `runtime` | 8:00:00 |
| `runtime` | 1:00:00 |
| `reservation` | *empty* (use no reservation) |
| `project` | *empty* (use default project) |
| `modules` | *empty* (do not load additional modules) |
| `environment` | production |
| `launch` | JupyterLab |
| `workspace_scope` | *empty* (home directory) |
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 `#/`.
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)
......@@ -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
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.
......@@ -128,7 +125,7 @@ The file needs to exist, otherwise a 404 error will be thrown.
{: align="center"}
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
......
......@@ -240,7 +240,7 @@ on the [JupyterHub](../access/jupyterhub.md) page.
### Spawning a Notebook
Go to [https://taurus.hrsk.tu-dresden.de/jupyter](https://taurus.hrsk.tu-dresden.de/jupyter).
Go to [https://jupyterhub.hpc.tu-dresden.de](https://jupyterhub.hpc.tu-dresden.de).
In the tab "Advanced", go to the field "Preload modules" and select the following Spark or Flink
module:
......
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