Skip to content

Commit

Permalink
Remove notebooks, replace with pymc-examples submodule (#4348)
Browse files Browse the repository at this point in the history
* 🔥 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

* 🎨
  • Loading branch information
MarcoGorelli authored Dec 19, 2020
1 parent 52a0479 commit 34447a7
Show file tree
Hide file tree
Showing 96 changed files with 17 additions and 94,303 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "docs/source/pymc-examples"]
path = docs/source/pymc-examples
url = git@github.com:pymc-devs/pymc-examples.git
22 changes: 0 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ repos:
- id: requirements-txt-fixer
exclude: ^requirements-dev\.txt$
- id: trailing-whitespace
- repo: https://github.com/nbQA-dev/nbQA
rev: 0.5.5
hooks:
- id: nbqa-black
additional_dependencies: [black==20.8b1]
- id: nbqa-isort
additional_dependencies: [isort==5.6.4]
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==2.7.4]
args: [--py37-plus]
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
hooks:
Expand All @@ -45,18 +35,6 @@ repos:
files: ^pymc3/
- repo: local
hooks:
- id: watermark
args: [--negate, --multiline]
entry: '%load_ext watermark.*%watermark -n -u -v -iv -w'
language: pygrep
minimum_pre_commit_version: 2.8.0
name: Check notebooks have watermark (see Jupyter style guide from PyMC3 Wiki)
types: [jupyter]
- id: check-toc
entry: python scripts/check_toc_is_complete.py
language: python
name: Check all notebooks appear in table of contents
types: [jupyter]
- id: check-no-tests-are-ignored
entry: python scripts/check_all_tests_are_covered.py
files: ^\.github/workflows/pytest\.yml$
Expand Down
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This is the first release to support Python3.9 and to drop Python3.6.
- Make `sample_shape` same across all contexts in `draw_values` (see [#4305](https://github.com/pymc-devs/pymc3/pull/4305)).
- Removed `theanof.set_theano_config` because it illegally touched Theano's privates (see [#4329](https://github.com/pymc-devs/pymc3/pull/4329)).
- In `sample_posterior_predictive` the `vars` kwarg was removed in favor of `var_names` (see [#4343](https://github.com/pymc-devs/pymc3/pull/4343)).
- The notebook gallery has been moved to https://github.com/pymc-devs/pymc-examples (see [#4348](https://github.com/pymc-devs/pymc3/pull/4348)).


## PyMC3 3.10.0 (7 December 2020)
Expand Down
1 change: 1 addition & 0 deletions build_and_deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
latesttag=$(git describe --tags `git rev-list --tags --max-count=1`)
echo checking out ${latesttag}
git checkout ${latesttag}
git submodule update --init --recursive
pushd docs/source
make html
ghp-import -c docs.pymc.io -n -p _build/html/
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
</div>
</a>

<a class="ui link card" href="/notebooks/variational_api_quickstart.html">
<a class="ui link card" href="/pymc-examples/examples/variational_inference/variational_api_quickstart.html">
<div class="content">
<div class="header">Variational Inference</div>
<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.
Expand Down
585 changes: 0 additions & 585 deletions docs/source/notebooks/AR.ipynb

This file was deleted.

697 changes: 0 additions & 697 deletions docs/source/notebooks/BEST.ipynb

This file was deleted.

702 changes: 0 additions & 702 deletions docs/source/notebooks/Bayes_factor.ipynb

This file was deleted.

Loading

0 comments on commit 34447a7

Please sign in to comment.