Replies: 1 comment
|
This is exactly what I mean - seeing Horner's algorithm with MathJax rendering the formula alongside the code makes it way more educational than just a .py file. Students can see the math and the implementation side by side. One suggestion though: keep the .py files as the main implementation for testing and code quality, and use the notebooks as supplementary material. That way we get the best of both worlds. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What's your thoughts on adding .pynb files into the mix?
One difference between using .ipynb compared to .py files for algorithms, is the visual flexibility provided by markdown cells in .ipynb files. Here's an example of a markdown cell accompanying an algorithm.
Benefits of markdown cells include:
There are also other benefits of .ipynb files, related to the possibility of including separate python cells:
I think all of these benefits contribute to educational scaffolding, which is in the spirit of this repository. I don't suggest replacing the .py files, as scripts themselves are executable and easy to use, but a section dedicated to .ipynb files is a way to provide more than just a script, in case anybody wants to learn more. It's worth pointing out that .ipynb files can include hyperlinks too which can be lead to further resources.
Just an idea, what are your thoughts on it?
All reactions