Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting notebooks to script requires Jupyter nbconvert but users is not prompted to do so. #5222

Closed
petrroll opened this issue Mar 20, 2021 · 32 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority interactive-window Impacts interactive window notebook-import-export verified Verification succeeded
Milestone

Comments

@petrroll
Copy link
Member

Environment data

  • VS Code version: 1.53.3
  • Jupyter Extension version (available under the Extensions sidebar): v2021.3.619093157
  • Python Extension version (available under the Extensions sidebar): v2021.3.658691958
  • OS (Windows | Mac | Linux distro) and version: Win20H2
  • Python and/or Anaconda version: 3.8.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Jupyter server running: Local

Repro steps:

  1. Have venv with jupyter and tensorflow
  2. Navigate to the folder with venv in terminal, launch code .
  3. Open saved .ipynb file (opens with correct venv python
  4. Select "Convert a Notebook to Python Script"

Expected behaviour

Works

Actual behaviour

Fails with:

User belongs to experiment group 'jupyterTestcf'
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py pip list
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py jupyter kernelspec --version
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Error 2021-03-20 01:26:58: Jupyter Kernel Spec not found for a local connection
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Started kernel Python 3.8.2 64-bit ('venv')
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import nbconvert"
> c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py jupyter nbconvert --version
Error 2021-03-20 01:27:03: Export failed Error: Importing notebooks requires Jupyter nbconvert to be installed.
    at g.importFromFile (c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:492139)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at s.export (c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:260294)
    at _.exportToFormat (c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:257809)
    at _.performExport (c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:256994)
    at _.export (c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:256508)
    at c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:418329
    at u.waitWithStatus (c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:828995)
    at E.importNotebook (c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:418249)
    at E.listenForErrors (c:\Users\houskape\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:414146)
    at S._executeContributedCommand (c:\Users\houskape\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:87:103766)

while nbconvert is installed in active venv:

PS C:\Users\houskape\source\repos\NDN4-playground> & c:/Users/houskape/source/repos/NDN4-playground/venv/Scripts/Activate.ps1
(venv) PS C:\Users\houskape\source\repos\NDN4-playground> python -m pip install "nbconvert"
Requirement already satisfied: nbconvert in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (6.0.7)
Requirement already satisfied: mistune<2,>=0.8.1 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (0.8.4)
Requirement already satisfied: pygments>=2.4.1 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (2.7.2)    
Requirement already satisfied: jupyterlab-pygments in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (0.1.2)
Requirement already satisfied: bleach in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (3.2.1)
Requirement already satisfied: jupyter-core in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (4.7.0)
Requirement already satisfied: nbformat>=4.4 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (5.0.8)
Requirement already satisfied: defusedxml in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (0.6.0)
Requirement already satisfied: nbclient<0.6.0,>=0.5.0 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (0.5.1)
Requirement already satisfied: testpath in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (0.4.4)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (1.4.3)
Requirement already satisfied: jinja2>=2.4 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (2.11.2)
Requirement already satisfied: traitlets>=4.2 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (5.0.5)
Requirement already satisfied: entrypoints>=0.2.2 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbconvert) (0.3)
Requirement already satisfied: webencodings in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from bleach->nbconvert) (0.5.1)
Requirement already satisfied: six>=1.9.0 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from bleach->nbconvert) (1.15.0)
Requirement already satisfied: packaging in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from bleach->nbconvert) (20.5)
Requirement already satisfied: pywin32>=1.0; sys_platform == "win32" in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from jupyter-core->nbconvert) (300)
Requirement already satisfied: ipython-genutils in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbformat>=4.4->nbconvert) (0.2.0)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbformat>=4.4->nbconvert) (3.2.0)
Requirement already satisfied: async-generator in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert) (1.10)
Requirement already satisfied: jupyter-client>=6.1.5 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert) (6.1.7)
Requirement already satisfied: nest-asyncio in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert) (1.4.3)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from jinja2>=2.4->nbconvert) (1.1.1)
Requirement already satisfied: pyparsing>=2.0.2 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from packaging->bleach->nbconvert) (2.4.7)
Requirement already satisfied: setuptools in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.4->nbconvert) (41.2.0)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.4->nbconvert) (0.17.3)
Requirement already satisfied: attrs>=17.4.0 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.4->nbconvert) (20.3.0)
Requirement already satisfied: pyzmq>=13 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from jupyter-client>=6.1.5->nbclient<0.6.0,>=0.5.0->nbconvert) (20.0.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from jupyter-client>=6.1.5->nbclient<0.6.0,>=0.5.0->nbconvert) (2.8.1)
Requirement already satisfied: tornado>=4.1 in c:\users\houskape\source\repos\ndn4-playground\venv\lib\site-packages (from jupyter-client>=6.1.5->nbclient<0.6.0,>=0.5.0->nbconvert) (6.1)
WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
(venv) PS C:\Users\houskape\source\repos\NDN4-playground> 

