These are chat archives for ipython/ipython

1st
Apr 2015
Zbigniew
@voltane
Apr 01 2015 07:56
Hey, i'm currently working on adding user context to IPython kernel to control users's code execution and i have a question. So far i succesfully created context for shell commands (modified pexpect module which is used by IPython) but i have no idea how to deal with python 'exec' function. Kernelbase are preventing us from sending message from fork. Is there any way to bypass that restriction or any other ideas?
Sylvain Corlay
@SylvainCorlay
Apr 01 2015 14:15
yes, the main issue is that the static directory does not seem to be served
Min RK
@minrk
Apr 01 2015 16:20
@SylvainCorlay Did you do python setup.py submodule?
Sylvain Corlay
@SylvainCorlay
Apr 01 2015 16:23
yes, actually I got it to work eventually. sorry for the noise!
Sylvain Corlay
@SylvainCorlay
Apr 01 2015 16:31
starting a kernel on windows environments seems to be much longer though
Min RK
@minrk
Apr 01 2015 18:10
@ellisonbg can you look at #8215? At this point, I don't think we should move the kernel logo for 3.1.
After trying just about everything, all I've convinced myself of is that the kernel logo shouldn't be in the header at all.
So #8215 just makes the block containing buttons on the right easier to extend, which would put the kernel logo on the left of any added buttons.
Jonathan Frederic
@jdfreder
Apr 01 2015 18:19
@SylvainCorlay I've notice that too
Since I haven't been developing on Windows lately
I haven't taken the time to look into why
K.-Michael Aye
@michaelaye
Apr 01 2015 18:29
Thanks for the 3.x branch, much appreciated!
Brian E. Granger
@ellisonbg
Apr 01 2015 18:59
@minrk I am teaching from noon-4, but can look at the logo after that
I am open to the logo being elsewhere (or not at all) - any ideas on alternatives?
Min RK
@minrk
Apr 01 2015 19:15
I don't want to move it for 3.1, I just want to get the button block in
It's not urgent, we can check in after your class
Brian E. Granger
@ellisonbg
Apr 01 2015 20:13
ok
Nicholas Bollweg
@bollwyvl
Apr 01 2015 21:39
on logos: svg some day?
tossing around some ideas on kernel branding/marketing on try.jupyter.org: jupyter/try.jupyter.org#7
Matthias Bussonnier
@Carreau
Apr 01 2015 21:53
You mean SVG in notebook ?
Min RK
@minrk
Apr 01 2015 22:04
While SVGs scale ~10-20% better than raster images, it's not true that they scale well to arbitrary sizes. Typically you want several different images for different size ranges.
We had an extensive discussion about SVG kernel logos when deciding on the notebook UI, and ended up finding that multiple sizes of PNGs generally work better.
Sylvain Corlay
@SylvainCorlay
Apr 01 2015 22:06
this is also why pixel perfect fonts like fontawesome often look better than generic svg icons for small sizes
Matthias Bussonnier
@Carreau
Apr 01 2015 22:06
SVG do support size-media-query, so we could have many size SVG....
epifanio
@epifanio
Apr 01 2015 22:27
Hi, i’n ipython2+python2.7 i used this code: to embed a video.mkv in a notebook . https://gist.github.com/4a2155e781f1ac484fc4 this doesn’t work on python3 , I guess this is a python3vs2 issue .. do you know what should I use to have it working with ipython3+python3 ?
Min RK
@minrk
Apr 01 2015 22:29
My guess is it's because video_encoded is bytes, not str, so the string repr is not the bytes themselves.
You probably want video_encoded = video.encode("base64").decode('ascii')
Min RK
@minrk
Apr 01 2015 22:33
oh, right. encode('base64') is a py2-ism
You want base64.encodebytes(video).decode('ascii')
epifanio
@epifanio
Apr 01 2015 22:43
super!