Skip to content

Commit 34447a7

Browse files
authored
Remove notebooks, replace with pymc-examples submodule (#4348)
* 🔥 remove notebooks from pymc3, replace with pymc-examples submodule * change notebook output_html * revert href change * 📝 release notes * 🚚 move examples to pymc-examples * checkout submodule at main * noop * 🔥 remove test_examples * keep examples/data for now, so pm.get_data keeps working * keep examples/__init__.py so get_data still works * revert removing examples * revert removing test_examples * fixup so docs work with latest pymc-examples reorg * 🎨
1 parent 52a0479 commit 34447a7

File tree

96 files changed

+17
-94303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+17
-94303
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docs/source/pymc-examples"]
2+
path = docs/source/pymc-examples
3+
url = [email protected]:pymc-devs/pymc-examples.git

.pre-commit-config.yaml

-22
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ repos:
1313
- id: requirements-txt-fixer
1414
exclude: ^requirements-dev\.txt$
1515
- id: trailing-whitespace
16-
- repo: https://github.com/nbQA-dev/nbQA
17-
rev: 0.5.5
18-
hooks:
19-
- id: nbqa-black
20-
additional_dependencies: [black==20.8b1]
21-
- id: nbqa-isort
22-
additional_dependencies: [isort==5.6.4]
23-
- id: nbqa-pyupgrade
24-
additional_dependencies: [pyupgrade==2.7.4]
25-
args: [--py37-plus]
2616
- repo: https://github.com/PyCQA/isort
2717
rev: 5.6.4
2818
hooks:
@@ -45,18 +35,6 @@ repos:
4535
files: ^pymc3/
4636
- repo: local
4737
hooks:
48-
- id: watermark
49-
args: [--negate, --multiline]
50-
entry: '%load_ext watermark.*%watermark -n -u -v -iv -w'
51-
language: pygrep
52-
minimum_pre_commit_version: 2.8.0
53-
name: Check notebooks have watermark (see Jupyter style guide from PyMC3 Wiki)
54-
types: [jupyter]
55-
- id: check-toc
56-
entry: python scripts/check_toc_is_complete.py
57-
language: python
58-
name: Check all notebooks appear in table of contents
59-
types: [jupyter]
6038
- id: check-no-tests-are-ignored
6139
entry: python scripts/check_all_tests_are_covered.py
6240
files: ^\.github/workflows/pytest\.yml$

RELEASE-NOTES.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This is the first release to support Python3.9 and to drop Python3.6.
1212
- Make `sample_shape` same across all contexts in `draw_values` (see [#4305](https://github.com/pymc-devs/pymc3/pull/4305)).
1313
- Removed `theanof.set_theano_config` because it illegally touched Theano's privates (see [#4329](https://github.com/pymc-devs/pymc3/pull/4329)).
1414
- In `sample_posterior_predictive` the `vars` kwarg was removed in favor of `var_names` (see [#4343](https://github.com/pymc-devs/pymc3/pull/4343)).
15+
- The notebook gallery has been moved to https://github.com/pymc-devs/pymc-examples (see [#4348](https://github.com/pymc-devs/pymc3/pull/4348)).
1516

1617

1718
## PyMC3 3.10.0 (7 December 2020)

build_and_deploy_docs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
latesttag=$(git describe --tags `git rev-list --tags --max-count=1`)
44
echo checking out ${latesttag}
55
git checkout ${latesttag}
6+
git submodule update --init --recursive
67
pushd docs/source
78
make html
89
ghp-import -c docs.pymc.io -n -p _build/html/

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</div>
9797
</a>
9898

99-
<a class="ui link card" href="/notebooks/variational_api_quickstart.html">
99+
<a class="ui link card" href="/pymc-examples/examples/variational_inference/variational_api_quickstart.html">
100100
<div class="content">
101101
<div class="header">Variational Inference</div>
102102
<div class="description">Variational inference saves computational cost by turning a problem of integration into one of optimization. PyMC3's variational API supports a number of cutting edge algorithms, as well as minibatch for scaling to large datasets.

docs/source/notebooks/AR.ipynb

-585
This file was deleted.

docs/source/notebooks/BEST.ipynb

-697
This file was deleted.

docs/source/notebooks/Bayes_factor.ipynb

-702
This file was deleted.

0 commit comments

Comments
 (0)