Correct interpreter is selected:
image

@petrroll petrroll added the bug Issue identified by VS Code Team member as probable bug label Mar 20, 2021
@petrroll
Copy link
Member Author

Launching code . from active venv as suggested by #3797 doesn't help.

@petrroll
Copy link
Member Author

Installing nbconvert to global python might help but tbh I don't want to try/test that :). Too many painful memories of dealing with fallout of having stuff installed in global python.

@petrroll
Copy link
Member Author

Pip freeze for reference:

(venv) PS C:\Users\houskape\source\repos\NDN4-playground> python -m pip freeze  
absl-py==0.11.0
argon2-cffi==20.1.0
astunparse==1.6.3
async-generator==1.10
attrs==20.3.0
backcall==0.2.0
bleach==3.2.1
cachetools==4.1.1
certifi==2020.11.8
cffi==1.14.4
chardet==3.0.4
colorama==0.4.4
decorator==4.4.2
defusedxml==0.6.0
entrypoints==0.3
flatbuffers==1.12
gast==0.3.3
google-auth==1.23.0
google-auth-oauthlib==0.4.2
google-pasta==0.2.0
grpcio==1.32.0
h5py==2.10.0
idna==2.10
ipykernel==5.3.4
ipython==7.19.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.17.2
Jinja2==2.11.2
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==6.1.7
jupyter-console==6.2.0
jupyter-core==4.7.0
jupyterlab-pygments==0.1.2
Keras-Preprocessing==1.1.2
Markdown==3.3.3
MarkupSafe==1.1.1
mistune==0.8.4
nbclient==0.5.1
nbconvert==6.0.7
nbformat==5.0.8
nest-asyncio==1.4.3
notebook==6.1.5
numpy==1.18.5
oauthlib==3.1.0
opt-einsum==3.3.0
packaging==20.5
pandocfilters==1.4.3
parso==0.7.1
pickleshare==0.7.5
prometheus-client==0.9.0
prompt-toolkit==3.0.8
protobuf==3.14.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
Pygments==2.7.2
pyparsing==2.4.7
pyrsistent==0.17.3
python-dateutil==2.8.1
pywin32==300
pywinpty==0.5.7
pyzmq==20.0.0
qtconsole==5.0.1
QtPy==1.9.0
requests==2.25.0
requests-oauthlib==1.3.0
rsa==4.6
scipy==1.4.1
Send2Trash==1.5.0
six==1.15.0
tensorboard==2.4.0
tensorboard-plugin-wit==1.7.0
tensorflow==2.3.2
tensorflow-estimator==2.3.0
termcolor==1.1.0
terminado==0.9.1
testpath==0.4.4
tornado==6.1
traitlets==5.0.5
typing-extensions==3.7.4.3
urllib3==1.26.2
wcwidth==0.2.5
webencodings==0.5.1
Werkzeug==1.0.1
widgetsnbextension==3.5.1
wrapt==1.12.1

@claudiaregio
Copy link
Contributor

Hi @petrroll, I am unable to repro at this time. If you update to the latest version of vs code does this problem persist?

@claudiaregio claudiaregio added the info-needed Issue requires more information from poster label Mar 20, 2021
@petrroll
Copy link
Member Author

It seems I'm at the latest version already:
image

@autoscraper
Copy link

+1
I am have the same problem!

Error

show
Error 2021-03-21 07:40:44: Export failed [Error: Importing notebooks requires Jupyter nbconvert to be installed.
	at u.getExportInterpreter (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:32:557020)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)
	at async _.export (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:256400)
	at async c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:418573
	at async u.waitWithStatus (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:828995)
	at async E.importNotebookOnFile (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:418496)
	at async E.listenForErrors (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:414146)
	at async S._executeContributedCommand (c:\Users\autoscraper\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:87:103766)]
> ~\anaconda3\python.exe c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Error 2021-03-21 07:40:52: [Error: command 'python.analysis.restartLanguageServer' already exists
	at S.registerCommand (c:\Users\autoscraper\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:87:102511)
	at Object.registerCommand (c:\Users\autoscraper\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:95:21352)
	at c.registerCommand (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:80:165311)
	at new r (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:61:177370)
	at Object.t.resolveInstance (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:44:268556)
	at c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:44:267522
	at Array.map (<anonymous>)
	at Object.t.resolveInstance (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:44:268326)
	at c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:44:267522
	at Object.t.resolve (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:44:267785)
	at c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:44:258361
	at e._get (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:44:258127)
	at e.getTagged (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:44:256930)
	at e.getNamed (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:44:257022)
	at a.get (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:80:440868)
	at _.createRefCountedServer (c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\out\client\extension.js:52:32226)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)]
> ~\anaconda3\python.exe c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Error 2021-03-21 07:47:09: Export failed [Error: Importing notebooks requires Jupyter nbconvert to be installed.
	at u.getExportInterpreter (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:32:557020)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)
	at async _.export (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:256400)
	at async c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:418573
	at async u.waitWithStatus (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:828995)
	at async E.importNotebookOnFile (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:418496)
	at async E.listenForErrors (c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\out\client\extension.js:49:414146)
	at async S._executeContributedCommand (c:\Users\autoscraper\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:87:103766)]

But nbconvert is in pip freeze:

nbconvert @ file:///C:/ci/nbconvert_1601914925608/work

It works perfectly when I run in the command line.

Extra Info

show
(base) C:\Users\autoscraper\env>code -s

Version:          Code 1.54.3 (2b9aebd5354a3629c3aba0a5f5df49f43d6689f8, 2021-03-15T10:55:45.459Z)
OS Version:       Windows_NT x64 10.0.18363
CPUs:             Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz (8 x 2112)
Memory (System):  7.83GB (2.26GB free)
VM:               0%
Screen Reader:    no
Process Argv:     --crash-reporter-id 5f15559f-f44c-465f-b9d3-739f43c38179
GPU Status:       2d_canvas:                  enabled
                  gpu_compositing:            enabled
                  multiple_raster_threads:    enabled_on
                  oop_rasterization:          enabled
                  opengl:                     enabled_on
                  protected_video_decode:     enabled
                  rasterization:              enabled
                  skia_renderer:              enabled_on
                  video_decode:               enabled
                  vulkan:                     disabled_off
                  webgl:                      enabled
                  webgl2:                     enabled

