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

Code cells may be merged or splitted when code is reformated in IDE #38

Closed
mwouts opened this issue Aug 24, 2018 · 1 comment
Closed

Comments

@mwouts
Copy link
Owner

mwouts commented Aug 24, 2018

Reformating the python scripts representation of notebooks with Pycharm may change the cell structure of the notebook.

mwouts added a commit that referenced this issue Aug 24, 2018
New py file format v1.1. Cells are separated by one (or two) blank lines to allow notebook refactoring in IDEs #38
@mwouts
Copy link
Owner Author

mwouts commented Aug 25, 2018

The on-going work on version 0.6.0 solves the issue. Cells may be separated by one or two blank lines, and thus reflowing code won't break cells. For this I will have to update the file format, so that's a major change.

I would yet want that

  • 'endofcell' marker be implicit, i.e. cells that contain a blank line (outside of indented code) could be represented simply as
# + {}
# This is a cell with blank line in it
a = 3

a + 1
# -
  • also, I'd like to make sure that cells that only contain comments are signaled as cell, using the above syntax - otherwise they would be converted to markdown when converted back to Jupyter notebook.

mwouts added a commit that referenced this issue Aug 31, 2018
New py file format v1.1. Cells are separated by one (or two) blank lines to allow notebook refactoring in IDEs #38
@mwouts mwouts mentioned this issue Aug 31, 2018
@mwouts mwouts closed this as completed Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant