Skip to content

Jupyterlab extension fails to load when c.NotebookApp.log_json is set #43

Open
@rmoe

Description

@rmoe

I'm testing out JupyterLab 3.0.5 alongside classic notebook in a JupyterHub environment. The classic notebook works fine but when navigating to /lab I get a 404. In the logs I see the following traceback on server startup:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/site-packages/notebook/notebookapp.py", line 1991, in init_server_extensions
    func(self)
  File "/opt/conda/lib/python3.8/site-packages/jupyterlab/serverextension.py", line 13, in load_jupyter_server_extension
    extension.update_config(serverapp.config)
  File "/opt/conda/lib/python3.8/site-packages/nbclassic/shim.py", line 138, in update_config
    shimmed_config = self.shim_config_from_notebook_to_jupyter_server(config)
  File "/opt/conda/lib/python3.8/site-packages/nbclassic/shim.py", line 228, in shim_config_from_notebook_to_jupyter_server
    raise TraitError("Trait, {}, not found.".format(trait_name))
traitlets.traitlets.TraitError: Trait, log_json, not found.

c.NotebookApp.log_json = True is set in .jupyter/jupyter_notebook_config.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions