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

V0.8.0 #96

Merged
merged 47 commits into from
Oct 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
a743f83
Raise error if destination format and extensions are both missing
mwouts Sep 30, 2018
cbd4c6a
Explicit empty argument list is required
mwouts Oct 1, 2018
e16b109
Save the demo notebook under the three python formats
mwouts Oct 1, 2018
b6cc7f4
2.new.py is understood as format new.py -> use a longer name
mwouts Oct 1, 2018
106faca
Trust ipynb representation of the notebook when asked for it
mwouts Oct 1, 2018
afc017e
pylint
mwouts Oct 1, 2018
83bb664
Remove second extension from name only when loading content
mwouts Oct 2, 2018
5631f56
Jupytext metadata moved to a jupytext section #91
mwouts Oct 2, 2018
1a5e7f5
flake8
mwouts Oct 2, 2018
954e730
Read code cells from scripts created by nbconvert #89
mwouts Oct 2, 2018
e483897
Improve support for Spyder's sub cells #89
mwouts Oct 2, 2018
40c218b
Remove up to two blank lines on cell end #89
mwouts Oct 2, 2018
00c2ddd
Jupytext version number in VERSION file, in jupytext.__version__, and…
mwouts Oct 3, 2018
66fc501
Scheme, C++ and more, Jupytext section for metadata #91 #61
mwouts Oct 3, 2018
dff9a2b
Version number in version.py for compatibility with Python 2.7
mwouts Oct 3, 2018
b0ef890
This will be version 0.8.0
mwouts Oct 3, 2018
2cbe298
Fix link and typo
mwouts Oct 3, 2018
8f68c73
Simplified part on backward compatibility
Oct 4, 2018
cb7f589
main_language metadata goes to jupytext section #91
mwouts Oct 5, 2018
13efb64
"comment_magics" metadata implemented for all formats #89
mwouts Oct 5, 2018
f899e20
Test the default_comment_magics in the contents manager #89
mwouts Oct 5, 2018
9502544
Added doc for 'comment_magics' option #89
mwouts Oct 6, 2018
638c887
Reformat rST text: don't break items, quote code with two quotes
mwouts Oct 6, 2018
97c2739
Links to the different formats
mwouts Oct 6, 2018
bcc0113
pylint
mwouts Oct 6, 2018
fdf9d2d
auto extension #93
mwouts Oct 6, 2018
389311d
pypy first
mwouts Oct 6, 2018
74cdc8d
Update paired notebook example
mwouts Oct 7, 2018
6876d7c
One spyder cell is enought to activate percent format #59
mwouts Oct 7, 2018
6cf7b7e
Remove final blank line
mwouts Oct 7, 2018
14b5d12
Test preferred_jupytext_formats_read auto:percent #93
mwouts Oct 8, 2018
b134347
Update README.md
mwouts Oct 8, 2018
a2f5bcf
Moved version number in version.py
mwouts Oct 9, 2018
cdeb9fa
Any instruction starting with % is magic #94
mwouts Oct 9, 2018
a49d3fa
Current extension cannot go to 'formats'
mwouts Oct 9, 2018
98fdf75
More tests for #95 #93
mwouts Oct 9, 2018
b838312
Notebooks updated
mwouts Oct 9, 2018
a26b42d
Update HISTORY.rst
mwouts Oct 9, 2018
91e26ac
Simpler is better
mwouts Oct 9, 2018
db37bb1
Update VERSION
mwouts Oct 9, 2018
9845952
Update README.md
mwouts Oct 9, 2018
b97f3e7
Test format_name from global config #93 #95
mwouts Oct 10, 2018
aa9f467
Don't append format name for md
mwouts Oct 10, 2018
c3944ff
Export demo notebook to Rmd as well
mwouts Oct 10, 2018
f59fb51
Link to the R Markdown example, plus rephrasing
mwouts Oct 10, 2018
d5fdfb9
Update README.md
mwouts Oct 10, 2018
a0bc9d7
v0.8.0 becomes master
mwouts Oct 10, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
language: python
python:
- "pypy"
- "2.7"
- "3.4"
- "3.5"
- "3.6"
# PyPy versions
- "pypy"
matrix:
include:
- python: 3.7
Expand Down
135 changes: 61 additions & 74 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,63 +3,72 @@
Release History
---------------

0.8.0 (2018-10-10)
++++++++++++++++++++++

**Improvements**

