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.

Python: Import Jupyter Notebook fails with nbconvert is not installed

See original GitHub issue

Environment data

Pipenv has a cool command for reporting all this information automatically: pipenv --support | pbcopy where the output of this command can be pasted straight into the github issue. You might consider adding something like this for the code CLI tool.

  • VS Code version: 1.29.0
  • Extension version (available under the Extensions sidebar): 2018.10.1
  • OS and version: macOS 10.13.6
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): pipenv
  • Relevant/affected Python packages and their versions: jupyter

Actual behavior

It says converting the notebook to python requires “jupyter nbconvert” to be installed. It is installed within the virtualenv as you can see through the output of pip freeze.

screen shot 2018-11-13 at 9 19 33 pm

Expected behavior

I expect it to convert the notebook.

Steps to reproduce:

  1. XXX

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

I didn’t see anything under Python.

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

console.ts:134 [Extension Host] Python Extension: Error: Error executing Jupyter command 'nbconvert': [Errno 2] No such file or directory

t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Importing notebooks requires Jupyter nbconvert to be installed.
t.log @ console.ts:134
notificationsAlerts.ts:40 Importing notebooks requires Jupyter nbconvert to be installed.
t.onDidNotificationChange @ notificationsAlerts.ts:40

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
akirsmancommented, Nov 27, 2018

Fixed by “pip3 install nbconvert” and the restart VS Code

0reactions
rchiodocommented, Nov 30, 2018

This should be fixed now in our latest release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter command jupyter-nbconvert not found in VS Code on ...
I was trying to export my jupyter notebook in the VS Code to html or pdf. However when I exported it, the process...
Read more >
python - VScode fails to export Jupyter notebook to HTML
Install required module: pip install nbconvert; Turn to the folder that contains .ipynb then run jupyter nbconvert --to html Text.ipynb. You may ...
Read more >
Installation — nbconvert 7.2.7 documentation
Currently Python 3.7-3.9 is supported and tested by nbconvert. Installing nbconvert#. Nbconvert is packaged for both pip and conda, so you can install...
Read more >
nbconvert Documentation - Read the Docs
If used as a Python library (import nbconvert), nbconvert adds notebook conversion within a project. For example,.
Read more >
jupyter nbconvert broken - Google Groups
from traitlets.log import get_logger. ImportError: No module named traitlets.log. [user@host ~]$ sudo pip install --upgrade traitlets.
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