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

Native notebook interface with percent-encoded scripts #4861

Closed
akdor1154 opened this issue Feb 18, 2021 · 3 comments
Closed

Native notebook interface with percent-encoded scripts #4861

akdor1154 opened this issue Feb 18, 2021 · 3 comments

Comments

@akdor1154
Copy link

akdor1154 commented Feb 18, 2021

Apologies if this is a dupe: I've searched for "percent" and "jupytext" with no result but it seems strange that this hasn't been raised.

I want to use the new native notebook interface with percent-encoded notebook/scripts, as supported by the legacy interpreter pane.

E.g.

#%%
# cell 1
import sql
#%%
# cell 2
df = sql.read(...)
#%%
...

I would expect the workflow to work roughly like jupyter with the jupytext extension: I'd open a .py file (perhaps with a special "open as notebook" command) and I'd be presented with it rendered and editable as a notebook. Cell outputs would not be saved in this format, but vscode might prepend some metadata to its head if necessary to save kernel params, the fact it's a "notebook", etc.

@rchiodo
Copy link
Contributor

rchiodo commented Feb 18, 2021

This is possible today?

image

That exports from the file itself. You can also export from the interactive window.

It seems it's not available (all the time) on the command palette though. When it is it looks like this:

image

@greazer
Copy link
Member

greazer commented Feb 18, 2021

Very close to being a dupe of #1240. Even if it's different, we don't have plans on doing this in the near future. Thanks for the request though!

@greazer greazer closed this as completed Feb 18, 2021
@akdor1154
Copy link
Author

Indeed that link is close enough to what I want. Thanks! (And thanks for otherwise thankless triage work :) )

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants