-
Notifications
You must be signed in to change notification settings - Fork 87
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
Clean up tutorial notebooks and documentation #213
Conversation
- delete old tutorials in `examples/tutorials` - move new tutorials from `notebooks` to `examples/tutorials` - reorder image and data files in `examples/tutorials` - update to tqdm progressbar in `RecurrenceNetwork.ipynb` - avoid pik-copan#210 in `ClimateNetworks.ipynb` - clean up some typos and latex sequences in all tutorials - largely resolves pik-copan#185
- add `nbsphinx` and `nbsphinx-link` dependencies to directly include new jupyter-notebook tutorials in docs - minor typo corrections and renames in tutorials - related: pik-copan#185
- add tutorial on `CoupledClimateNetworks` - include in docs
Build is not being started... seems like we've already used up our credits at Travis again? @jdonges, could you try and find out? If so, maybe it would be worth considering GithubActions before we start setting up Windows and macOS builds... |
- because original one had lead to trivial results and divide-by-zero warnings. - also corrected more typos in `EventSeriesAnalysis.ipynb` - related: pik-copan#185
overwrote the last commit with a force-push of the identical changes, just to trigger a travis build. Seems to work again now as our credits have been re-stocked and we are welcome to ask for more any time! |
Build failed but somehow I don't have access to the build logs anymore, so I can't see why. If someone can and has a hint, let me know, otherwise will wait for my account to be granted full access to Travis! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #213 +/- ##
=======================================
Coverage 62.82% 62.82%
=======================================
Files 43 43
Lines 6220 6220
=======================================
Hits 3908 3908
Misses 2312 2312 ☔ View full report in Codecov by Sentry. |
@fkuehlein, please resolve the conflicts after merging #217. I will provide feedback afterwards; I guess via code comments, since this PR comes from your fork. |
- update filepaths - add `pandoc` dependency necessary for windows build
Builds failed because in 1bd9ab8 I accidentally lost the additional dependencies under |
- on Linux & macOS: via Conda - on Windows: via Chocolatey
@fkuehlein, in order to iterate quickly, I would like to be able to push directly to this PR from your fork. This should be possible at first glance (
Regarding the problem in your previous message, I have a candidate solution which installs the Haskell executable |
hi @ntfrgl, sorry for the late reply, I just removed the branch protection rule on |
Package sdist & repository: - add tutorial sources - remove generated files - remove datasets Code: - download datasets within notebooks - reduce redundancy - group dual pairs of plots - adjust some parameters - rerun notebooks Text & math: - fix typos, edit lightly, update references - fix TeX parsing errors in `nbsphinx` - optimise outline hierarchy for `nbsphinx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for merging the various tutorial formats! The additional dependencies are definitely worth it, particularly since they are only in the [docs]
extra.
I have done a nontrivial amount of editing and refactoring and also re-executed all notebooks, so I would appreciate a careful review from you. In particular, the nbsphinx
parser is somewhat brittle, so one needs to check both output formats for the notebooks.
As a little highlight, the most noticeable change in the tutorial outputs was for the Lorenz system in the recurrence network tutorial, presumably due to our related bug fixes. From what I can tell, the 3D plot of the Lorenz attractor seems to have less artifacts, and the dependence of the transitivity dimension on the recurrence rate threshold looks more reasonable to me.
As you can see, the installation issue with pandoc
was resolved as expected. However, there is a little remaining problem only on Python 3.8:
[gw0] node down: Not properly terminated
replacing crashed worker gw0
...
worker 'gw0' crashed while running 'tests/test_climate/test_map_plot.py::TestMapPlot::test_plot'
This problem appeared in two consecutive CI runs, so it seems to be deterministic. Could you please try to replicate it locally? I expect this to be a version-specific issue with one of the libraries pathlib
, requests
, h5netcdf
or cartopy
.
- namely cartopy dependency issues on Python 3.8
On my local machine I found the problem to be with @ntfrgl, I hope this doesn't conflict with your reasoning of adding |
Thank you for investigating this! I see, I had unintentionally over-constrained the micro version for |
Thank you @ntfrgl for finalising! Also thanks again for reviewing the tutorials with some great cleanups and improvements. Glad to see this PR good to go. |
thereby resolving #185.
In bcc009d I updated the tutorial documentation, directly including rendered views of the notebooks using
nbsphinx
andnbsphinx-link
, I think its quite a neat and cool way to make use of the notebooks. Any objections to these additional dependencies?Note:
nbsphinx
currently throws a warning about an outdatedpandoc
version, which apparently is a known and resolved compatibility issue withnbconvert
. Couldn't yet find out why it still throws the warning, but tox is passing anyway.Also, I noticed the
EventSeriesAnalysis
tutorial is giving some unexpected results leading to division by zero warnings and such. (edit: resolved as of e19906e)