From b0f04a0808de5d87316e95023cfdb07aff66a541 Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Fri, 14 Sep 2018 13:26:15 +0200 Subject: [PATCH 1/3] Matplotlib examples as LIVE Jupyter notebooks with to Binder and Jupytext --- .jupyter/jupyter_notebook_config.py | 1 + README.rst | 7 ++++++- binder/requirements.txt | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .jupyter/jupyter_notebook_config.py create mode 100644 binder/requirements.txt diff --git a/.jupyter/jupyter_notebook_config.py b/.jupyter/jupyter_notebook_config.py new file mode 100644 index 000000000000..3a6c9ce9b912 --- /dev/null +++ b/.jupyter/jupyter_notebook_config.py @@ -0,0 +1 @@ +c.NotebookApp.contents_manager_class = 'jupytext.TextFileContentsManager' # noqa diff --git a/README.rst b/README.rst index ed5ff8bce332..809742af126b 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -|Travis|_ |AppVeyor|_ |Codecov|_ |LGTM|_ |PyPi|_ |Gitter|_ |NUMFocus|_ +|Travis|_ |AppVeyor|_ |Codecov|_ |LGTM|_ |PyPi|_ |Gitter|_ |NUMFocus|_ |Examples|_ |Tutorials|_ .. |Travis| image:: https://travis-ci.org/matplotlib/matplotlib.svg?branch=master @@ -22,6 +22,11 @@ .. |NUMFocus| image:: https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A .. _NUMFocus: http://www.numfocus.org +.. |Examples| image:: https://mybinder.org/badge.svg +.. _Examples: https://mybinder.org/v2/gh/mwouts/matplotlib/master?filepath=examples + +.. |Tutorials| image:: https://mybinder.org/badge.svg +.. _Tutorials: https://mybinder.org/v2/gh/mwouts/matplotlib/master?filepath=tutorials ########## Matplotlib diff --git a/binder/requirements.txt b/binder/requirements.txt new file mode 100644 index 000000000000..c7241525affb --- /dev/null +++ b/binder/requirements.txt @@ -0,0 +1,2 @@ +jupytext >= 0.6.5 +matplotlib From be51754f0bf2dfee5f0e880032241d5843bf46c8 Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Fri, 14 Sep 2018 13:50:31 +0200 Subject: [PATCH 2/3] Prepare binder url for matplotlib --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 809742af126b..68e5576c2f8d 100644 --- a/README.rst +++ b/README.rst @@ -23,10 +23,10 @@ .. _NUMFocus: http://www.numfocus.org .. |Examples| image:: https://mybinder.org/badge.svg -.. _Examples: https://mybinder.org/v2/gh/mwouts/matplotlib/master?filepath=examples +.. _Examples: https://mybinder.org/v2/gh/matplotlib/matplotlib/master?filepath=examples .. |Tutorials| image:: https://mybinder.org/badge.svg -.. _Tutorials: https://mybinder.org/v2/gh/mwouts/matplotlib/master?filepath=tutorials +.. _Tutorials: https://mybinder.org/v2/gh/matplotlib/matplotlib/master?filepath=tutorials ########## Matplotlib From e9d2f4b8d6dc2ba9acfde47269ad97277d19cb6f Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Mon, 24 Sep 2018 00:35:58 +0200 Subject: [PATCH 3/3] Sphinx Galleries supported in Jupytext 0.7.0 --- .jupyter/jupyter_notebook_config.py | 2 ++ binder/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.jupyter/jupyter_notebook_config.py b/.jupyter/jupyter_notebook_config.py index 3a6c9ce9b912..4baef2fae164 100644 --- a/.jupyter/jupyter_notebook_config.py +++ b/.jupyter/jupyter_notebook_config.py @@ -1 +1,3 @@ c.NotebookApp.contents_manager_class = 'jupytext.TextFileContentsManager' # noqa +c.ContentsManager.preferred_jupytext_formats_read = 'py:sphinx' # noqa +c.ContentsManager.sphinx_convert_rst2md = True # noqa diff --git a/binder/requirements.txt b/binder/requirements.txt index c7241525affb..68035bc1c6fb 100644 --- a/binder/requirements.txt +++ b/binder/requirements.txt @@ -1,2 +1,2 @@ -jupytext >= 0.6.5 +jupytext >= 0.7.0 matplotlib pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy