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

Further improve the double percent format #89

Closed
5 tasks done
mwouts opened this issue Sep 24, 2018 · 1 comment
Closed
5 tasks done

Further improve the double percent format #89

mwouts opened this issue Sep 24, 2018 · 1 comment

Comments

@mwouts
Copy link
Owner

mwouts commented Sep 24, 2018

The double percent format seems to have a very nice potential as a standard text representation for Jupyter notebooks. It is already understood by many editors, some of which support other languages than Python.

Below is a list of desirable improvements for jupytext's implementation of the format:

  • Read cells from scripts generated by jupyter nbconvert. Currently most editors that can read the double percent scripts already do that, i.e. cells may start with In [21], etc.
  • Remove up to two blank lines at the end of cell (these blank lines may appear before functions or classes, when Python code is reformatted).
  • Improve support for Spyder sub cells: cell title goes to Jupyter cell metadata (with no initial % in it), and cell depth is stored in another metadata.
  • Allow different comment chars for different languages (; or ;; for scheme or lisp, // for c++, etc).
  • Implement an option for commenting Jupyter magics in the script. Depending on the interpreter, the user may want or not to execute these commands.
mwouts added a commit that referenced this issue Oct 6, 2018
@mwouts
Copy link
Owner Author

mwouts commented Oct 10, 2018

Available in v0.8.0

@mwouts mwouts closed this as completed Oct 10, 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