CPU %   Mem MB     PID  Process
    1       83    7720  code main
    0      136    2508     gpu-process
    0        6    6580     crashpad-handler
    0      113    6700     window (undefined)
    1      152    6748     window (Scraper.ipynb - env - Visual Studio Code)
    0       30    3964       searchService
    0       99   11080       extensionHost
    0       15    2404         C:\Users\autoscraper\anaconda3\python.exe c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
    0       11    9580           console-window-host (Windows internal process)
    0       42   11712           C:\Users\autoscraper\anaconda3\python.exe c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\vscode_datascience_helpers\..\pyvsc-run-isolated.py c:\Users\autoscraper\.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\vscode_datascience_helpers\kernel_prewarm_starter.py
    0       25    6344         C:\Users\autoscraper\anaconda3\python.exe c:\Users\autoscraper\.vscode\extensions\ms-python.python-2021.4.669543432-dev\pythonFiles\runJediLanguageServer.py
    0       11    7612           console-window-host (Windows internal process)
    0       30   10400         electron_node languageserver.js
    0       10   11912       watcherService
    0       11   12152         console-window-host (Windows internal process)
    0       18    8392     utility
    0       49   10744     shared-process
    0       21    2696       ptyHost
    0        5    7864         C:\WINDOWS\System32\cmd.exe
    0       30    8908           electron_node cli.js
    0       52   11720             "C:\Users\autoscraper\AppData\Local\Programs\Microsoft VS Code\Code.exe" -s
    0       12    7868               crashpad-handler
    0       16   14088               gpu-process
    0        6   11236         console-window-host (Windows internal process)

Workspace Stats:
|  Window (Scraper.ipynb - env - Visual Studio Code)
|    Folder (env): 4 files
|      File types: ipynb(1) xls(1) txt(1)
|      Conf files:

(base) C:\Users\autoscraper\env>

@greazer greazer added this to the May 2021 Release milestone Apr 1, 2021
@greazer greazer removed the info-needed Issue requires more information from poster label Apr 26, 2021
@greazer greazer modified the milestones: May 2021 Release, June 2021 Release Apr 26, 2021
@debroize
Copy link

I have the same problem. I found out, that the export can be done with the "Export" button in the notebook view but not otherwise.
vsCode_NotebookExport

@juanbomfim22
Copy link

I have the same problem. I found out, that the export can be done with the "Export" button in the notebook view but not otherwise.
vsCode_NotebookExport

I done that and actually it didn't solve!

@joyceerhl
Copy link
Contributor

Can folks in this thread confirm that the problem persists with the latest version of the Jupyter extension, v2021.5.745244803?

If the problem does persist, can I ask your help with trying something? In the Jupyter output log you should see a command like the following (with usernames and paths varying):

c:\Users\houskape\source\repos\NDN4-playground\venv\Scripts\python.exe c:\Users\houskape.vscode\extensions\ms-toolsai.jupyter-2021.3.619093157\pythonFiles\pyvsc-run-isolated.py -c "import nbconvert"

This is the command we use to check if nbconvert is installed into the current interpreter. Would y'all be able to run the above command (swapping out the paths as appropriate) in your terminal and paste the output in a new comment? That will help us understand why we are failing to detect nbconvert being installed. Thanks!

@greazer
Copy link
Member

greazer commented Jun 4, 2021

Closing due to lack of response for over a week (actually it's been 4)

@greazer greazer closed this as completed Jun 4, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2021
@joyceerhl joyceerhl reopened this Jul 28, 2021
@microsoft microsoft unlocked this conversation Jul 28, 2021
@rikkigouda
Copy link

Hi there all! Thank you @joyceerhl for opening the issue back up.

I can confirm that I have this issue with the most recent version of VSCode.

image

Few observations I have had this morning:

  1. The python distribution is selected correctly, and when I try to export my notebook as Python, I will see the following output:

    Error 2021-07-28 12:26:44: Export failed Error: Importing notebooks requires Jupyter nbconvert to be installed.
        at u.getExportInterpreter (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:37:589586)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:93:5)
        at b.export (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:54:259878)
        at m.export (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:37:301309)
        at S._executeContributedCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:120577)
    
  2. When I run the command line (@joyceerhl shared earlier), seems like the version of Jupyter vscode extension I have installed, does not contain the py file pyvsc-run-isolated.py (extension directory is C:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-*2021.8.1054968649*\pythonFiles)

@joyceerhl
Copy link
Contributor

@Goudarzi

  1. What is the path to your Python interpreter? If you don't know what this is, you can run the following code in a cell:
import sys
print(sys.executable)
  1. Can you try running <path to your interpreter> -m pip install nbconvert from the command line, then try exporting again?

@rikkigouda
Copy link

rikkigouda commented Jul 28, 2021

