Skip to content

Conversation

@StevenMaude
Copy link
Contributor

Fixes #1571.

run: python:v2 jupyter nbconvert /workspace/analysis/notebook.ipynb --execute --to html --output-dir=/workspace/output --no-input --ExecutePreprocessor.timeout=86400
```

Refer to an [example of this, implemented as an OpenSAFELY action](https://github.com/opensafely/mechanical-valve-anticoag/blob/1f158504ba5a74470b11c8d73311fb2859d67cb7/project.yaml#L53-L63).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

thought: Arguably, we should change this link to another example too, because it uses jupyter:latest.

There aren't any examples that use python:v2.

There is at least one that uses python:latest, although the actual example is simpler (notebook creates a single HTML output) compared with the example linked here (notebook creates multiple kinds of outputs).

We could address this here, but I also opened #1573 to record this case and others in the documentation.

@StevenMaude StevenMaude marked this pull request as draft July 17, 2024 12:23
@StevenMaude StevenMaude marked this pull request as ready for review July 17, 2024 12:36
@StevenMaude StevenMaude marked this pull request as draft July 17, 2024 12:37
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 17, 2024

Deploying opensafely-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 900dd18
Status: ✅  Deploy successful!
Preview URL: https://73ac80e8.opensafely-docs.pages.dev
Branch Preview URL: https://steve-update-jupyter-image-t.opensafely-docs.pages.dev

View logs

@StevenMaude StevenMaude force-pushed the steve/update-jupyter-image-to-python branch from 6462762 to c2bb787 Compare July 17, 2024 12:50
@StevenMaude StevenMaude marked this pull request as ready for review July 17, 2024 12:50
Including mentioning `python:v2`.
@StevenMaude StevenMaude merged commit de4a9db into main Jul 17, 2024
@StevenMaude StevenMaude deleted the steve/update-jupyter-image-to-python branch July 17, 2024 15:55
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.

Replace mentions of jupyter image with python:v2

3 participants