Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port NBs to v4 #333

Open
twiecki opened this issue May 30, 2022 · 0 comments
Open

Port NBs to v4 #333

twiecki opened this issue May 30, 2022 · 0 comments

Comments

@twiecki
Copy link
Member

twiecki commented May 30, 2022

There are quite a few NBs that still need porting here in ToDo or Best Practices (v3): https://github.com/pymc-devs/pymc-examples/projects/1#card-75796525

How?

Run the scripts/rerun.py script (https://github.com/pymc-devs/pymc-examples/blob/main/scripts/rerun.py) which attempts to auto-update the code and rerun the NB. If it runs without error (which should be the default) it will commit the updated NB to a branch you specified. If not, you need to fix the NB manually, rerun it, and commit yourself.

After, create a PR to this repo.

Here are the docs from the rerun.py script:

This script/module may be used to re-run, commit & push notebooks
from the CLI or from another Python script (via import rerun).
Run python rerun.py -h to show the CLI help.
The example below does the following:

  1. Re-runs the BEST notebook
  2. Commits changes to a branch "rerun-best"
  3. Push that branch to a remote named "mine"
    Assuming you did something like: git add remote mine https://github.com/yourgithubusername/pymc-examples
python scripts/rerun.py --fp_notebook=examples/case_studies/BEST.ipynb --commit_to=rerun-best --push_to=mine
@twiecki twiecki changed the title Port NBs that are already using best practices to v4 Port NBs May 31, 2022
@twiecki twiecki changed the title Port NBs Port NBs to v4 May 31, 2022
@ferrine ferrine mentioned this issue Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant