Skip to content

Commit eb23902

Browse files
committed
active binder to try notebooks
1 parent 016c3c4 commit eb23902

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

doc/conf.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,23 @@
3737
]
3838

3939
sphinx_gallery_conf = {
40-
'examples_dirs': '../examples', # path to your example scripts
41-
'gallery_dirs': 'python_module',
42-
'capture_repr': ('_repr_html_'),
43-
'line_numbers': False,
44-
'filename_pattern': '/pet',
40+
'examples_dirs': '../examples', # path to your example scripts
41+
'gallery_dirs': 'python_module',
42+
'capture_repr': ('_repr_html_'),
43+
'line_numbers': False,
44+
'filename_pattern': '/pet',
45+
'binder': {
46+
# Required keys
47+
'org': 'AntSimi',
48+
'repo': 'py-eddy-tracker',
49+
'branch': 'master',
50+
'binderhub_url': 'https://mybinder.org',
51+
'dependencies': ['../requirements.txt'],
52+
# Optional keys
53+
# 'filepath_prefix': '<prefix>' # A prefix to prepend to any filepaths in Binder links.
54+
# 'notebooks_dir': '<notebooks-directory-name>' # Jupyter notebooks for Binder will be copied to this directory (relative to built documentation root).
55+
# 'use_jupyter_lab': <bool> # Whether Binder links should start Jupyter Lab instead of the Jupyter Notebook interface.
56+
}
4557
}
4658

4759
# Add any paths that contain templates here, relative to this directory.

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ pyyaml
77
pyproj
88
pint
99
numba
10-
polygon3
10+
polygon3
11+
# for binder
12+
pyeddytrackersample

0 commit comments

Comments
 (0)