question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server config: can't set contents_manager_class in jupyterfs.json

See original GitHub issue

jupyterfs.json gets installed to <python-prefix>/etc/jupyter/jupyter_notebook_config.d/jupyterfs.json when you pip install the the jupyterfs Python package.

Ideally, jupyterfs.json should contain all of the server-side config needed to get jupyter-fs to work:

{
  "NotebookApp": {
    "contents_manager_class": "jupyterfs.metamanager.MetaManager",
    "nbserver_extensions": {
      "jupyterfs": true
    }
  }
}

However, in practice the "contents_manager_class" option gets ignored. Instead, "contents_manager_class" has to go in eg <python-prefix>/etc/jupyter/jupyter_notebook_config.json. Since I don’t want to accidentally overwrite an existing jupyter_notebook_config.json, this limits my options in terms of automating the install of jupyter-fs.

Currently, the only truly reliable option is to have users manually add the appropriate "contents_manager_class" to their server config, but that leads to all kinds of problems for the average user, and also isn’t automatic

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Zsailercommented, May 6, 2020

In short, I don’t think this logic should live in the extension JSON. This JSON should really only be used to enable/disable extensions. Instead, server traits that the extensions must affect in order to work should be hardcoded in the extension package and imported through the _jupyter_server_extension_paths linker.

0reactions
Zsailercommented, May 6, 2020

Cool. Yeah, that would be great! Check out the full conversation in jupyter/jupyter_server#207, because I added some code snippets with ideas for how we might discover+load config from server extensions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Config file and command line options - The Jupyter Notebook
Config file and command line options . The notebook server can be run with a variety of command line arguments. A list...
Read more >
error when starting the jupyter notebook server #105 - GitHub
When I execute $ jupyter notebook --debug --config < path/to/config/file > I'm getting this error: ImportError: cannot import name ...
Read more >
jupyter_notebook_config.py
## A class for managing multiple kernels. ## The name of the default kernel to start #c.MultiKernelManager.default_kernel_name = 'python3' ## The kernel manager ......
Read more >
Jupyter Notebook Documentation - Read the Docs
server. See Security in the Jupyter notebook server for more about this. ... If it can't find jupyter, you may need to configure...
Read more >
How to use ContentsManager for Jupyter? - Stack Overflow
To swap the contents manager in JupyterLab 3.0+ that is running on the new jupyter server (this is the default way of doing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found