uc-python / intro-python-datasci

Intro to Python for Data Science Workshop
https://uc-python.github.io/intro-python-datasci/
MIT License
32 stars 23 forks source link

Remove hide_code_in_slideshow #58

Closed eswan18 closed 3 years ago

eswan18 commented 3 years ago

With your recent computer issues @bradleyboehmke, I think we should tear off the bandaid and move on from Rise. That has two main benefits:

  1. We'll both be using the same coding environment as the students, which should make things easier to follow.
  2. We can get rid of the special code that hides input code in Rise slides, and replace it with something that works with the nbconvert --to slides command.

This PR implements the change explained in 2, above: it removes the slide_tools.py file and all imports of it in notebooks, along with invocations of hide_code_in_slideshow. I added a special tag to the slides whose input should be hidden, and through a flag to jupyter nbconvert, automatically hid those inputs in the revealjs slides.

I also sneaked in a relatively unrelated change: parallelizing the bash script that converts notebooks to slides. This comes with a pretty decent improvement in the speed of that conversion, which we have to run each time we want to see updated slides based on our notebooks.