sympy / scipy-2017-codegen-tutorial

SymPy code generation tutorial at SciPy 2017
http://www.sympy.org/scipy-2017-codegen-tutorial/
Other
61 stars 26 forks source link

Hiding exercise solutions #22

Open moorepants opened 7 years ago

moorepants commented 7 years ago

Just came across this:

https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tree/master/src/jupyter_contrib_nbextensions/nbextensions/exercise

Looks pretty cool.

ixjlyons commented 7 years ago

That's pretty neat. I just checked it out and it does seem to work with the Cython stuff (no reason it wouldn't but %load, for example, doesn't because of the comment it adds at the top), plus it does run the solution by default so this should work well in testing on CI.

One potential drawback (depending on how you see it) is it requires the extension to be installed, so something like nbviewer will just show the solution cell(s) plainly.

bjodah commented 7 years ago

Looks cool. I won't have time to change my notebooks to use this though.

moorepants commented 7 years ago

Yeh, it may be too late. We basically have today to finalize things. Kenny and I get to Austin late Sunday.

ixjlyons commented 7 years ago

I have a bit more to do today anyway. I guess one issue is adding a dependency at this point -- attendees need time to get the environment installed and probably many have done it already.