- All ``jupytext`` related metadata goes to a ``jupytext`` section (#91). Please make sure your collaborators use the same version of Jupytext, as the new version can read previous metadata, but not the opposite.
- Notebooks extensions can be prefixed with any prefix of at most three chars (#87).
- Export of the same notebook to multiple formats is now supported. To export to all python formats, plus ``.ipynb`` and ``.md``, use ``"jupytext": {"formats": "ipynb,pct.py:percent,lgt.py:light,spx.py:sphinx,md"},``.
- README includes a short section on how to extend ``light`` and ``percent`` formats to more languages (#61).
- Jupytext's contents manager accepts the ``auto`` extension in ``default_jupytext_formats`` (#93).
- All Jupyter magics are escaped in ``light`` scripts and R markdown documents. Escape magics in other formats with a ``comment_magics`` metadata (true or false), or with the contents manager ``comment_magics`` global flag (#94).

**BugFixes**

- Trusting notebooks made functional again.
- Command line ``jupytext`` returns a meaningful error when no argument is given.
- Fixed global pairing configuration (#95).

0.7.2 (2018-10-01)
++++++++++++++++++++++

**Improvements**

- `light` and `percent` formats made available for scheme and cpp notebooks. Adding more formats
is straightforward - just add a new entry to _SCRIPT_EXTENSIONS in languages.py, a sample notebook
and a mirror test (#61)
- Format name is automatically appended to extension in `jupytext_formats` when notebook is loaded/saved.
- ``light`` and ``percent`` formats made available for scheme and cpp notebooks. Adding more formats is straightforward - just add a new entry to _SCRIPT_EXTENSIONS in languages.py, a sample notebook and a mirror test (#61)
- Format name is automatically appended to extension in ``jupytext_formats`` when notebook is loaded/saved.

**BugFixes**

- Notebooks extensions can only be prefixed with `.nb` (#87)
- Notebooks extensions can only be prefixed with ``.nb`` (#87)


0.7.1 (2018-09-24)
++++++++++++++++++++++

**BugFixes**

- Markdown cells header in sphinx gallery format may have a space between
first # and following.
- Markdown cells header in sphinx gallery format may have a space between first # and following.

0.7.0 (2018-09-23)
++++++++++++++++++++++

**Improvements**

- Header for cells in `percent` format is more robust: use `[markdown]` and
`[raw]` to identify cell types. Cell type comes after the cell title. (#59)
- Header for cells in ``percent`` format is more robust: use ``[markdown]`` and ``[raw]`` to identify cell types. Cell type comes after the cell title. (#59)

0.7.0-rc0 (2018-09-22)
++++++++++++++++++++++

**Improvements**

- Jupytext can read and write notebooks as Hydrogen/VScode/Spyder/PyCharm
compatible scripts (cells starting with `# %%`) (#59)
- Jupytext can read and write notebooks as Hydrogen/VScode/Spyder/PyCharm compatible scripts (cells starting with ``# %%``) (#59)
- Jupytext can read and write notebooks as Sphinx-gallery compatible scripts (#80)
- Metadata are supported for all cell types in light python and percent
formats (#66). Due to this, light python format version is now 1.3. Light python
notebooks in versions 1.1 and 1.2 are still readable.
- Command line `jupytext` has a `from` argument, and now accepts notebook from
the standard input.
- Metadata are supported for all cell types in light python and percent formats (#66). Due to this, light python format version is now 1.3. Light python notebooks in versions 1.1 and 1.2 are still readable.
- Command line ``jupytext`` has a ``from`` argument, and now accepts notebook from the standard input.

**BugFixes**

- Fix merging of input and output notebooks (#83)
- Removed extra new line on stdout in command line `jupytext` (#84)
- Removed extra new line on stdout in command line ``jupytext`` (#84)

0.6.5 (2018-09-13)
+++++++++++++++++++

**Improvements**

- Code lines that start with a quotation mark in Jupyter are commented in the
corresponding Python and Julia scripts (#73)
- Code lines that start with a quotation mark in Jupyter are commented in the corresponding Python and Julia scripts (#73)
- Update pypy, add flake8 tests on Travis CI (#74)

**BugFixes**
Expand All @@ -77,30 +86,28 @@ corresponding Python and Julia scripts (#73)
**BugFixes**

- Allow unicode characters in notebook path (#70)
- Read README.md as unicode in `setup.py` (#71)
- Read README.md as unicode in ``setup.py`` (#71)

0.6.3 (2018-09-07)
+++++++++++++++++++

**Improvements**

- Lighter cell markers for Python and Julia scripts (#57). Corresponding file
format version at 1.2. Scripts in previous version 1.1 can still be opened.
- Lighter cell markers for Python and Julia scripts (#57). Corresponding file format version at 1.2. Scripts in previous version 1.1 can still be opened.
- New screenshots for the README.

**BugFixes**

- Command line conversion tool `jupytext` fixed on Python 2.7 (#46)
- Command line conversion tool ``jupytext`` fixed on Python 2.7 (#46)

0.6.2 (2018-09-05)
+++++++++++++++++++

**Improvements**

- Initial support for Jupyter notebooks as Julia scripts (#56)
- Command line conversion tool `jupytext` has explicit `to` and `output`
options (#46)
- Round trip test with `jupytext --test` improved (#54)
- Command line conversion tool ``jupytext`` has explicit ``to`` and ``output`` options (#46)
- Round trip test with ``jupytext --test`` improved (#54)
- Improved README (#51)


Expand All @@ -114,29 +121,24 @@ options (#46)

**Improvements**

- Package and conversion script renamed from `nbrmd` to `jupytext`.
- Package and conversion script renamed from ``nbrmd`` to ``jupytext``.

0.6.0 (2018-08-31)
+++++++++++++++++++

**Improvements**

- Cell parsing and exporting done in two specialized classes. This is way
easier to read. Pylint score at 9.9 !
- Python file format updated to 1.1: default end of cell for python scripts is
one blank space. Two blank spaces are allowed as well. Now you can reformat
code in Python IDE without breaking notebook cells (#38).
- Cell parsing and exporting done in two specialized classes. This is way easier to read. Pylint score at 9.9 !
- Python file format updated to 1.1: default end of cell for python scripts is one blank space. Two blank spaces are allowed as well. Now you can reformat code in Python IDE without breaking notebook cells (#38).
- Added support for plain markdown files (#40, #44).
- Demonstration notebooks more user friendly (#45).
- Command line tool simpler to use (#46).
- Start code patterns present in Jupyter cells are escaped.
- Default `nbrmd_format` is empty (mwouts/nbsrc/#5): no Jupyter notebook
is created on disk when the user opens a Python or R file and saves it from
Jupyter, unless the users asks for it by setting `nbrmd_format`.
- Default ``nbrmd_format`` is empty (mwouts/nbsrc/#5): no Jupyter notebook is created on disk when the user opens a Python or R file and saves it from Jupyter, unless the users asks for it by setting ``nbrmd_format``.

**BugFixes**

- Fixed message in the `nbsrc` script (#43)
- Fixed message in the ``nbsrc`` script (#43)
- Technical metadata don't appear any more in scripts unless required (#42)
- Code cells that are fully commented remain code cells after round trip (#41)

Expand All @@ -163,8 +165,7 @@ Jupyter, unless the users asks for it by setting `nbrmd_format`.
**Improvements**

- Classical jupyter extensions (autoreload, rmagics) are also escaped (#35)
- Explicit file format version, set at 1.0, to avoid overriding ipynb
files by accident (#36)
- Explicit file format version, set at 1.0, to avoid overriding ipynb files by accident (#36)


0.5.1 (2018-08-21)
Expand All @@ -183,15 +184,10 @@ files by accident (#36)
- 'endofcell' option for explicit (optional) end-of-cell marker (#31)
- 'active' cell option now supported for .py and .R export (#30)
- Raw cells now preserved when exported to .py or .R (#32)
- Extensions can be prefixed, like `.nb.py`, (mwouts/nbsrc#5)
- When a file with an extension not associated to 'ipynb' is opened and saved,
no 'ipynb' file is created (mwouts/nbsrc#5)
- Extensions can now be a sequence of groups. For instance,
`nbrmd_formats="ipynb,nb.py;script.ipynb,py"` will create an `ipynb` file
when a `nb.py` is opened (and conversely), and a `script.ipynb` file when a
`py` file is opened (mwouts/nbsrc#5)
- `nbsrc` script was moved to the `nbrmd` package. The `nbsrc` package now only
contains the documentation (mwouts/nbsrc#3)
- Extensions can be prefixed, like ``.nb.py``, (mwouts/nbsrc#5)
- When a file with an extension not associated to 'ipynb' is opened and saved, no 'ipynb' file is created (mwouts/nbsrc#5)
- Extensions can now be a sequence of groups. For instance, ``nbrmd_formats="ipynb,nb.py;script.ipynb,py"`` will create an ``ipynb`` file when a ``nb.py`` is opened (and conversely), and a ``script.ipynb`` file when a ``py`` file is opened (mwouts/nbsrc#5)
- ``nbsrc`` script was moved to the ``nbrmd`` package. The ``nbsrc`` package now only contains the documentation (mwouts/nbsrc#3)


0.4.6 (2018-07-26)
Expand All @@ -205,15 +201,14 @@ contains the documentation (mwouts/nbsrc#3)

**BugFixes**

- Removed dependency of `setup.py` on `yaml`
- Removed dependency of ``setup.py`` on ``yaml``

0.4.4 (2018-07-26)
+++++++++++++++++++

**BugFixes**

- Package republished with `python setup.py sdist bdist_wheel` to fix missing
dependencies
- Package republished with ``python setup.py sdist bdist_wheel`` to fix missing dependencies

0.4.3 (2018-07-26)
+++++++++++++++++++
Expand All @@ -225,10 +220,9 @@ dependencies

**BugFixes**

- ContentsManager can be imported even if `notebook.transutils` is not
available, for compatibility with older python distributions.
- ContentsManager can be imported even if ``notebook.transutils`` is not available, for compatibility with older python distributions.
- Fixed missing cell metadata #27
- Documentation tells how to avoid creating `.ipynb` files #16
- Documentation tells how to avoid creating ``.ipynb`` files #16

0.4.2 (2018-07-23)
+++++++++++++++++++
Expand All @@ -237,8 +231,7 @@ available, for compatibility with older python distributions.

- Added test for R notebooks
- Added pylint badge, imports now in correct order
- New `active` cell metadata that allows cell activation only for desired
extensions (currently available for Rmd and ipynb extensions only)
- New ``active`` cell metadata that allows cell activation only for desired extensions (currently available for Rmd and ipynb extensions only)

0.4.1 (2018-07-20)
+++++++++++++++++++
Expand All @@ -253,31 +246,28 @@ extensions (currently available for Rmd and ipynb extensions only)

**Improvements**

- `.py` format for notebooks is lighter and pep8 compliant
- ``.py`` format for notebooks is lighter and pep8 compliant

**BugFixes**

- Default nbrmd config not added to notebooks (#17)
- `nbrmd_formats` becomes a configurable traits (#16)
- Removed `nbrmd_sourceonly_format` metadata. Source notebook is current notebook
when not `.ipynb`, otherwise the first notebook format in `nbrmd_formats` (not
`.ipynb`) that is found on disk
- ``nbrmd_formats`` becomes a configurable traits (#16)
- Removed ``nbrmd_sourceonly_format`` metadata. Source notebook is current notebook when not ``.ipynb``, otherwise the first notebook format in ``nbrmd_formats`` (not ``.ipynb``) that is found on disk

0.3.0 (2018-07-17)
+++++++++++++++++++

**Improvements**

- Introducing support for notebooks as python `.py` or R scripts `.R`
- Introducing support for notebooks as python ``.py`` or R scripts ``.R``

0.2.6 (2018-07-13)
+++++++++++++++++++

**Improvements**

- Introduced `nbrmd_sourceonly_format` metadata
- Inputs are loaded from `.Rmd` file when a matching `.ipynb` file is
opened.
- Introduced ``nbrmd_sourceonly_format`` metadata
- Inputs are loaded from ``.Rmd`` file when a matching ``.ipynb`` file is opened.

**BugFixes**

Expand All @@ -288,8 +278,7 @@ opened.

**Improvements**

- Outputs of existing `.ipynb` versions are combined with matching inputs
of R markdown version, as suggested by @grst (#12)
- Outputs of existing ``.ipynb`` versions are combined with matching inputs of R markdown version, as suggested by @grst (#12)

**BugFixes**

Expand All @@ -301,14 +290,13 @@ opened.

**Improvements**

- nbrmd will always open notebooks, even if header of code cells are not terminated. Merge conflicts can thus be
solved in Jupyter directly.
- nbrmd will always open notebooks, even if header of code cells are not terminated. Merge conflicts can thus be solved in Jupyter directly.
- New metadata 'main language' that preserves the notebook language.

**BugFixes**

- dependencies included in `setup.py`
- pre_save_hook work with non-empty `notebook_dir` (#9)
- dependencies included in ``setup.py``
- pre_save_hook work with non-empty ``notebook_dir`` (#9)

0.2.3 (2018-06-28)
+++++++++++++++++++
Expand All @@ -319,7 +307,7 @@ solved in Jupyter directly.

**BugFixes**

- rmarkdown exporter for nbconvert fixed on non-recent python
- RMarkdown exporter for nbconvert fixed on non-recent python
- Tests compatible with other revisions of nbformat >= 4.0
- Tests compatible with older pytest versions

Expand All @@ -343,7 +331,7 @@ solved in Jupyter directly.
**Improvements**

- Support for editing markdown files in Jupyter
- New pre-save hook `update_selected_formats` that saves to formats in metadata 'nbrmd_formats'
- New pre-save hook ``update_selected_formats`` that saves to formats in metadata 'nbrmd_formats'
- Rmd cell options directly mapped to cell metadata

**BugFixes**
Expand All @@ -370,5 +358,4 @@ solved in Jupyter directly.
0.1 (2018-06-18)
+++++++++++++++++++

- Initial version with the ``nbrmd`` converter and Jupyter ``pre_save_hook``

- Initial version with the nbrmd`` converter and Jupyter ``pre_save_hook``
Loading