These are chat archives for ipython/ipython

20th
Nov 2014
Jason Grout
@jasongrout
Nov 20 2014 00:51
@ellisonbg and @jdfreder: thanks for your review comments!
Damian Avila
@damianavila
Nov 20 2014 16:27
@/all, meeting 9:30 or 10:00?
Matthias Bussonnier
@Carreau
Nov 20 2014 16:51
9:30 I guess. in 40 minutes
Right now I just want to sleep. I even think I will
Damian Avila
@damianavila
Nov 20 2014 17:01
Are you still on France?
Matthias Bussonnier
@Carreau
Nov 20 2014 17:02
Yes, until mid Jan.
Jessica B. Hamrick
@jhamrick
Nov 20 2014 17:27
Good morning
Jonathan Frederic
@jdfreder
Nov 20 2014 17:27
good morning
Min RK
@minrk
Nov 20 2014 17:28
Fernando's going to come, but not at the beginning
Brian E. Granger
@ellisonbg
Nov 20 2014 17:28
hi
Does this mean that Fernando made it back to the west coast?
Damian Avila
@damianavila
Nov 20 2014 17:30
Good morning!
Min RK
@minrk
Nov 20 2014 17:30
Setting it up, now
Yup, he emailed this morning saying he was coming in, just a bit late
@ellisonbg joining?
Brian E. Granger
@ellisonbg
Nov 20 2014 17:34
yep
tell William hi for me!
Scott Sanderson
@ssanderson
Nov 20 2014 18:28
I had to drop out for candidate interviews here; not sure if my message went through on the hangout.
Jonathan Frederic
@jdfreder
Nov 20 2014 18:38
bye!
Thomas Kluyver
@takluyver
Nov 20 2014 19:14
Kyle Kelley
@rgbkrk
Nov 20 2014 19:16
nice
Jonathan Frederic
@jdfreder
Nov 20 2014 19:43
Who wrote the article? Was it someone at nature?
Thomas Kluyver
@takluyver
Nov 20 2014 19:47
I assume so. It wasn't one of us.
Kyle Kelley
@rgbkrk
Nov 20 2014 19:48
@jdfreder It was a freelance science writer named Helen Shen
The main article that is
What we all should be most pleased about is the casing of IPython on the cover.
Forget the article itself
:P
Kasper Peeters
@kpeeters
Nov 20 2014 20:21
does anyone here have experience with the repr_latex functionality?
Thomas Kluyver
@takluyver
Nov 20 2014 20:25
some. What are you trying to do?
Kasper Peeters
@kpeeters
Nov 20 2014 20:30
when I define a _repr_latex_(self) function in my python object, it nicely prints as a LaTeX formatted object in the notebook.
However, when I declare such a member function using boost.python, it never gets called by ipython.
It does exist, and I can call it by hand, but ipython keeps calling __repr__ instead.
Any ideas? Is there an example somewhere that uses boost.python together with _repr_latex_ (yes, I googled)
Thomas Kluyver
@takluyver
Nov 20 2014 20:32
I have very little experience with boost
none, in fact
but I can find you the code that checks for that method
Kasper Peeters
@kpeeters
Nov 20 2014 20:32
that might help, thanks
Thomas Kluyver
@takluyver
Nov 20 2014 20:34
It will call this function: https://github.com/ipython/ipython/blob/master/IPython/core/formatters.py#L69 with your object and the string '_repr_latex_'
_safe_getattr is just getattr that catches exceptions
_valid_formatter is defined just abvoe
above
Kasper Peeters
@kpeeters
Nov 20 2014 20:36
ok, it is probably failing in _valid_formatter. thanks, that helps, will dig further.
Thomas Kluyver
@takluyver
Nov 20 2014 20:36
great
Kasper Peeters
@kpeeters
Nov 20 2014 21:01
that's it, the inspect module does not handle boost methods and throws an exception in _valid_formatter. Will file a bug.