Path: blob/master/notebooks/misc/Superimport_broken.ipynb
1192 views
Kernel: Python 3
Superimport demo that does not fully work
The superimport library is explained in this colab.
Unfortunately sometimes when you call a script it fails to run, because inspecting the call stack raises an exception (which is caught by superimport, which prints the error message 'Error importing. Please re-run the cell.' Re-running the same cell usually fixes the error but is annoying.
In [1]:
Out[1]:
Building wheel for superimport (setup.py) ... done
Building wheel for deimport (setup.py) ... done
In [2]:
In [3]:
In [4]:
Out[4]:
saving image to /pyprobml/scripts/../figures/linregResidualsNoBars.pdf
saving image to /pyprobml/scripts/../figures/linregResidualsBars.pdf
In [5]:
Out[5]:
saving image to /pyprobml/scripts/../figures/polyfitVsDegree.pdf
saving image to /pyprobml/scripts/../figures/polyfitDegree20.pdf
saving image to /pyprobml/scripts/../figures/polyfitDegree20Residuals.pdf
saving image to /pyprobml/scripts/../figures/polyfitDegree20FitVsActualTrain.pdf
saving image to /pyprobml/scripts/../figures/polyfitDegree20FitVsActualTest.pdf
In [6]:
Out[6]:
Error importing. Please re-run the cell.
In [7]:
Out[7]:
In [ ]: