These are chat archives for ipython/ipython

2nd
Dec 2014
epifanio
@epifanio
Dec 02 2014 01:49
hi guys, i’m having troubles in converting notebooks to pdf .. is there a related open issue on github where i can add logs and details on how to reproduce the errors
essentially everry expression that use $latex$ (sigle $) instead of doble (‘$’$') ‘$’$’latex’$’$' is rendered ok in html .. but gives error in conversion to pdf
Matthias Bussonnier
@Carreau
Dec 02 2014 16:00
Does that seem weird to anybody ?
In [1]: import pip.commands.install

In [2]: import pip.commands.install as foo
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-61d5ce34e8a4> in <module>()
----> 1 import pip.commands.install as foo
Jonathan Frederic
@jdfreder
Dec 02 2014 16:12
Does is still throw on the line with foo if you reverse the inputs?
PIP install is probably doing something weird on import.
Matthias Bussonnier
@Carreau
Dec 02 2014 16:16
yes it does.
i figured out why.
it's because init use a global variable named commands
so pip.commands can never point to the actual sub-module
I've fixed it, just waiting for test to pass on local machine before submitting PR
https://github.com/Carreau/pip/pull/1/files if you want to seee the diff.
pip code is ugly.
Meeting today btw ? or Thursday ? How was Thanksgiving ?
Jonathan Frederic
@jdfreder
Dec 02 2014 16:20
I think the meeting still is today. Thanksgiving was fun! I feel fat like a turkey :P
9:30 PST I think
Matthias Bussonnier
@Carreau
Dec 02 2014 16:26
so in 1h ?
I'll call you "fat little turkey john" now.
Jonathan Frederic
@jdfreder
Dec 02 2014 16:51
Lol okay
yes, I think in a 40 minutes now
Kyle Kelley
@rgbkrk
Dec 02 2014 17:07
Does --matplotlib inline now have to get passed to a kernel directly on master?
Matthias Bussonnier
@Carreau
Dec 02 2014 17:08
yes, I believe so.
Kyle Kelley
@rgbkrk
Dec 02 2014 17:08
Also, how do I pass args to a specific kernel on launch of the notebook?
Do I have to use config?
Matthias Bussonnier
@Carreau
Dec 02 2014 17:08
otherwise it makes other kernlel that don't recognize the flag crash
Matthias Bussonnier
@Carreau
Dec 02 2014 17:08
maybe after a --
Kyle Kelley
@rgbkrk
Dec 02 2014 17:08
I tried that, isn't that part of an open PR from Min?
Matthias Bussonnier
@Carreau
Dec 02 2014 17:08
ipython notebook -- --matplotlib=inline
Kyle Kelley
@rgbkrk
Dec 02 2014 17:09
$ ipython notebook -- --matplotlib=inline
[C 11:08:54.405 NotebookApp] No such file or directory: /Users/kyle6475/--matplotlib=inline
That takes it as reading a file
oh wait
nope
still bad
Matthias Bussonnier
@Carreau
Dec 02 2014 17:10
and the long option --IPKernel.matplotlib trhiing
--IPKernelApp.matplotlib='inline'
Kyle Kelley
@rgbkrk
Dec 02 2014 17:12
Looks like pylab needs to be moved out
Or completely nuked
Matthias Bussonnier
@Carreau
Dec 02 2014 17:13
Nop, don't work. Yes pylab shoudl be nuked.
rha, just modify the kernel.json
Kyle Kelley
@rgbkrk
Dec 02 2014 17:15
Oi, I need to get some food before our meeting in 15 minutes
Matthias Bussonnier
@Carreau
Dec 02 2014 17:16
Ah, good point. me to
Fernando Perez
@fperez
Dec 02 2014 17:20
hi all, I can make it today :)
Damian Avila
@damianavila
Dec 02 2014 17:23
:+1:
Min RK
@minrk
Dec 02 2014 17:25
Great, I'll start the meeting in a few
Fernando Perez
@fperez
Dec 02 2014 17:27
excellent. I'm in my office, for a change.
Kyle Kelley
@rgbkrk
Dec 02 2014 17:29
I'll be on in a sec, finding a conference room
ok, good to go
Fernando Perez
@fperez
Dec 02 2014 17:34
@minrk, meet url? as usual, I got the g+ ping but no actual link to open...
tx
Jonathan Frederic
@jdfreder
Dec 02 2014 17:35
@minrk usually I get the invite, but it's an invite "to watch". It only has a youtube url. Maybe there's another way to invite for participation?
Kyle Kelley
@rgbkrk
Dec 02 2014 17:36
Click above the youtube link
Min RK
@minrk
Dec 02 2014 17:36
@jdfreder The link above should work
Jonathan Frederic
@jdfreder
Dec 02 2014 17:36
it does
but
I was just letting you know
maybe there's a different button somewhere that sends participation invites
Min RK
@minrk
Dec 02 2014 17:37
the first link wasn't the invite, it was the 'audience' thing
Brian E. Granger
@ellisonbg
Dec 02 2014 17:44
joining now...
Kyle Kelley
@rgbkrk
Dec 02 2014 18:16
Is it bad that I'm very tempted by Hy?
I love functional programming.
Min RK
@minrk
Dec 02 2014 18:18
If you love functional programming, you can use py/cytoolz
Thomas Kluyver
@takluyver
Dec 02 2014 18:18
nothing wrong with that
Min RK
@minrk
Dec 02 2014 18:18
If you love functional programming and lisp, there is Hy
Thomas Kluyver
@takluyver
Dec 02 2014 18:18
who wouldn't be tempted by lisp+python ;-)
Brian E. Granger
@ellisonbg
Dec 02 2014 18:18
But there is a 12 step recovery group you can go to
Jonathan Frederic
@jdfreder
Dec 02 2014 18:18
looks cool
Brian E. Granger
@ellisonbg
Dec 02 2014 18:19
Step 1: came believe that you were powerless over functional programming that your life had become unmanageable
Kyle Kelley
@rgbkrk
Dec 02 2014 18:19
Well, I use map, reduce, filter, lambdas all day
Then wonder if people can read my code
I :heart:ed scheme
Brian E. Granger
@ellisonbg
Dec 02 2014 18:20
I do like "functional" python lots though and pytoolz is very cool
Kyle Kelley
@rgbkrk
Dec 02 2014 18:20
oh nice, will check it out deeply later today
Jason Grout
@jasongrout
Dec 02 2014 18:28
Thanks for the widget persistence, @jdfreder!
Matthias Bussonnier
@Carreau
Dec 02 2014 18:35
yep, yuidoc.
Kyle Kelley
@rgbkrk
Dec 02 2014 18:35
YUIDoc parses a modified form of JSDoc tags.
Matthias Bussonnier
@Carreau
Dec 02 2014 18:35
I know.
Kyle Kelley
@rgbkrk
Dec 02 2014 18:35
(not for you silly, for the room)
Damian Avila
@damianavila
Dec 02 2014 18:35
jajaja
Matthias Bussonnier
@Carreau
Dec 02 2014 18:36
@rgbkrk you are mean with damian.
Kyle Kelley
@rgbkrk
Dec 02 2014 18:36
What?
Matthias Bussonnier
@Carreau
Dec 02 2014 18:36
I almost though you were calling me silly.
Kyle Kelley
@rgbkrk
Dec 02 2014 18:36
I was, silly
Matthias Bussonnier
@Carreau
Dec 02 2014 18:36
:-P
Kyle Kelley
@rgbkrk
Dec 02 2014 18:36
:D
Jonathan Frederic
@jdfreder
Dec 02 2014 18:39
I have to go in 20 minutes, just a heads up
Matthias Bussonnier
@Carreau
Dec 02 2014 18:39
won't stay long either.
Jonathan Frederic
@jdfreder
Dec 02 2014 19:00
Nice talking to everyone, I've got to go. Ttyl!
Thomas Kluyver
@takluyver
Dec 02 2014 19:01
bye!
Jason Grout
@jasongrout
Dec 02 2014 19:07
nice; new cell types are allowed! Thanks!
Min RK
@minrk
Dec 02 2014 19:08
In future nbformats. Not arbitrary custom cell types
Fernando Perez
@fperez
Dec 02 2014 19:08
we aim to please :)
Jason Grout
@jasongrout
Dec 02 2014 19:08
right, thanks
Damian Avila
@damianavila
Dec 02 2014 19:09
I lost the connection... trying to reconnect... but I guess it is ending soon...
Min RK
@minrk
Dec 02 2014 19:10
yup, just wrapping up
Okay, heading into the office shortly
Damian Avila
@damianavila
Dec 02 2014 19:13
ok, it was impossible to reconnect... have a good rest of the day /@all
Min RK
@minrk
Dec 02 2014 19:14
bye @damianavila
Kyle Kelley
@rgbkrk
Dec 02 2014 19:14
Cheers!
Kyle Kelley
@rgbkrk
Dec 02 2014 20:27
Wow, I've crashed Chrome every single time I've used my csp branch and embedded it on a separate domain
Matthias Bussonnier
@Carreau
Dec 02 2014 20:28
:-P
Kyle Kelley
@rgbkrk
Dec 02 2014 20:28
Figured I better test it again after adding the logging
guess I need to wait for the next Chrome release
:P
You can embed it as an iframe on the notebook server itself though.
It's very effective iframe blocking now
;)
Thomas Kluyver
@takluyver
Dec 02 2014 20:29
nuke it from orbit, only way to be sure
Kyle Kelley
@rgbkrk
Dec 02 2014 20:30
Guess so
It's not sending the reports though
This worked last week, so this is funny now
Kyle Kelley
@rgbkrk
Dec 02 2014 21:45
Anyone want to try this node server out with Chrome for me?
var http = require('http');

http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Security-Policy': 'frame-ancestors \'self\'; report-uri /test'});
  res.end(';)');
}).listen(9999);

http.createServer(function (req, res) {
  res.end('<iframe src="http://127.0.0.1:9999" width="100%" height="100%"></iframe>');
}).listen(8000);
Then open 127.0.0.1:8000
Min RK
@minrk
Dec 02 2014 22:14
Refused to display 'http://127.0.0.1:9999/' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
@rgbkrk
Kyle Kelley
@rgbkrk
Dec 02 2014 22:20
well then
must be my chrome
thanks for checking
Jason Grout
@jasongrout
Dec 02 2014 22:39
@jdfreder: ipython/ipython#7081 (more promises tweaks)
Jonathan Frederic
@jdfreder
Dec 02 2014 23:30
Thanks jason
appear.in ?
@/all does the appear.in service, which one of you invited me to, also record to youtube?
Thomas Kluyver
@takluyver
Dec 02 2014 23:36
I just got that invite too
Kyle Kelley
@rgbkrk
Dec 02 2014 23:46
It does not record to youtube
It was me that sent it, after Brian asked me to grab appear.in/jupyter
Thomas Kluyver
@takluyver
Dec 02 2014 23:49
shouldn't that be appear.on/jupyter
/and/instantly/get/crushed/by/the/pressure?sound=arrgh
Kyle Kelley
@rgbkrk
Dec 02 2014 23:52
lol