4 ms·
(I do a lot of corporate training in DS/ML and Python) I've got an example of doing this in Jupyter. The repo is here [0] I generate the repo using a combinat
by __mharrison__ 6y ago
(I do a lot of corporate training in DS/ML and Python)
I've got an example of doing this in Jupyter. The repo is here [0]
I generate the repo using a combination of Jupytext to convert the completed notebooks (with the labs done) to python scripts and code to remove the homework/labs from the Python script and then go back to notebooks. (Python/text is easier than working with JSON/notebook format.)
When I teach Python I don't use Jupyter. I use unittest code. The labs are contained in the tests and if the students follow directions, the tests will pass and won't complain. They can use any editor they want, and then just run the tests to validate.
I've thought about building tooling (in Python) to automate code creation in both editors (for Python) and Jupyter (for data science) like you suggest. I have a repo sitting around my computer where I started automating the browser but ... there is not enough time in the day.
I've even thought about teaching via Twitter (this is kind of wierd and might make a fun conference gimmick). But I also have tooling to take md-like content consisting of prose, images, and code, and automate posting to Twitter. Then I could hit a button and instead of going to the next slide, I post the next tweet.
Would be curious to see what you build.
0 - https://resources.oreilly.com/binderhub/beginning-supervised-machine-learning-with-python https://resources.oreilly.com/binderhub/beginning-supervised...
- truth_ 6y agoHave you looked into nbdev?
- __mharrison__ 6y agoThis is something I still need to do.
- nonameiguess 6y agoYou might consider R Markdown and knitr, which have supported Python and many other languages besides R for a long time, but the templates are stored as plain text rather than the terrible .ipynb format, and render to both html and pdf and support LaTeX. The developer's book shows how to do it: https://bookdown.org/yihui/rmarkdown-cookbook/eng-python.html https://bookdown.org/yihui/rmarkdown-cookbook/eng-python.htm...