These are chat archives for ipython/ipython

2nd
Dec 2014
epifanio
@epifanio
Dec 02 2014 01:49 UTC
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 UTC
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 UTC
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 UTC
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 UTC
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 UTC
so in 1h ?
I'll call you "fat little turkey john" now.
Jonathan Frederic
@jdfreder
Dec 02 2014 16:51 UTC
Lol okay
yes, I think in a 40 minutes now
Kyle Kelley
@rgbkrk
Dec 02 2014 17:07 UTC
Does --matplotlib inline now have to get passed to a kernel directly on master?
Matthias Bussonnier
@Carreau
Dec 02 2014 17:08 UTC
yes, I believe so.
Kyle Kelley
@rgbkrk
Dec 02 2014 17:08 UTC
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 UTC
otherwise it makes other kernlel that don't recognize the flag crash
Matthias Bussonnier
@Carreau
Dec 02 2014 17:08 UTC
maybe after a --
Kyle Kelley
@rgbkrk
Dec 02 2014 17:08 UTC
I tried that, isn't that part of an open PR from Min?
Matthias Bussonnier
@Carreau
Dec 02 2014 17:08 UTC
ipython notebook -- --matplotlib=inline
Kyle Kelley
@rgbkrk
Dec 02 2014 17:09 UTC
$ 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 UTC
and the long option --IPKernel.matplotlib trhiing
--IPKernelApp.matplotlib='inline'
Kyle Kelley
@rgbkrk
Dec 02 2014 17:12 UTC
Looks like pylab needs to be moved out
Or completely nuked
Matthias Bussonnier
@Carreau
Dec 02 2014 17:13 UTC
Nop, don't work. Yes pylab shoudl be nuked.
rha, just modify the kernel.json
Kyle Kelley
@rgbkrk
Dec 02 2014 17:15 UTC
Oi, I need to get some food before our meeting in 15 minutes
Matthias Bussonnier
@Carreau
Dec 02 2014 17:16 UTC
Ah, good point. me to
Fernando Perez
@fperez
Dec 02 2014 17:20 UTC
hi all, I can make it today :)
Damian Avila
@damianavila
Dec 02 2014 17:23 UTC
:+1:
Min RK
@minrk
Dec 02 2014 17:25 UTC
Great, I'll start the meeting in a few
Fernando Perez
@fperez
Dec 02 2014 17:27 UTC
excellent. I'm in my office, for a change.
Kyle Kelley
@rgbkrk
Dec 02 2014 17:29 UTC
I'll be on in a sec, finding a conference room
ok, good to go
Fernando Perez
@fperez
Dec 02 2014 17:34 UTC
@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 UTC
@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 UTC
Click above the youtube link
Min RK
@minrk
Dec 02 2014 17:36 UTC
@jdfreder The link above should work
Jonathan Frederic
@jdfreder
Dec 02 2014 17:36 UTC
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 UTC
the first link wasn't the invite, it was the 'audience' thing
Brian E. Granger
@ellisonbg
Dec 02 2014 17:44 UTC
joining now...
Kyle Kelley
@rgbkrk
Dec 02 2014 18:16 UTC
Is it bad that I'm very tempted by Hy?
I love functional programming.
Min RK
@minrk
Dec 02 2014 18:18 UTC
If you love functional programming, you can use py/cytoolz
Thomas Kluyver
@takluyver
Dec 02 2014 18:18 UTC
nothing wrong with that
Min RK
@minrk
Dec 02 2014 18:18 UTC
If you love functional programming and lisp, there is Hy
Thomas Kluyver
@takluyver
Dec 02 2014 18:18 UTC
who wouldn't be tempted by lisp+python ;-)
Brian E. Granger
@ellisonbg
Dec 02 2014 18:18 UTC
But there is a 12 step recovery group you can go to
Jonathan Frederic
@jdfreder
Dec 02 2014 18:18 UTC
looks cool
Brian E. Granger
@ellisonbg
Dec 02 2014 18:19 UTC
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 UTC
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 UTC
I do like "functional" python lots though and pytoolz is very cool
Kyle Kelley
@rgbkrk
Dec 02 2014 18:20 UTC
oh nice, will check it out deeply later today
Jason Grout
@jasongrout
Dec 02 2014 18:28 UTC
Thanks for the widget persistence, @jdfreder!
Matthias Bussonnier
@Carreau
Dec 02 2014 18:35 UTC
yep, yuidoc.
Kyle Kelley
@rgbkrk
Dec 02 2014 18:35 UTC
YUIDoc parses a modified form of JSDoc tags.
Matthias Bussonnier
@Carreau
Dec 02 2014 18:35 UTC
I know.
Kyle Kelley
@rgbkrk
Dec 02 2014 18:35 UTC
(not for you silly, for the room)
Damian Avila
@damianavila
Dec 02 2014 18:35 UTC
jajaja
Matthias Bussonnier
@Carreau
Dec 02 2014 18:36 UTC
@rgbkrk you are mean with damian.
Kyle Kelley
@rgbkrk
Dec 02 2014 18:36 UTC
What?
Matthias Bussonnier
@Carreau
Dec 02 2014 18:36 UTC
I almost though you were calling me silly.
Kyle Kelley
@rgbkrk
Dec 02 2014 18:36 UTC
I was, silly
Matthias Bussonnier
@Carreau
Dec 02 2014 18:36 UTC
:-P
Kyle Kelley
@rgbkrk
Dec 02 2014 18:36 UTC
:D
Jonathan Frederic
@jdfreder
Dec 02 2014 18:39 UTC
I have to go in 20 minutes, just a heads up
Matthias Bussonnier
@Carreau
Dec 02 2014 18:39 UTC
won't stay long either.
Jonathan Frederic
@jdfreder
Dec 02 2014 19:00 UTC
Nice talking to everyone, I've got to go. Ttyl!
Thomas Kluyver
@takluyver
Dec 02 2014 19:01 UTC
bye!
Jason Grout
@jasongrout
Dec 02 2014 19:07 UTC
nice; new cell types are allowed! Thanks!
Min RK
@minrk
Dec 02 2014 19:08 UTC
In future nbformats. Not arbitrary custom cell types
Fernando Perez
@fperez
Dec 02 2014 19:08 UTC
we aim to please :)
Jason Grout
@jasongrout
Dec 02 2014 19:08 UTC
right, thanks
Damian Avila
@damianavila
Dec 02 2014 19:09 UTC
I lost the connection... trying to reconnect... but I guess it is ending soon...
Min RK
@minrk
Dec 02 2014 19:10 UTC
yup, just wrapping up
Okay, heading into the office shortly
Damian Avila
@damianavila
Dec 02 2014 19:13 UTC
ok, it was impossible to reconnect... have a good rest of the day /@all
Min RK
@minrk
Dec 02 2014 19:14 UTC
bye @damianavila
Kyle Kelley
@rgbkrk
Dec 02 2014 19:14 UTC
Cheers!
Kyle Kelley
@rgbkrk
Dec 02 2014 20:27 UTC
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 UTC
:-P
Kyle Kelley
@rgbkrk
Dec 02 2014 20:28 UTC
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 UTC
nuke it from orbit, only way to be sure
Kyle Kelley
@rgbkrk
Dec 02 2014 20:30 UTC
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 UTC
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 UTC
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 UTC
well then
must be my chrome
thanks for checking
Jason Grout
@jasongrout
Dec 02 2014 22:39 UTC
@jdfreder: ipython/ipython#7081 (more promises tweaks)
Jonathan Frederic
@jdfreder
Dec 02 2014 23:30 UTC
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 UTC
I just got that invite too
Kyle Kelley
@rgbkrk
Dec 02 2014 23:46 UTC
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 UTC
shouldn't that be appear.on/jupyter
/and/instantly/get/crushed/by/the/pressure?sound=arrgh
Kyle Kelley
@rgbkrk
Dec 02 2014 23:52 UTC
lol