Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opening-sessions: custom jupyter image requirements #168

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

giuseppe-steduto
Copy link
Member

Closes #163

- have Jupyter installed
- expose port `8888`
- use the `HTTPS` protocol
- provide the [`start-notebook.sh`](https://github.com/jupyter/docker-stacks/blob/main/base-notebook/start-notebook.sh) script
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether it is better to mention this script and then recommend below to use an image based on one of the official Jupyter images, or to directly say that, as a requisite, the custom image should be based upon an official Jupyter one. What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go for the latter, i.e. speak of official Jupyter based image, and only then perhaps mention in parentheses that this means listening on port XXXX and having start notebook script.

@@ -25,6 +25,19 @@ https://reana.cern.ch/f8be55e4-5d18-43f9-b977-f773fdcab163?token=<your-reana-tok
It could take several minutes to start the interactive session.
```

!!! note
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using !!! note I would simply promote this information into the main text, and reformat its flow by reordering paragraphs:

  • start with the leading paragraph ("you can open...")
  • continue with the paragraph showing that clicking on the printed link would open a notebook ("By clicking on the link..."
  • only now display the information about started environment ("by default, newly opened...")
  • ... and continue smoothly saying how people can customise it:

If you would like to open another custom notebook image, please note that it has to follow Jupyter image conventions (port 8000, start-notebook) etc etc etc.

(BTW I would also promote the other note "Keep in mind..." into the main text. The notes are visually rather highlighted from the main text, and simple phrases like that are more a normal continuation of the main text... It's not necessary to
highligtht them separately?)

- have Jupyter installed
- expose port `8888`
- use the `HTTPS` protocol
- provide the [`start-notebook.sh`](https://github.com/jupyter/docker-stacks/blob/main/base-notebook/start-notebook.sh) script
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go for the latter, i.e. speak of official Jupyter based image, and only then perhaps mention in parentheses that this means listening on port XXXX and having start notebook script.


![jupyter-notebook](../../images/interactive-session-jupyter-notebook.png){.screenshot-browser-mockup}

Keep in mind that starting the notebook might take a minute, if you see "Service unavailable", just wait and retry.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After seeing the updated version, I would delete the "Keep in mind" phrase, because it disturbs the reading flow. We are already warning about this in the console output shown above, so it should not be necessary to add it also here!

![jupyter-notebook](../../images/interactive-session-jupyter-notebook.png){.screenshot-browser-mockup}

Keep in mind that starting the notebook might take a minute, if you see "Service unavailable", just wait and retry.

!!! warning
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Warning box also disrupts the reading flow. I would do put it at the end of the CLI chapter, i.e. right before the "Open from web interface" section. And I would add "Please note that it will be automatically closed after 7 days of inactivity" to the last example (using custom image) as well. WDYT?

@tiborsimko tiborsimko merged commit ee6d48a into reanahub:master Nov 23, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jupyter: improve documentation regarding custom docker images
2 participants