Thank you @joyceerhl for looking into this. I try to keep my python distributions simple, so the one I have chosen to run that notebook is located C:\Python\Python39\python.exe

I have also installed nbconvert module, as follows:
image

(I forgot to mention - the export still fails.)

@vascoosx
Copy link

I opened settings.json and added "python.pythonPath" with the path of the interpreter. That fixed it but I'm not sure why since I can't reproduce it anymore.

@joyceerhl
Copy link
Contributor

@Goudarzi Would you mind providing the full logs from the Jupyter output panel after exporting fails? That should have more info re: why this is happening.

@rikkigouda
Copy link

GM @joyceerhl, this is what shows up in output when I click Export and choose Python Script:

Error 2021-07-29 08:27:17: Export failed Error: Importing notebooks requires Jupyter nbconvert to be installed.
    at u.getExportInterpreter (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:37:589586)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at b.export (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:54:259878)
    at m.export (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:37:301309)
    at S._executeContributedCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:120577)

Could the extension be referring to a different python.exe distribution than the one my project uses?

@joyceerhl
Copy link
Contributor

@Goudarzi There should be more info in the output panel providing info on which python.exe we're trying to use. Would you mind sending all of it? You may need to configure "jupyter.logging.level": "debug" in your user settings.json if there isn't more output. The beginning of the log should look something like this:

image

@rikkigouda
Copy link

I did a clear output before clicking the export. Will set the log level and try again. No worries.

@rikkigouda
Copy link

The debug level logging was already set.

Here is the log from the moment I open the file, until when the failure happens:

Info 2021-07-29 08:35:38: Attempting to start a server because of preload conditions ...
Info 2021-07-29 08:35:38: No controller, hence notebook communications cannot be initialized for editor file:///c%3A/temp/sampleproject/notebook.ipynb
Info 2021-07-29 08:35:38: Find preferred kernel for file:///c%3A/temp/sampleproject/notebook.ipynb with metadata {"interpreter":{"hash":"ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304"},"kernelspec":{"display_name":"Python 3 (ipykernel)","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.9.6"}} & preferred interpreter {"sysPrefix":"c:\\temp\\sampleproject\\venv","envType":"Venv","envName":"venv","envPath":"c:\\temp\\sampleproject\\venv","path":"c:\\temp\\sampleproject\\venv\\Scripts\\python.exe","architecture":3,"sysVersion":"3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.6","major":3,"minor":9,"patch":6,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.9.6 64-bit ('venv': venv)"}
Info 2021-07-29 08:35:38: findPreferredKernel score for speclanguage=python, Python 3.6.0 64-bit is -1
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.6.0 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.6.0 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for speclanguage=python, Python 3.7.8 32-bit is -1
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.7.8 32-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.7.8 32-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for speclanguage=python, Python 3.7.8 64-bit is -1
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.7.8 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.7.8 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for speclanguage=python, Python 3.8.0 64-bit is -1
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.8.0 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.8.0 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.9.6 64-bit is 100
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.9.6 64-bit is 100
Info 2021-07-29 08:35:38: findKernel found Python 3.9.6 64-bit
Info 2021-07-29 08:35:38: Find kernel spec, Class name = w, completed in 5ms, has a truthy return value, Arg 1: <Uri:c:\temp\sampleproject\notebook.ipynb>, Arg 2: {"interpreter":{"hash":"ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304"},"kernelspec":{"display_name":"Python 3 (ipykernel)","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.9.6"}}, Arg 3: {"_isCancelled":false,"_emitter":null}, Return Value: {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"C:\\Users\\rikki\\AppData\\Roaming\\jupyter\\kernels\\python396jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304\\kernel.json","interpreterPath":"C:\\Python\\Python39\\python.exe","name":"python396jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.6 64-bit","metadata":{"interpreter":{"sysPrefix":"C:\\Python\\Python39","envType":"Unknown","envName":"","envPath":"","path":"C:\\Python\\Python39\\python.exe","architecture":3,"sysVersion":"3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.6","major":3,"minor":9,"patch":6,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.9.6 64-bit"}},"env":{}},"interpreter":{"sysPrefix":"C:\\Python\\Python39","envType":"Unknown","envName":"","envPath":"","path":"C:\\Python\\Python39\\python.exe","architecture":3,"sysVersion":"3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.6","major":3,"minor":9,"patch":6,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.9.6 64-bit"},"id":".jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304.C:\\Python\\Python39\\python.exe.C:\\Python\\Python39\\python.exe.-m#ipykernel_launcher"}
Info 2021-07-29 08:35:38: PreferredConnection: .jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304.C:\Python\Python39\python.exe.C:\Python\Python39\python.exe.-m#ipykernel_launcher found for NotebookDocument: file:///c%3A/temp/sampleproject/notebook.ipynb
Info 2021-07-29 08:35:38: TargetController found ID: .jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304.C:\Python\Python39\python.exe.C:\Python\Python39\python.exe.-m#ipykernel_launcher for document file:///c%3A/temp/sampleproject/notebook.ipynb
Info 2021-07-29 08:35:38: Setting controller affinity for file:///c%3A/temp/sampleproject/notebook.ipynb .jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304.C:\Python\Python39\python.exe.C:\Python\Python39\python.exe.-m#ipykernel_launcher
Error 2021-07-29 08:35:51: Export failed Error: Importing notebooks requires Jupyter nbconvert to be installed.
    at u.getExportInterpreter (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:37:589586)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at b.export (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:54:259878)
    at m.export (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:37:301309)
    at S._executeContributedCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:120577)
