-
Notifications
You must be signed in to change notification settings - Fork 2
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
update customise interactions nodebook #117
Conversation
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.
looks good to me
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.
The explanations are good an clear, so all good from that part, but...
I get quite a few deprecation warning when building the documentation, as well as:
ImportError: Missing optional dependency 'tabulate'. Use pip or conda to install tabulate.
It seems that dependency is missing. Also wrong relative links of the type;
INFO - Doc file 'wsimod_models.md' contains an unrecognized relative link './../reference-model/#wsimod.orchestration.model.to_datetime', it was left as is. Did you mean
'reference-model.md#wsimod.orchestration.model.to_datetime'?
@dalonsoa will update |
@dalonsoa yep when I serve this locally the link works. I didn't figure out why but I'm sure when I first made the documentation while the 'normal' We can change every link to remove these warnings... but there's a chance it won't work when deployed and we'll have to change them back. On the live website the warned link still works |
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.
LGTM.
I've "fix" the links in the other PR (#120) because the warnings were really annoying and, for some reason, mkdocs
was failing to compile the documentation, trying again and again. We might need to undo that or fix it in another way.
Summary
details
. My preferred option would be to use this API like in this, which feels much tidier in terms of formatting and more sustainable as code does not need to be reproduced. But as we discussed in SWMManywhere - it seems thatmkdocs-jupyter
can't access the API docstrings. I could use ayaml
codeblock, which would include thepython
formatting, but it looks super weird as it is formatted differently from the notebook and can't be stored in adetails
. Thus, I think this is the best way, but am open to suggesstions.scripts
folder as in the another demo withos
- though it's a bit ugly. Obviously__file__
would be preferrable, but this doesn't seem to work withmkdocs-jupyter
.river_discharge_order
.Fixes #112