jrjohansson / version_information

IPython magic command for showing version information for dependency modules in a notebook.
54 stars 17 forks source link

Notebook Validation Failed #10

Open ruxi opened 9 years ago

ruxi commented 9 years ago

For juypter notebook version 4.0.4 with python3 kernel, using %version_information prompts an 'Notebook validation failed' message when page is reloaded.

image of the prompt

The issue is cosmetic

jrjohansson commented 9 years ago

Thanks for reporting this. Looks like a rather annoying problem. Will try to reproduce and fix this. Does it happen with all notebooks with a version_information table?

ruxi commented 9 years ago

Does it happen with all notebooks with a version_information table?

Yes, the problem was reproduced every time the version_information table was added to a notebook. Thanks for making this great extension!

ruxi commented 9 years ago

The 'validation failed' prompt doesn't occur when the kernel is switch to python2.

jrjohansson commented 9 years ago

I have not been able to reproduce this with the most recent ipython/jupyter/notebook for anaconda. Does it happen for newly created notebooks or old notebooks? If possible can you upload a notebook book with this problem as a gist or so?

ruxi commented 9 years ago

I have not been able to reproduce this with the most recent ipython/jupyter/notebook for anaconda. Does it happen for newly created notebooks or old notebooks?

I used `pip install ipython[all]' for the installation. The error occurred for both newly created and old notebooks. The minimal code needed was:

%load_ext version_information
%version_information

I tried reproducing the problem on my home PC to no avail. Between the two systems there are differences in the kernel (38 vs 33) OS version (Mint 17.2 vs 17.1) among other things. Will try upgrading to see if it'll fix it.

If possible can you upload a notebook book with this problem as a gist or so?

Sure, I'll upload it the next time I'm on that machine.

ruxi commented 9 years ago

https://gist.github.com/ruxi/7c85bccbec8293a7d332#file-verion-ipynb