-
Notifications
You must be signed in to change notification settings - Fork 386
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
Convert code in Frozen Cell as comments in .py
#101
Comments
Hello Andre, thanks for suggesting. There is no such option currently. Yet it would be easy to implement support for frozen cells. Would you like to submit a sample notebook with just one frozen cell ? Please send it either by email, or using a PR (put the notebook in tests/notebooks). Thanks! |
Hi @mwouts , Thanks for your reply. Created a PR as you requested containing the notebook and the generated You will notice in the # + {"editable": false, "deletable": false, "run_control": {"frozen": true}}
# This is an frozen cell
print("I'm frozen so Im not executed :(")
# - In such cases, I would like that the code (the Offtopic: # + {"ExecuteTime": {"start_time": "2018-10-17T10:31:56.157308Z", "end_time": "2018-10-17T10:31:56.160823Z"}}
# This is an unfrozen cell. Works as usual.
print("I'm a regular cell so I run and print!") It has a Would it be possible for the Please let me know your thoughts. |
Thanks @andrethrill . The PR will be very helpful to implement and test your initial request - I will try to do that soon. As for your comment on metadata, I like very much the idea of filtering cell metadata. Would you like to open another issue? As a start we could skip the 'ExecuteTime' cell metadata for everyone (there are already a few cell metadata that jupytext does not include, cf. https://github.com/mwouts/jupytext/blob/master/jupytext/cell_metadata.py#L32). Unless you think it is important that for every notebook, one can tell which cell metadata to include/exclude? Please let me know your preference. |
Available in version 0.8.3:
Thanks @andrethrill for suggesting these two improvements. And welcome as a contributor! |
I'm currently test-driving jupytext and I like its potential! Thanks for this neat tool!
I like to use the Freeze Cells extension in my notebooks.
Is it possible to configure jupytext to convert the code in frozen cells as comments in the associated
.py
file?The text was updated successfully, but these errors were encountered: