-
-
Notifications
You must be signed in to change notification settings - Fork 269
Search-and-replace a bunch of strings to port to v4. #262
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
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Does |
No, the converter was moved to PyMC codebase, it is now @michaelosthege can you work on this PR to see which run and first merge those? Then we can take a look at the rest in a bit more detail. I don't think it helps anybody to have code published in the website that doesn't reflect the outputs and might not even run. Given that we are trying to automate running the notebooks I think if we do that we can skip the "wait for users to report this is not working" step and just update those that do work. |
6f82a26
to
63af472
Compare
@OriolAbril Alright, I changed to use the new function and updated. |
63af472
to
64bc2c1
Compare
Okay, starting tomorrow. I think I'll create a Python script that takes CLI args to be parametrized for re-running one notebook, committing on success & pushing to a branch. python scripts/rerun.py \
--notebook=path_to_a_notebook \
--to_branch=branchname Given that magic script, which strategy do you prefer for the re-runs this week? All-in-one
And then we can PR One PR per notebookAssuming that we merge
|
If the rerun all branch only has notebooks that were executed successfully, then a single PR is fine. I think we should then merge it into main. I am strongly opposed towards merging notebooks with modified code that have not been executed. I think this is net confusion gain from all the angles I try to look at it. And users are already confused about notebooks using v3 explicitly not running on v4 directly, I can only imagine this getting much worse if it even has v4 code even though it doesn't run and we'll know it doesn't run. |
64bc2c1
to
f033fb2
Compare
@OriolAbril If we merge into main, where will v3 notebooks live? But in general agree, if we can check before merging that's better, no use in merging broken NBs. |
I agree. Shall I then make the bash script @twiecki wrote a part of this weeks re-run automation?
|
0afd499
to
f033fb2
Compare
I'll make a snapshot right before merging that will be available from the version switcher in readthedocs. But the example gallery will from now on be unversioned. Links to it should point to latest unless you are writing a book or citing a notebook and want to ensure what you link to doesn't get updated. Moreover, v3 docs already have the notebooks embedded in them (from the submodule) time, so even if we have a kind of v3 last snapshot, 99% of users won't get to it. v3 notebooks have already been frozen for a while. sounds good @michaelosthege. and that script or part of it could then be adapted to run notebooks on ci twice a year or so (even if only 50% get autoupdated and we have to wait for the rest to be updated from time to time manually). |
b865d84
to
b10724b
Compare
As we're going the rerun route I'm closing this. |
Here is the script I ran:
We probably need a new branch for v4 here.