Python: Import Jupyter Notebook fails with nbconvert is not installed
See original GitHub issueEnvironment 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
.
Expected behavior
I expect it to convert the notebook.
Steps to reproduce:
- XXX
Logs
Output for Python
in the Output
panel (View
→Output
, 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:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed by “pip3 install nbconvert” and the restart VS Code
This should be fixed now in our latest release.