Info 2021-07-29 08:36:42: No controller, hence notebook communications cannot be initialized for editor file:///c%3A/temp/sampleproject/notebook.ipynb

Let me know if I can help! Thanks again!

@joyceerhl
Copy link
Contributor

@Goudarzi Ahh, that log is not super helpful unfortunately, and it seems you're hitting a separate issue: #6879 Really sorry about that. What is your active interpreter (bottom left status bar)? Does it match the interpreter for your kernel?

@rchiodo
Copy link
Contributor

rchiodo commented Oct 7, 2021

The solution to this problem would be to not even use nbconvert anymore. Converting a notebook to a python script and vice versa should be easy to do with straight typescript code.

@greazer greazer changed the title Importing notebooks requires Jupyter nbconvert but users is not prompted to do so. Exporting notebooks to script requires Jupyter nbconvert but users is not prompted to do so. Oct 7, 2021
@greazer
Copy link
Member

greazer commented Oct 16, 2021

#7783 is a dupe/related

@greazer
Copy link
Member

greazer commented Oct 27, 2021

The specific issue of prompting for nbconvert is still not fixed. However, since we no longer require it, most users will not run into this problem. However, if you need to have cell magic's converted, then nbconvert will be necessary. There's a setting to enforce the use of nbconvert (Jupyter: Python Export Method). If set, the user will not be prompted to install nbconvert. Same repro as this bug.

We'll add this prompting to a future iteration.

@LBGPRO
Copy link

LBGPRO commented Apr 4, 2022

The debug level logging was already set.

Here is the log from the moment I open the file, until when the failure happens:

