Comments (5)
Sure! Yet,
- Jupytext has a very different practice of cells markers (few explicit markers, start+end) than Hydrogen (all cells are marked, start only). This is also discussed here. Hydrogen syntax is simpler to parse. Jupytext's cells are more difficult to parse, but arbitrary python files can be converted to notebooks, and converted back to the original python files without loss or additional markers.
- The definition of markdown cells in Hydrogen is pending (nteract/hydrogen#1296, nteract/hydrogen#1183)
For now I would be in favor of
- preserving the current 'plain python' format for Jupytext's python scripts, and simplify
# + {}
to# +
for explicit code cells with no metadata - implementing a 'hydrogen script' format (R, Julia, Python) in Jupytext when specifications for markdown cells (and cell metadata) are chosen. The Hydrogen format must remain easy to parse (simply split on cell markers), as an additional JavaScript parser will have to be implemented in Atom.
from jupytext.
maybe stick to hydrogen
-> one standard less and hydrogen is pretty established.
Would hydrogen blow up when adding metadata like this?
# %%name-of-cell {metadata}
from jupytext.
That would be fine. Once Hydrogen sees ${comment symbol} %%
it treats that line as the start of a block.
from jupytext.
I've found more python scripts with cells defined with #%%
! VS code has a plugin that uses that convention. It's also used by Spyder. No sign of markdown cells yet, though.
from jupytext.
I'll work on an Hydrogen/VS code/Spyder compatible format at #59 (see there for possible specifications of the format). With this issue I'll just simplify # + {}
into the lighter # +
when possible.
from jupytext.
Related Issues (20)
- Restore the codecov comments on the PRs HOT 2
- All the commits are marked with a little red cross HOT 5
- reinstate `:` in valid metadata keys ? HOT 4
- Extension fails to load in ServerApp HOT 1
- Use callback to frontend extension Settings change to add/remove entries to launcher and main menu
- Unable to unpair ipynb in jupyter notebook HOT 7
- Add Galata UI tests for notebook
- Replace toml package with tomli HOT 3
- Panel widget event triggers are not working in py:percent notebooks HOT 2
- Write temporary notebooks to a `TemporaryDirectory` rather than `NamedTemporaryFile`
- feature request: automatic creation of missing notebooks for use after git clone
- Using jupytext in a nested project can result in re-import of the current module HOT 2
- Enable the discussions section for the repository HOT 2
- The Jupytext pre-commit hook fails to install when node is not available HOT 2
- Ability to specify jupytext as the viewer via URL HOT 5
- --sync: avoid updating timestamp of *.py if nothing changes HOT 11
- jupytext-config set-default-viewer failing with a miniconda install on Windows 10 HOT 2
- Convert Jupyter Notebooks with R code cells to ```r code cells
- Automatic code cell detection HOT 3
- Jupytext corrupts original notebook with base64 of pair HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupytext.