These are chat archives for ipython/ipython

16th
Jan 2015
Brian E. Granger
@ellisonbg
Jan 16 2015 00:00
[I 15:59:05.085 NotebookApp] Waiting for 1 to die
[I 15:59:05.588 NotebookApp] Waiting for 1 to die
[I 15:59:05.847 NotebookApp] EOF on FD 19; stopping reading
[I 15:59:05.847 NotebookApp] Terminal 1 closed
[D 15:59:06.089 NotebookApp] 204 DELETE /api/terminals/1 (::1) 23124.25ms
[D 15:59:06.094 NotebookApp] 200 GET /api/terminals?_=1421366298022 (::1) 0.67ms
[D 15:59:11.957 NotebookApp] 200 GET /api/sessions?_=1421366298023 (::1) 0.66ms
[D 15:59:11.963 NotebookApp] 200 GET /clusters?_=1421366298024 (::1) 4.78ms
[D 15:59:11.964 NotebookApp] 200 GET /api/terminals?_=1421366298025 (::1) 0.63ms
[D 15:59:11.974 NotebookApp] 200 GET /api/contents?type=directory&_=1421366298026 (::1) 9.87ms
Brian E. Granger
@ellisonbg
Jan 16 2015 00:31
I am off the phone now and can try more things...
Min RK
@minrk
Jan 16 2015 00:35
ok
so I guess what's happening is that the kill coming from ptyprocess isn't actually killing the process
Brian E. Granger
@ellisonbg
Jan 16 2015 00:35
Seems like it
Min RK
@minrk
Jan 16 2015 00:35
or rather, the signal isn't even arriving
can you open $CONDA_ROOT/envs/$CONDA_DEFAULT_ENV/lib/python2.7/site-packages/ptyprocess/ptyprocess.py
Min RK
@minrk
Jan 16 2015 00:42
and add to PtyProcess.kill (L747): print(self.isalive()) and print(self.pid, sig)?
Brian E. Granger
@ellisonbg
Jan 16 2015 00:44
ok
Andrew M. C. Dawes
@amcdawes
Jan 16 2015 00:46
sorry to jump in but I was lurking and tried it on a whim, I can't get terminals to shutdown either. Python 3.4.2 terminado 0.3.1 osx 10.10.1
Brian E. Granger
@ellisonbg
Jan 16 2015 00:48
Before it is tried to kill I get :smile: True
(78403, 15)
And the pid matches the actual pid
Min RK
@minrk
Jan 16 2015 00:50
And in an IPython session in another terminal, do: os.kill(78403, 15)
Brian E. Granger
@ellisonbg
Jan 16 2015 00:51
ok
Min RK
@minrk
Jan 16 2015 00:53
Does that kill it?
Andrew M. C. Dawes
@amcdawes
Jan 16 2015 00:57
os.kill( , 15) doesn't kill mine, only os.kill( , 1) does
Brian E. Granger
@ellisonbg
Jan 16 2015 00:57
nope
letme try 1
1 does kill it
Min RK
@minrk
Jan 16 2015 00:59
ok, I'm going to go with "officially, wtf", but at least we know the problem - SIGTERM doesn't actually terminate your shells
what terminal emulator are you using?
Brian E. Granger
@ellisonbg
Jan 16 2015 01:00
Default mac os x Terminal
and settings
Min RK
@minrk
Jan 16 2015 01:02
In the terminal, can you do: python -c 'import signal; print(signal.signal(signal.SIGTERM, signal.SIG_DFL))'
Brian E. Granger
@ellisonbg
Jan 16 2015 01:03
0
Min RK
@minrk
Jan 16 2015 01:04
ok
Brian E. Granger
@ellisonbg
Jan 16 2015 01:04
that was in the Mac Terminal
Do you want me to run it in the nb terminal?
Min RK
@minrk
Jan 16 2015 01:05
Yes
Brian E. Granger
@ellisonbg
Jan 16 2015 01:05
0 as well
@minrk I have to run now - be back online around 8pm and working on ipython/grant stuff until late
Min RK
@minrk
Jan 16 2015 01:06
ok
Alexey Berezutsky
@AlexeyBerezutsky
Jan 16 2015 09:17
Hi, All. I need to operate with IPython.toolbar from external js code. Where can I get Ipython.js ?
Dave Hirschfeld
@dhirschfeld
Jan 16 2015 12:48

I'm still having no joy displaying a custom logo for my kernel :worried:. To investigate the permissions angle I'm now running the nbserver locally under my account which has admin privileges but I still get the 404.

To investigate further I instrumented the tornado StaticFileHandler.
When I request
http://localhost:5678/QuantDevelopment/Notebooks/kernelspecs/python2/logo-64x64.png
In the terminal where I started the server I get

[D 12:41:14.667 NotebookApp] Serving kernel resource from: C:\Python\lib\site-packages\IPython\kernel\resources
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\kernel\resources\logo-64x64.png'
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\kernel\resources\logo-64x64.png'
[D 12:41:14.914 NotebookApp] 200 GET /QuantDevelopment/Notebooks/kernelspecs/python2/logo-64x64.png (127.0.0.1) 249.00ms