Info 2021-07-29 08:35:38: Attempting to start a server because of preload conditions ...
Info 2021-07-29 08:35:38: No controller, hence notebook communications cannot be initialized for editor file:///c%3A/temp/sampleproject/notebook.ipynb
Info 2021-07-29 08:35:38: Find preferred kernel for file:///c%3A/temp/sampleproject/notebook.ipynb with metadata {"interpreter":{"hash":"ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304"},"kernelspec":{"display_name":"Python 3 (ipykernel)","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.9.6"}} & preferred interpreter {"sysPrefix":"c:\\temp\\sampleproject\\venv","envType":"Venv","envName":"venv","envPath":"c:\\temp\\sampleproject\\venv","path":"c:\\temp\\sampleproject\\venv\\Scripts\\python.exe","architecture":3,"sysVersion":"3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.6","major":3,"minor":9,"patch":6,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.9.6 64-bit ('venv': venv)"}
Info 2021-07-29 08:35:38: findPreferredKernel score for speclanguage=python, Python 3.6.0 64-bit is -1
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.6.0 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.6.0 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for speclanguage=python, Python 3.7.8 32-bit is -1
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.7.8 32-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.7.8 32-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for speclanguage=python, Python 3.7.8 64-bit is -1
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.7.8 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.7.8 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for speclanguage=python, Python 3.8.0 64-bit is -1
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.8.0 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.8.0 64-bit is 2
Info 2021-07-29 08:35:38: findPreferredKernel score for Python3, Python 3.9.6 64-bit is 100
Info 2021-07-29 08:35:38: findPreferredKernel score for Python 3.9.6 64-bit is 100
Info 2021-07-29 08:35:38: findKernel found Python 3.9.6 64-bit
Info 2021-07-29 08:35:38: Find kernel spec, Class name = w, completed in 5ms, has a truthy return value, Arg 1: <Uri:c:\temp\sampleproject\notebook.ipynb>, Arg 2: {"interpreter":{"hash":"ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304"},"kernelspec":{"display_name":"Python 3 (ipykernel)","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.9.6"}}, Arg 3: {"_isCancelled":false,"_emitter":null}, Return Value: {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"C:\\Users\\rikki\\AppData\\Roaming\\jupyter\\kernels\\python396jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304\\kernel.json","interpreterPath":"C:\\Python\\Python39\\python.exe","name":"python396jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.6 64-bit","metadata":{"interpreter":{"sysPrefix":"C:\\Python\\Python39","envType":"Unknown","envName":"","envPath":"","path":"C:\\Python\\Python39\\python.exe","architecture":3,"sysVersion":"3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.6","major":3,"minor":9,"patch":6,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.9.6 64-bit"}},"env":{}},"interpreter":{"sysPrefix":"C:\\Python\\Python39","envType":"Unknown","envName":"","envPath":"","path":"C:\\Python\\Python39\\python.exe","architecture":3,"sysVersion":"3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.6","major":3,"minor":9,"patch":6,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.9.6 64-bit"},"id":".jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304.C:\\Python\\Python39\\python.exe.C:\\Python\\Python39\\python.exe.-m#ipykernel_launcher"}
Info 2021-07-29 08:35:38: PreferredConnection: .jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304.C:\Python\Python39\python.exe.C:\Python\Python39\python.exe.-m#ipykernel_launcher found for NotebookDocument: file:///c%3A/temp/sampleproject/notebook.ipynb
Info 2021-07-29 08:35:38: TargetController found ID: .jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304.C:\Python\Python39\python.exe.C:\Python\Python39\python.exe.-m#ipykernel_launcher for document file:///c%3A/temp/sampleproject/notebook.ipynb
Info 2021-07-29 08:35:38: Setting controller affinity for file:///c%3A/temp/sampleproject/notebook.ipynb .jvsc74a57bd0ee5cc6fef2d70a7e71ee3826687cbd150f18158e0b1eef11d4f4f92bb920e304.C:\Python\Python39\python.exe.C:\Python\Python39\python.exe.-m#ipykernel_launcher
Error 2021-07-29 08:35:51: Export failed Error: Importing notebooks requires Jupyter nbconvert to be installed.
    at u.getExportInterpreter (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:37:589586)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at b.export (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:54:259878)
    at m.export (c:\Users\rikki\.vscode\extensions\ms-toolsai.jupyter-2021.8.1054968649\out\client\extension.js:37:301309)
    at S._executeContributedCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:120577)
Info 2021-07-29 08:36:42: No controller, hence notebook communications cannot be initialized for editor file:///c%3A/temp/sampleproject/notebook.ipynb

Let me know if I can help! Thanks again!

I've this problem too. So how can I get out of this

@rchiodo
Copy link
Contributor

rchiodo commented Apr 4, 2022

@LBGPRO can you open a new issue?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority interactive-window Impacts interactive window notebook-import-export verified Verification succeeded
Projects
None yet
Development

No branches or pull requests