-
Notifications
You must be signed in to change notification settings - Fork 151
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
fix: # %% in export script #1350
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -115,7 +115,7 @@ def export_as_script( | |||
] | |||
code = ( | |||
f'\n__generated_with = "{__version__}"\n\n' | |||
+ "\n\n# ---\n\n".join(codes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for implementing this. I'd add # %%
before the first cell also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated to be right before each cell, and included on the first cell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you!
Make exported scripts compatible with VSCode notebook format
For #717