Wrap function that can convert .ipynb <> my format into NotebookSerializer #10174
Replies: 3 comments 9 replies
-
I believe you are after something similar to jupytext, where the backing file is a Python file or the like, but you'd like it to be converted to an ipynb and use the notebook experience for execution and the like (whilst the file is still saved as a plain text) Is that correct? If thats correct, then unfortunately we don't support such functionality. |
Beta Was this translation helpful? Give feedback.
-
any changes here? I'm coming back to this again and again. How it looks for me now:
There are serializers that can work with ipynb, but they can't be reused to have vs code <> ipynb <> custom format. Instead one has to copy a good chunk of vs code to get this working. @DonJayamanne how about this idea: allow extensions to not provide their custom serializer, but specify to use default ipynb serializer, and provide converter functions in typescript that will convert 'ipynb bytes <> custom format bytes' and back? That sounds like +several of lines in ipynb serializer to handle this, and should unblock jupytext and, well, others |
Beta Was this translation helpful? Give feedback.
-
Closing this as a duplicate of #1240 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My previous related question: #10121
My team uses a custom format for Jupyter notebooks which is convertible to and from .ipynb.
I 'd like to have the same functionality for vscode.
To write a custom NotebookSerializer I should implement all the conversion utilities from here: https://github.com/microsoft/vscode-jupyter/blob/4339372e6dcc518719f3e6132a28b8baae296d13/src/notebooks/helpers.ts
But I only want to add one step my format <> ipynb, and I'd like vs code to deal with ipynb <> vs code representation.
How can I achieve that?
Beta Was this translation helpful? Give feedback.
All reactions