These are chat archives for ipython/ipython

6th
Apr 2016
Maksim Grinman
@maksle
Apr 06 2016 01:30
I'm using a notebook from Google's Tensorflow tutorials on Udacity: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/udacity/1_notmnist.ipynb. There's this section that says "Problem 2:..." and so I clicked the + sign to add a code block. I'm presented with a 'In [ ]:' .. I type 5 + 5 and click Run and the 'In [ ]' becomes 'In [*]' but the output is never displayed. Code blocks that already existed in the notebook run as expected. I have tried restarting the kernel and other browsers. Am I doing something wrong?
Perhaps I should be in the IPython/help channel, I'll copy this there
Jakob Wadsager
@wadsager
Apr 06 2016 18:29
How do I activate a conda environment in a bash script so it is activated in that script?
Harald Schilly
@haraldschilly
Apr 06 2016 19:37
@jwadsager . $WHERE_YOUR_ANACONDA_IS/bin/activate root
note, that the . could also be source
@maksle sounds ok, maybe something did crash? do you see any errors in the logs?
@maksle and reminds me, I should check if these work on smc. few days ago I saw, that they've update tensorflow from 0.6 to 0.7. that immediately broke everything I've done so far in tensorflow ^^
Jakob Wadsager
@wadsager
Apr 06 2016 19:45
@haraldschilly Thanks. I need to run it in a chroot like this: chroot $chroot_dir source /anaconda_dir/bin/activate py2 && /anaconda_dir/bin/conda install notebook ipykernel
But I get chroot: failed to run commandsource': No such file or directory`
Matthias Bussonnier
@Carreau
Apr 06 2016 20:09
Hello people present in this chat room. We will announce that later, but TL:DR; we are trying to redirect our help effort there: https://github.com/jupyter/help . Indeed, we found that despite gitter having archives, it is particularly hard to explore and find already given answer, and have other disadvantages. We would appreciate if you could help us move traffic to this repository. And feel free to give us feedback on that.
Jakob Wadsager
@wadsager
Apr 06 2016 20:11
@Carreau Sure, sorry for asking the wrong place
Nathaniel J. Smith
@njsmith
Apr 06 2016 20:29
hey, any idea why a collaborator would suddenly be unable to save their notebooks, and is getting "Unexpected error while saving file: 20160405.ipynb database disk image is malformed"? Traceback error out in nbformat/sign.py:store_signature
Thomas Kluyver
@takluyver
Apr 06 2016 20:37
jupyter/nbformat#32 - but not released yet
Min RK
@minrk
Apr 06 2016 20:39
Time for a release!
Sylvain Corlay
@SylvainCorlay
Apr 06 2016 20:40
Release notebook 4.2 ???
Min RK
@minrk
Apr 06 2016 20:42
Release all the things!
Roughly everything is due for a release at this point.
Sylvain Corlay
@SylvainCorlay
Apr 06 2016 20:43
we are in the release lock
Nathaniel J. Smith
@njsmith
Apr 06 2016 20:44
is there a quick workaround?
Sylvain Corlay
@SylvainCorlay
Apr 06 2016 20:55
@njsmith if it is not valid json, I guess that it could be fixed manually at least.
Min RK
@minrk
Apr 06 2016 20:57
Workaround is to move the nbsignatures.db out of the way
Nathaniel J. Smith
@njsmith
Apr 06 2016 20:58
ah, just found the more detailed version of that advice in ipython/ipython#9002 -- rm $(jupyter --data-dir)/nbsignatures.db (or mv, as you suggest). We'll try :-)
thanks!
Min RK
@minrk
Apr 06 2016 20:59
The undesirable result is that all notebooks will become untrusted, but that's generally not a big deal.
Nathaniel J. Smith
@njsmith
Apr 06 2016 21:00
(apparently that doesn't allow him to save the currently running notebook, but hopefully will fix it in the future)
Min RK
@minrk
Apr 06 2016 21:00
Ah, it may have kept the db connection open. If you leave the notebook open, restart the notebook server, it should allow saving with a new db.
Nathaniel J. Smith
@njsmith
Apr 06 2016 21:01
I don't know what "untrusted" means here, so I guess it doesn't matter. That's a valid theorem, right? :-)
...wait, but just killing the server and restarting it doesn't leave you with a working browser tab, does it?
Min RK
@minrk
Apr 06 2016 21:01
The URL is stable
So you can relaunch and save after the new server is up
As long as you aren't using a password without a stable cookie secret
kernel connection will die, but you can still POST the notebook to the new server
Nathaniel J. Smith
@njsmith
Apr 06 2016 21:03
it worked! thanks a lot :-)