These are chat archives for ipython/ipython

11th
Mar 2015
Nathan Goldbaum
@ngoldbaum
Mar 11 2015 00:05
hi all, I know that the cython magic has moved over to the cython project, but I'm hoping one of you might have some insight into an issue I'm having with it, see http://nbviewer.ipython.org/gist/ngoldbaum/855a629d997aa7959254
basically, %%cython -a doesn't seem to work under IPython 3.0
Kyle Kelley
@rgbkrk
Mar 11 2015 00:07
can someone unmute me
Min RK
@minrk
Mar 11 2015 00:07
try now
Kyle Kelley
@rgbkrk
Mar 11 2015 00:07
i cant actually see right now, I just see Fernando
like, his picture
Min RK
@minrk
Mar 11 2015 00:07
reconnect?
Kyle Kelley
@rgbkrk
Mar 11 2015 00:07
i could do that
Min RK
@minrk
Mar 11 2015 00:07
we can see you and our own video
better?
Kyle Kelley
@rgbkrk
Mar 11 2015 00:08
all set
thankx
What actually is the issue right now?
To me, there's no issue with installing kernels
Min RK
@minrk
Mar 11 2015 00:13
How do we treat kernel-specific js, in terms of ownership, permissions, location, etc.
Kyle Kelley
@rgbkrk
Mar 11 2015 00:13
per user
Min RK
@minrk
Mar 11 2015 00:13
sort of
Kyle Kelley
@rgbkrk
Mar 11 2015 00:13
I think your declaration of single user desktop experience is fine
Min RK
@minrk
Mar 11 2015 00:13
depending on what 'user' means
Kyle Kelley
@rgbkrk
Mar 11 2015 00:13
yeah
I was actually trying to talk a bit ago
but it wsn't working
Kyle Kelley
@rgbkrk
Mar 11 2015 00:25
I feel like I'm going to be beating a dead horse in saying this but apm does it really well and I'd love people to see it.
apm is the package manager for Atom
bower definitely needs npm to run too
Even if you install it without npm
Kyle Kelley
@rgbkrk
Mar 11 2015 00:37
2015-03-10 19.36.41 HDR.jpg
Kyle Kelley
@rgbkrk
Mar 11 2015 00:46
I hear the kids going crazy and my wife hoping to handle it.
I'm going to have to run
I'll be back in a bit.
Remi Rampin
@remram44
Mar 11 2015 04:00
Can I detect if the IPython notebook is running?
or, whether the current process is an IPython kernel?
Remi Rampin
@remram44
Mar 11 2015 04:16
I guess basically, I want to know if I can call display(), if not I'll output somewhere else
Jessica B. Hamrick
@jhamrick
Mar 11 2015 04:49
@remram44 I think if it is an IPython kernel then the function get_ipython will be defined
So you could do something like:
try:
    ip = get_ipython()
except NameError:
    # do something one way because it’s not ipython
else:
    # do something a different way because it is python
There might be a better way to do this, though; I’m not sure
Alexey Berezutsky
@AlexeyBerezutsky
Mar 11 2015 11:08
Hi, All. I did not find any documentation about my question. How could I overwrite or hide MainToolbar in Ipython Notebook? I would like to change a bit behavior of this buttons.
Doug Blank
@dsblank
Mar 11 2015 12:41
@jhamrick @remram44 You'll have to import get_ipython, and it will return None if not running in under ipython... still might be in Jupyter though, for example, in another kernel.
Nicholas Bollweg
@bollwyvl
Mar 11 2015 13:25
@rgbkrk yes, apm is a good model
sorry i missed that conversation!
Kester Tong
@KesterTong
Mar 11 2015 21:14
can someone ping me when you get to talking about sharing on jupyterhub? Preferably on hangouts
Min RK
@minrk
Mar 11 2015 21:47
@KesterTong sure
Scott Sanderson
@ssanderson
Mar 11 2015 23:16
so, here's a fun bug: IPython's Config object's __deepcopy__ method barfs if it contains a logger that was constructed with logging.getLogger
# Configuration file for ipython.

c = get_config()  # noqa

import logging
c.Test.arglebargle = logging.getLogger('test')
bargs
Min RK
@minrk
Mar 11 2015 23:16
blarg
Scott Sanderson
@ssanderson
Mar 11 2015 23:16
barfs*
replace that with just logging.Logger('test') and it's fine
I'll open an issue
Min RK
@minrk
Mar 11 2015 23:17
wtf
Scott Sanderson
@ssanderson
Mar 11 2015 23:17
the error message is yelling about threadsafety
I think the logging object holds a lock when you get it with getLogger
Scott Sanderson
@ssanderson
Mar 11 2015 23:23
ipython/ipython#8023
hrm, I get a different error in Python 3.4