-
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
[base-notebook] Cannot connect to server after upgrading to Jupyter Lab 3.0.0 #1205
Comments
Hello, The problem seems to come from the file c = get_config() # noqa: F821
-c.NotebookApp.ip = '0.0.0.0'
-c.NotebookApp.port = 8888
-c.NotebookApp.open_browser = False
+c.ServerApp.ip = '0.0.0.0'
+c.ServerApp.port = 8888
+c.ServerApp.open_browser = False After these changes the problem is fixed and JupyterLab is accessible. Best |
Hello, Here is the documentation Migrating from Notebook Server explaining this change. |
Thank you so much @romainx ! The docs even warn about the impending doom: "NBClassic will only work for a limited time. Jupyter Server is likely to evolve beyond a point where Jupyter Notebook frontend will no longer work with the underlying server." How unfortunate that the two interfaces cannot continue to co-exist peacefully... |
Thanks for this solution! If someone running as a non-root user, then these config files should be placed in |
I tried to apply this hotfix ontop of
before switching to the container user. The error persists with the present I manually added the fix to Despite setting
My package list is:
|
@phish108 you need to first copy the file to RUN sed -re "s/c.NotebookApp/c.ServerApp/g" \
/etc/jupyter/jupyter_notebook_config.py > /etc/jupyter/jupyter_server_config.py |
Couldn't this be part of base-notebook? I understand that both configs do not conflict with each other or am I missing something? |
@phish108 Maybe but I have not tested the behavior with the current version of JupyterLab |
Strictly speaking |
@romainx Thanks for the infos. Eventually I have my container running and noticed that all of the community extensions I use are currently outdated, so this will take a while. @mirekphd I got that part. But apart from the server configuration they do not differ too much, so the two files could exist side by side in the base-notebook. I tried this side-by-side setup for JL 2.2.9 and it causes no new conflicts or warnings for me using a stripped down r-notebook. |
I tried the dual config file setup in
So for production containers, I too had to roll back to BTW, I do hope it's not the last usable version of Notebook... |
@mirekphd In my last build I've used the following versions that are slightly different than your versions. Have you tried this setup ? If so, have you identified issues? jupyterlab=2.2.9
-notebook=6.1.5
+notebook=6.1.6
-jupyterhub=1.2.2
+jupyterhub=1.3.0
-nbconvert==5.6.1
+nbconvert==6.0.7 Thanks |
@romainx from the list of your rolled-back Jupyter packages I think that only To reproduce that issue, switch from Lab to Notebook (Help -> Launch Classic Notebook) and then try to run its extensions configurator (Edit -> nbextensions config) and you should see in server log multiple 'template_path not recognized' warnings like these, while the
|
|
@R7President you're right we will do it carefully. What has been exchanged here is just a workaround since the current stack still uses JupyterLab So the plan is to
|
After upgrading (by unpinning 3 Jupyter packages in my fork of docker-stacks) Jupyter Lab / Server no longer works (only Notebook is still OK).
To reproduce:
mirekphd/docker-stacks
(or reproduce it by making this change).mirekphd/base-notebook
container (cd base-notebook
anddocker build --tag mirekphd/base-notebook .
)docker run -d --rm --name base-notebook -p 8989:8888 -e JUPYTER_ENABLE_LAB=1 mirekphd/base-notebook:latest && docker logs -f base-notebook
localhost:8989
and see the "Unable to connect" browser error.-e JUPYTER_ENABLE_LAB_NOT
) to see it works correctly.Note that earlier today I raised a less reproducible (closed-source) version of this issue in jupyterlab/jupyterlab#9520, so you may find some additional hints / details there.
The text was updated successfully, but these errors were encountered: