-
Notifications
You must be signed in to change notification settings - Fork 14
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
Using notebook
CMD to run the jupyter stack
#331
Conversation
I tried to give it a test, but I am getting a 500 Jupyter server error, due to this jinja exception
This is probably another side-effect of updating the base image to Python 9.13? Perhaps we need to adjust the nbconvert / jinja dependencies, not sure where they are defined. |
Ah, I see the error comes from AWB which reinstalls some dependencies and breaks the environment, which you're already trying to address in aiidalab/aiidalab-widgets-base#395 If I don't install AWB, things seems to work. |
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.
I have verified that the issue exist on the current aiidalab/full-stack:edge
and verified that this PR fixes it.
stack/lab/Dockerfile
Outdated
@@ -3,6 +3,13 @@ FROM base | |||
|
|||
LABEL maintainer="AiiDAlab Team <aiidalab@materialscloud.org>" | |||
|
|||
# The lab mode is default to run jupyter server. | |||
# Here the CMD pinned to `notebook` for running in legacy notebook backend | |||
# In the future, we have appmode compatible with nbclassic |
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.
Do I understand correctly that Appmode is currently not compatible with the nbclassic
option?
37919b6
to
e96a56e
Compare
for more information, see https://pre-commit.ci
Yes, exactly! @danielhollas thanks a lot for the review. I addressed the things you mentioned. |
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.
Thanks @unkcpz. LGTM
I think this needs to be merged before the other open PRs.
The new jupyter/minimal-notebook image uses lab CMD to run the jupyter server, which was introduced by jupyter/docker-stacks#1575. It provides DOCKER_STACKS_JUPYTER_CMD to set how to run it. The lab (full-stack) is for AiiDAlab only and should start with notebook mode. I pin it as an environment variable to start the jupyter backend. Since we have the new jupyterhub, the `NOTEBOOK_ARGS` can be used to set the notebook arguments.
The new
jupyter/minimal-notebook
image useslab
CMD to run the jupyter server, which was introduced by jupyter/docker-stacks#1575. It provideDOCKER_STACKS_JUPYTER_CMD
to set how to run it.The lab (full-stack) is for AiiDAlab only and should start with notebook mode. I pin it as an environment variable to start the jupyter backend.
Since we have the new jupyterhub, the
NOTEBOOK_ARGS
can be used to set the notebook arguments.