Cyrille Rossant

Results 148 comments of Cyrille Rossant

Sounds like a great idea! @ihrke would you be willing to review/merge a PR?

@ihrke +1 for all of these ideas, + filename extension parsing as well and fallback to cell-wise/global option.

> Another way would be to define unit tests in an ipy-notebook and run them from the command line (e.g., using py.test https://pypi.python.org/pypi/pytest-ipynb). However, I'm not sure if that works...

It's true that comparing the base64-encoded plots would not be very robust. Maybe at first we could just compare text output? WDYM exactly by inserting assert/throw errors?

OK I see. That's a possibility indeed. Maybe it would be worth encapsulating the code in cell 2 in some private testing function like `_test_cached_var('./test.pkl', 'a')` or something. Also, I...

> Actually, your second test should produce exactly the same output, i.e., Computing...\n10000, since ipycache saves and loads the outputs. The only thing that should differ would be the verbosity-output,...

Why not just putting this doctest code in the next cell? We say that the test fails if an assertion is raised during the notebook execution, otherwise it passes.

FYI I just found this: https://github.com/bollwyvl/nosebook

Hi Michael, It looks interesting and doable. I think it would be better to implement that in a new cell magic like `%%globalcache` or any better name. It would be...