-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize jupytext config options names (#754)
* jupytext.read and write accept a config argument * Settings from the config file have precedence over those in the notebook at save time * Comment on why we use the config when reading text notebooks * Normalize the Jupytext configuration options - default_jupytext_formats -> formats - default_notebook_metadata_filter -> notebook_metadata_filter - default_cell_metadata_filter -> cell_metadata_filter - default_cell_markers -> cell_markers Previous option names are supported but will cause a DeprecationWarning * Rename "default_jupytext_formats" to "formats" in the tests and documentation * Rename "default_notebook_metadata_filter" to "notebook_metadata_filter" in the tests and documentation * Rename "default_cell_metadata_filter" to "cell_metadata_filter" in the tests and documentation * Rename "default_cell_markers" to "cell_markers" in the tests and documentation * On the way to Jupytext 1.11.0 * Use nbformat>=5.1.2 in tests to get rid of the 'Sampling from a set deprecated' warning * 'formats' in jupytext.toml can be a string, a list or a dict prefix => format name * Issue FutureWarnings rather than DeprecationWarnings when obsolete config names are used * Add contributing.md to the documentation * Use notebook_extensions from the config file if set #746 * One more test on config & metadata filters * Test that deprecated options work but result in a warning * Version 1.11.0rc0 * Version 1.11.0
- Loading branch information
Showing
33 changed files
with
415 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Contributing | ||
|
||
Thanks for reading this. Contributions to this project are welcome. | ||
And there are many ways you can contribute... | ||
|
||
## Spread the word | ||
|
||
You like Jupytext? Probably your friends and colleagues will like it too. | ||
Show them what you've been able to do with: version control, collaboration on notebooks, refactoring of notebooks, notebooks integrated in library, notebook generated from Markdown documents... | ||
|
||
By the way, we're also interested to know how you use Jupytext! There may well be applications we've not thought of! | ||
|
||
## Improve the documentation | ||
|
||
You think the documentation could be improved? You've spotted a typo, or you think you can rephrase a paragraph to make is easier to follow? Please follow the _Edit on Github_ link, edit the document, and submit a pull request. | ||
|
||
## Report an issue | ||
|
||
You have seen an issue with Jupytext, or you can't find your way in the documentation? | ||
Please let us know, and provide enough information so that we can reproduce the problem. | ||
|
||
## Propose enhancements | ||
|
||
You want to submit an enhancement on Jupytext? Unless this is a small change, we usually prefer that you let us know beforehand: open an issue that describe the problem you want to solve. | ||
|
||
## Add support for another language | ||
|
||
A pull request for which you do not need to contact us in advance is the addition of a new language to Jupytext. In principle that should be easy - you would only have to: | ||
- document the language extension and comment by adding one line to `_SCRIPT_EXTENSIONS` in `languages.py`. | ||
- add the language to `docs/languages.md` | ||
- contribute a sample notebook in `tests/notebooks/ipynb_[language]`. | ||
- run the tests suite (with just `pytest`). The mirror tests will generate various text representations corresponding to your notebook under `tests/notebooks/mirror/`. Please verify that these files are valid scripts, and commit them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.