-
-
Notifications
You must be signed in to change notification settings - Fork 49
Conversation
* [Simple differential equation](http://nbviewer.jupyter.org/github/pjpmarques/ODE.jl/blob/master/examples/Simple_Differential_Equation.ipynb) | ||
* [Lorenz Attractor](http://nbviewer.jupyter.org/github/pjpmarques/ODE.jl/blob/master/examples/Lorenz_Attractor.ipynb) | ||
* [Terminal Velocity](http://nbviewer.jupyter.org/github/pjpmarques/ODE.jl/blob/master/examples/Terminal_Velocity.ipynb) | ||
|
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.
These links would need to point to this repo and not your fork.
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.
It might be (but isn't necessarily) nice to first merge this, though, and then when the notebooks exist in ODE.jl, refer to them with a specific hash rather than master
. This would ensure that links aren't broken by mistake if/when the notebooks are (re)moved, but on the other hand it would require manual update of all links when the notebooks are changed, even if the location did not change; and furthermore, that manual change would not be possible to make before the changes to the notebooks have been committed.
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.
Ideally the notebooks would be checked with each commit. Is this possible?
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.
"Checked" as in "run-through with no errors"?
No idea - I doubt that it's easy. It would be a nice feature of IJulia, though, so if it doesn't exist it's worth a feature request there. I imagine something like this:
using IJulia
run_all_cells("path/to/notebook.ipynb")
and as a first step the test would just verify that running the above code doesn't throw. (More features could include checking expected output from each cell, checking expected STDOUT printouts etc, but just running without crashing is a good start.)
Thanks for these examples! I think the would be good to have in ODE.jl. At the moment there are no docs for ODE.jl. But one thing to ponder is how we'd like to have examples. Are notebooks a suitable format? However, if the answer is "no", then these could be ported over. A few comments for the Lorenz notebook (for some reason, I cannot do them inline):
Also, squash the commits into one. And, I think, the |
Hi. Glad to correct the code and follow the suggestions. I've:
Note that now the links will appear to be broken because they are pointing to ODE.jl/master, which still doesn't contain this code. It will only render properly after the merge. |
Hi. Any news on this and/or do you want me to correct something? Thanks. |
LGTM |
Happy to contribute with a few jupyter notebooks on how to use the package.
You can check the examples/result here: