-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add jupyter/julia-notebook #1926
Conversation
There is a growing number of Julia users in the Jupyter ecosystem who do not use R, and hence would <3 to have a dedicated docker image that doesn't bring in all the R stuff that datascience-notebook brings in! The built image size is much smaller, and eventually paves the way to better ecosystem support for Julia.
for more information, see https://pre-commit.ci
This image is 2.2GB, vs the datascience-notebook being 5.83GB! |
Docs failing is fine.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few things I would like to ask you to do:
- In places, where images were sorted by name, let's keep them sorted.
- In other places, let's put
julia-notebook
afterr-notebook
. - Please, update the Makefile
- And also, inheritance diagram
I also think, that it makes sense to put Julia installation in a bash script and to add it to base-notebook
and then we will just run it in some images. This will allow us to reduce code duplication. This can be done in a separate PR later though, to make it easier for you.
Thanks for the quick review, @mathbunnyru! I have addressed everything except the inheritance diagram! Do you have a tool suggestion on what I can use to edit that? |
for more information, see https://pre-commit.ci
@yuvipanda take a look at the markdown, it's not just an SVG image, but also a link where you can change the diagram easily, generate new permanent link and download an image as a new SVG. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few places left to sort, but looks good to me 👍
.github/workflows/docker.yml
Outdated
aarch64-julia: | ||
uses: ./.github/workflows/docker-build-test-upload.yml | ||
with: | ||
parentImage: minimal-notebook | ||
image: julia-notebook | ||
platform: aarch64 | ||
runsOn: ARM64 | ||
needs: [aarch64-minimal] | ||
if: github.repository == 'jupyter/docker-stacks' | ||
|
||
x86_64-julia: | ||
uses: ./.github/workflows/docker-build-test-upload.yml | ||
with: | ||
parentImage: minimal-notebook | ||
image: julia-notebook | ||
platform: x86_64 | ||
runsOn: ubuntu-latest | ||
needs: [x86_64-minimal] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section should be after the r-notebook
section.
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
That's very helpful, @mathbunnyru! I think I've addressed them now. |
@yuvipanda I added a new repository to the DockerHub and merged your PR (that's all I had to do manually, even description will be pushed automatically to DockerHub 🙂). I didn't congratulate you with the first PR to this repo, so let me congratulate you with the second one ❤️ |
https://hub.docker.com/r/jupyter/julia-notebook Images should be updated in ~2 hours. |
AMAZING, THANK YOU SO MUCH @mathbunnyru! |
The datascience notebook was added primarily to support Julia. We have worked with upstream to add a julia specific notebook (jupyter/docker-stacks#1926), so we use the Julia notebook now!
You're welcome:) If you have some spare time, it would be great to have a Julia installation script put to |
@@ -254,6 +275,7 @@ jobs: | |||
minimal-notebook, | |||
scipy-notebook, | |||
r-notebook, | |||
julia-notebook, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We forgot to add a new julia
dependency in needs:
in a few lines below.
@@ -290,6 +312,7 @@ jobs: | |||
minimal-notebook, | |||
scipy-notebook, | |||
r-notebook, | |||
julia-notebook, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We forgot to add a new julia
dependency in needs:
in a few lines below.
@yuvipanda I left these comments because I use this image as an example of how a new image can be added. |
@mathbunnyru that's so sweet! I've cherry-picked that commit but it doesn't seem to be reflected here. |
Thanks @yuvipanda |
* Add jupyter/julia-notebook There is a growing number of Julia users in the Jupyter ecosystem who do not use R, and hence would <3 to have a dedicated docker image that doesn't bring in all the R stuff that datascience-notebook brings in! The built image size is much smaller, and eventually paves the way to better ecosystem support for Julia. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add a test for julia-notebook * Tell tests what julia-notebook inherits from * Sort lists with julia-notebook * Fix README for julia-notebook * Add julia-notebook to the makefile * Move julia-notebook below r-notebook * Use hard tabs in Makefile * Do some more sorting * Rename test_julia to avoid mypy issue * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Re-order julia/r-notebook Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com> * Move julia-notebook stanza under r-notebook * Update inheritance diagram --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
Describe your changes
There is a growing number of Julia users in the Jupyter ecosystem who do not use R, and hence would <3 to have a dedicated docker image that doesn't bring in all the R stuff that datascience-notebook brings in! The built image size is much smaller, and eventually paves the way to better ecosystem support for Julia.
Checklist (especially for first-time contributors)