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.

Cannot export jupyter notebook to .py

See original GitHub issue

Issue Type: Bug

Just clicking on convert and save to python script returns an empty script with just one cell

# To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'

Really annoying.

I know there is another issue, similar to this, marked as resolved, but it seems it is not resolved.

Extension version: 2020.4.74986 VS Code version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T16:36:23.138Z) OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel® Core™ i7-8550U CPU @ 1.80GHz (8 x 1992)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.85GB (13.98GB free)
Process Argv
Screen Reader no
VM 0%

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
greazercommented, Apr 30, 2020

@Rcubes, can you try running ‘jupyter nbconvert’ from the command-line? Looks like this is failing.

1reaction
DavidKutucommented, Apr 28, 2020

Hi @Rcubes, looks like VS Code doesn’t have access to C:\\Users\fata2810\AppData\Local\Microsoft\WindowsApps\ where your python interpreters are located. You can see it in your log on lines 208, 2011 and 2014 where it says ‘Acceso denegado’. Try to run VS Code as administrator and see it that fixes it, please let me know.

On another note ‘jupyter-nbextensions-configurator’ seems to not be installed. Please run pip install jupyter-nbextensions_configurator in your terminal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - VScode fails to export Jupyter notebook to HTML
5 Answers 5 · Install required module: pip install nbconvert · Turn to the folder that contains .ipynb then run jupyter nbconvert --to...
Read more >
Cannot export python notebook to ipython notebook or html ...
Hello,. I edited a python notebook in databricks and I'd like to export it as ipython notebook or html file. However, I got...
Read more >
Export Jupyter Notebook as a Python file (.py), a PDF, or an ...
Your browser can't play this video. ... Export Jupyter Notebook as a Python file (. py ), a PDF, or an HTML file...
Read more >
VS Code export your jupyter notebook as .py and ... - YouTube
Your browser can't play this video. ... VS Code export your jupyter notebook as . py and save as does not work Jan...
Read more >
Working with Jupyter Notebooks in Visual Studio Code
You can export a Jupyter Notebook as a Python file ( .py ), a PDF, or an HTML file. To export, select the...
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