scipy-2017-codegen-tutorial icon indicating copy to clipboard operation
scipy-2017-codegen-tutorial copied to clipboard

Hiding exercise solutions

Open moorepants opened this issue 8 years ago • 4 comments

Just came across this:

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

Looks pretty cool.

moorepants avatar Jul 07 '17 20:07 moorepants

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.

ixjlyons avatar Jul 07 '17 21:07 ixjlyons

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

bjodah avatar Jul 08 '17 11:07 bjodah

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

moorepants avatar Jul 08 '17 17:07 moorepants

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.

ixjlyons avatar Jul 08 '17 17:07 ixjlyons