..where the XXX comments just prit the abspath from https://github.com/tornadoweb/tornado/blob/master/tornado/web.py#L2323

When I request
http://localhost:5678/QuantDevelopment/Notebooks/kernelspecs/pricing-1.6.1.post134.g8e22d57/logo-64x64.png
I get

[D 12:45:12.529 NotebookApp] Using contents: services/contents
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\base\images\favicon.ico'
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\components\jquery-ui\themes\smoothness\jquery-ui.min.css'
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\style\style.min.css'
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\custom\custom.css'
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\components\es6-promise\promise.min.js'
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\components\requirejs\require.js'
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\base\images\logo.png'
[W 12:45:12.579 NotebookApp] 404 GET /QuantDevelopment/Notebooks/kernelspecs/pricing-1.6.1.post134.g8e22d57/logo-64x64.png (127.0.0.1) 53.00ms referer=None
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\components\jquery-ui\themes\smoothness\jquery-ui.min.css'
[D 12:45:12.835 NotebookApp] 200 GET /QuantDevelopment/Notebooks/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=4ead36752c0108da2d92993a7a9dde02 (127.0.0.1) 235.00ms
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\style\style.min.css'
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\custom\custom.css'
[D 12:45:12.839 NotebookApp] 200 GET /QuantDevelopment/Notebooks/static/custom/custom.css?v=c4772b5769996a33ab13385069562011 (127.0.0.1) 3.00ms
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\components\es6-promise\promise.min.js'
[D 12:45:12.842 NotebookApp] 200 GET /QuantDevelopment/Notebooks/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe (127.0.0.1) 0.00ms
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\components\requirejs\require.js'
[D 12:45:12.846 NotebookApp] 200 GET /QuantDevelopment/Notebooks/static/components/requirejs/require.js?v=a9afeec07f12e460284e5daa2b085d16 (127.0.0.1) 2.00ms
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\base\images\favicon.ico'
[D 12:45:12.849 NotebookApp] 200 GET /QuantDevelopment/Notebooks/static/base/images/favicon.ico?v=30780f272ab4aac64aa073a841546240 (127.0.0.1) 3.00ms
[D 12:45:12.851 NotebookApp] 200 GET /QuantDevelopment/Notebooks/static/style/style.min.css?v=76c96411bcf794568f8d8cab792b2a85 (127.0.0.1) 17.00ms
XXXXXXXXXX: getting 'C:\Python\lib\site-packages\IPython\html\static\base\images\logo.png'
[D 12:45:12.855 NotebookApp] 200 GET /QuantDevelopment/Notebooks/static/base/images/logo.png?v=7c4597ba713d804995e8f8dad448a397 (127.0.0.1) 3.00ms

...so it looks like its not even looking for a logo-64x64.png in the StaticFileHandler. The rest of the calls I guess are just to display the 404 page.

Any further ideas how I could go about debugging this?

Brian E. Granger
@ellisonbg
Jan 16 2015 16:51
@minrk I was thinking more about the terminal shutdown issue. Could it be related to any App Nap settings/customization?
Andrew M. C. Dawes
@amcdawes
Jan 16 2015 17:39
@ellisonbg does it only happen for you in py2.7? I see the same thing in py3.4
Brian E. Granger
@ellisonbg
Jan 16 2015 17:42
I haven't tested it in python 3 but can do that today
Brian E. Granger
@ellisonbg
Jan 16 2015 17:48
@minrk I am in meetings today now-11 and 1-2. Other than that open to help debug the terminal shutdown
Min RK
@minrk
Jan 16 2015 19:17
@ellisonbg we need to add some stuff to terminado for multi-stage shutdown.
the usual term, wait, kill.
we can also investigate trying to unset whatever is ignoring sigterm
Brian E. Granger
@ellisonbg
Jan 16 2015 19:27
OK, let me know how I can help in trying things out and debugging
Peter Parente
@parente
Jan 16 2015 19:29
hi all. trying to get setup with a local dev environment on my mac for master branch. just running the js tests and seeing failures whereas travis reports none. any idea what might be the diff?
Kyle Kelley
@rgbkrk
Jan 16 2015 19:58
Do you have phantom installed, @parente?
Peter Parente
@parente
Jan 16 2015 19:58
@rgbkrk, yes 1.9.0 and have tried 1.9.8 also
same behavior
Kyle Kelley
@rgbkrk
Jan 16 2015 19:59
Can you post some logs?
Peter Parente
@parente
Jan 16 2015 20:02
sure, 1 s ec
snippet of the failures
i can throw the whole log up there if you want
Kyle Kelley
@rgbkrk
Jan 16 2015 20:04
Weird
Peter Parente
@parente
Jan 16 2015 20:04
do you know if phantomjs uses the webkit from the machine or its own?
Kyle Kelley
@rgbkrk
Jan 16 2015 20:05
Sadly I have no clue from here.
That's sad levels of failure there.
Peter Parente
@parente
Jan 16 2015 20:06
i wonder if its using the webkit from my mac (yosemite, safari 8) which maybe does have an issue with those tests?