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.

calling jupyter notebook outputs error

See original GitHub issue


jupyter notebook --NotebookApp.kernel_spec_manager_class='environment_kernels.EnvironmentKernelSpecManager'

causes this error:

[C 15:15:03.610 NotebookApp] Bad config encountered during initialization:
[C 15:15:03.610 NotebookApp] The 'kernel_spec_manager_class' trait of <notebook.notebookapp.NotebookApp object at 0x10314af90> instance must be a type, but u'environment_kernels.EnvironmentKernelSpecManager' could not be imported

How should I deal with this issue?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:27 (3 by maintainers)

github_iconTop GitHub Comments

buddhashresthacommented, Aug 20, 2018

You need to install environment_kernels using : pip install environment_kernels

nocibambicommented, Feb 14, 2019

Same issue. I cannot run jupyter notebook from the system (but it works from another environment).

Here, someone solved by editing the config, but did not specify which one.

Ok, so I solved it finally, here are the steps:

  1. In terminal, find the configurations directories with jupyter --paths.
  2. In one of the directories there I found jupyter_notebook_config.json
  3. Save a back up copy 😉
  4. From the file delete the following line:
"kernel_spec_manager_class": "nb_conda_kernels.CondaKernelSpecManager" 
  1. Delete the comma preceding it. (Duh, I know…)
Read more comments on GitHub >

github_iconTop Results From Across the Web

In Jupyter Notebook, how can the coloring of error output ...
I'd like to know if the differences between the error output for lines 4, 5, and 6 is meaningful and useful in troubleshooting...
Read more >
Python has many built-in exceptions which forces your program to output an error when something in it goes wrong. However, sometimes you may...
Read more >
Errors and Debugging | Python Data Science Handbook
This is an excerpt from the Python Data Science Handbook by Jake VanderPlas; Jupyter notebooks are available on GitHub. The text is released...
Read more >
How to Fix Kernel Error in Jupyter Notebook
A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python...
Read more >
The dreaded Jupyter * error — what it is, and how to fix it
Jupyter sometimes gets stuck, or wedged, with a * between the [] to the left of a cell. How does it happen, what...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found