drivendataorg / drivendataorg/nbautoexport

Using nbautoexport in VSCode

Open
#128 1 comment 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
Python
Stars
87
Forks
10
PR merge metrics
No merged PRs in 30d

Description

* nbautoexport version: 0.5.2
* Python version: 3.12.4
* Operating System: macOS Sonoma 14.4

### Description

I’m trying to run nbautoexport in Jupyter Notebooks opened in VSCode. Conversion from .ipynb to .py works without any problems in Jupyter Notebook/Jupyter Lab. However, whenever I connect VSCode to an active Jupyter session, neither automatic nor manual saves force the library to do the export to a .py file.

It seems probable that this is not an issue with nbautoexport itself, but rather with how VSCode saves notebook files. Nevertheless, I would be very grateful for any suggestions on how to tackle this issue.

### What I Did
1. Installed nbautoexport
2. Tested the behaviour in Jupyter Notebook/Jupyter Lab:
* Conversion works without any problems.
3. Tested the behavior in VSCode:
* Using the same session where nbautoexport worked with Jupyter Notebook/Lab (doesn’t work)
* Using a new session created in VSCode (doesn’t work)

I also tried adding `% autosave 120` to force save the notebooks every 2 minutes, and it also didn’t work.

Observations:

* Jupyter Notebook/Jupyter Lab: Export to .py works as expected.
* VSCode: Neither automatic nor manual saves trigger the export.

Additional Information:

* No error messages were received during testing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.