Skip to content

Commit

Permalink
docs: enable binder (#97)
Browse files Browse the repository at this point in the history
* add environment configuration file

* create notebooks folder and add welcome notebook

* add binder link in README file to link welcome notebook

* remove demos folder

* update docs to add example notebook binder links

* update binder links from fork repo to pymt repo

* fix typo in example.rst file
  • Loading branch information
gantian127 authored and mcflugen committed Oct 16, 2019
1 parent 37b75a4 commit ba6862b
Show file tree
Hide file tree
Showing 17 changed files with 98 additions and 22 deletions.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
<img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
<a href="https://www.codacy.com/app/mcflugen/pymt?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=csdms/pymt&amp;utm_campaign=Badge_Grade">
<img src="https://api.codacy.com/project/badge/Grade/e8e273131ecb4d7d981fe9f4cf3e83d9"/></a>

<a href="https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2FWelcome.ipynb">
<img alt="Launch Binder" src="https://static.mybinder.org/badge_logo.svg"></a>
</p>

PyMT is an Open Source Python package, developed by the
Expand Down
57 changes: 36 additions & 21 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,50 @@ have to install Jupyter Notebook:
Single Models
-------------
* Frost Number Model |binder-frost_number|
.. |binder-frost_number| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2Ffrost_number.ipynb

* :doc:`Frost Number Model <demos/frost_number>` |macOS| |Linux| |Windows|
* :doc:`Kudryavtsev Model <demos/ku>` |macOS| |Linux| |Windows|
* :doc:`GIPL Model<demos/Example_01_Basic_Use_GIPL>` |macOS| |Linux|
* :doc:`ECSimpleSnow Model <demos/ECSnow_PyMT>` |macOS| |Linux| |Windows|
* :doc:`Coastline Evolution Model <demos/cem>` |macOS| |Linux|
* :doc:`Hydrotrend<demos/hydrotrend>` |macOS| |Linux|
* :doc:`Sedflux3D <demos/sedflux3d>` |macOS| |Linux|
* :doc:`Flexural Subsidence <demos/subside>` |macOS| |Linux|
* Kudryavtsev Model |binder-ku|
.. |binder-ku| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2Fku.ipynb

* GIPL Model |binder-GIPL|
.. |binder-GIPL| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2FExample_01_Basic_Use_GIPL.ipynb

Coupled Models
--------------
* ECSimpleSnow Model |binder-ECSnow|
.. |binder-ECSnow| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2FECSnow_PyMT.ipynb

* Coastline Evolution Model |binder-cem|
.. |binder-cem| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2Fcem.ipynb

* Hydrotrend |binder-hydrotrend|
.. |binder-hydrotrend| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2Fhydrotrend.ipynb

* :doc:`Coastline Evolution Model + Waves <demos/cem_and_waves>` |macOS| |Linux|
* :doc:`GIPL + ECSimpleSnow Models <demos/Example_02_GIPL_ECSimpleSnow>` |macOS| |Linux|
* Sedflux3D |binder-sedflux3d|
.. |binder-sedflux3d| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2Fsedflux3d.ipynb

* Flexural Subsidence |binder-subside|
.. |binder-subside| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2Fsubside.ipynb


Coupled Models
--------------

.. |macOS| image:: _static/apple.svg
:height: 15px
:alt: macOS
* Coastline Evolution Model + Waves |binder-cem_and_waves|
.. |binder-cem_and_waves| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2Fcem_and_waves.ipynb

.. |Linux| image:: _static/linux.svg
:height: 15px
:alt: Linux
* GIPL + ECSimpleSnow Models |binder-GIPL_and_ECSnow|
.. |binder-GIPL_and_ECSnow| image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/csdms/pymt.git/master?filepath=notebooks%2FExample_02_GIPL_ECSimpleSnow.ipynb

.. |Windows| image:: _static/windows.svg
:height: 15px
:alt: Windows

..
Sphinx emits a warning if documents aren't in a toctree.
Expand Down
13 changes: 13 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: test-environment
channels:
- conda-forge
dependencies:
- python=3.7
- pymt=1.0.3
- pymt_gipl
- pymt_ecsimplesnow
- seaborn
- matplotlib
- pandas
- numpy

File renamed without changes.
File renamed without changes.
47 changes: 47 additions & 0 deletions notebooks/Welcome.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Welcome to Pymt demo Notebooks\n",
"\n",
"This page provides links to notebooks that provide an introduction to Pymt and its use for different models. \n",
"\n",
" * [Coastline Evolution Model](cem.ipynb)\n",
" * [Coastline Evolution Model + Waves](cem_and_waves.ipynb)\n",
" * [ECSimpleSnow component](ECSnow_PyMT.ipynb)\n",
" * [Geophysical Institute Permafrost Laboratory (GIPL) Model](Example_01_Basic_Use_GIPL.ipynb)\n",
" * [GIPL + ECSimpleSnow](Example_02_GIPL_ECSimpleSnow.ipynb)\n",
" * [Frost Number Model](frost_number.ipynb)\n",
" * [HydroTrend Model](hydrotrend.ipynb)\n",
" * [Kudryavtsev Model](ku.ipynb)\n",
" * [Sedflux3D Model](sedflux3d.ipynb)\n",
" * [Flexural Subsidence Model](subside.ipynb)\n",
"\n",
" \n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ba6862b

Please sign in to comment.