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

traits in notebook that other extensions might depend on #35

Closed
Zsailer opened this issue Nov 30, 2018 · 2 comments
Closed

traits in notebook that other extensions might depend on #35

Zsailer opened this issue Nov 30, 2018 · 2 comments

Comments

@Zsailer
Copy link
Member

Zsailer commented Nov 30, 2018

After a conversation with @blink1073 this morning,

I looked at traits in NotebookApp that other extensions might depend on. If we turn the NotebookApp into server extension, such traits/configurations won't be seen by other server extensions. This would break those extensions.

Here is the full list:

extra_nbextensions_path
enable_mathjax
max_body_size
max_buffer_size
webapp_settings
server_extensions
nbserver_extensions
notebook_dir
mathjax_url
get_secure_cookie_kwargs
base_project_url
mathjax_config
ignore_minified_js

The only trait that causes trouble in JupyterLab is notebook_dir. Jupyter server renames this trait to root_dir.

We may want to add notebook_dir to jupyter_server with a deprecation warning.

@krinsman
Copy link
Contributor

Copy-pasted from my comment on the PR to fix this:

Will deprecating and then eventually removing notebook_dir make this incompatible with JupyterHub, and thus prevent jupyter_server from being used as a backend for jupyterhub-singleuser/SingleUserNotebookApp?

JupyterHub uses it in a pretty essential way, since that's what c.Spawner.notebook_dir hooks into:
https://github.com/jupyterhub/jupyterhub/blob/master/jupyterhub/spawner.py#L467
https://github.com/jupyterhub/jupyterhub/blob/master/jupyterhub/spawner.py#L930

@Zsailer Zsailer added this to the 0.2.0 Release milestone Dec 2, 2019
@echarles echarles modified the milestones: 0.2.0 Release, 0.3.0 Release Jan 4, 2020
@Zsailer
Copy link
Member Author

Zsailer commented Apr 15, 2020

This is handled by the new shims in NBClassic. Apps that switch dependency from notebook to jupyter_server should use these shims.

@Zsailer Zsailer closed this as completed Apr 15, 2020
Zsailer pushed a commit to Zsailer/jupyter_server that referenced this issue Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants