Skip to content

Tag: ipython

How to store the result from %%timeit cell magic?

I can’t figure out how to store the result from cell magic – %%timeit? I’ve read: Can you capture the output of ipython’s magic methods? Capture the result of an IPython magic function and in this questions answers only about line magic. In line mode (%) this works: But in cell mode (%…

Jupyter: disable restart kernel warning

I’m using jupyter 4.1.0, and I find myself making frequent use of the “Restart & Run All” feature. Every time I use that button it displays this warning: Is there a way to disable that warning? Answer You can add a cell in your notebook and using the following statements: And the kernel …