These are chat archives for ipython/ipython

11th
May 2016
Doug Blank
@dsblank
May 11 2016 12:02
I'm working as a co-mentor with a GSoC developer (combining biojs + ipython). Question: if you have javascript objects (obj1.function1, obj2.function2, etc) is a there a general method for calling (with args) those functions from IPython, and getting their return values? Of course, one could do a lot of work by wrapping each and converting the args/return value, but is there some kind of automatic way to call generic javascript code?
Min RK
@minrk
May 11 2016 12:21
flexx provides an API for calling JavaScript from Python, but I'm not sure if it works in IPython.
@jdfreder made ipython-jsobject with similar goals some time ago, but I don't think it's been touched in some time.
Doug Blank
@dsblank
May 11 2016 12:40
Thanks, @minrk ... we'll look into these.
Min RK
@minrk
May 11 2016 12:43
@cilidine pandoc is not a Python package. You cannot install it with pip. The link in the error points to installation instructions for pandoc: http://johnmacfarlane.net/pandoc/installing.html
Stephen W. Nuchia
@swn1
May 11 2016 13:09
Processing an error frame in the jupyter_client library, I get a mess for the traceback. Just converting it to a string and stuffing it into a dialog box has a usable but very ugly effect. What am I missing? 'traceback': ['\x1b[1;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[1;31mAttributeError\x1b[0m Traceback (most recent call last)', '\x1b[1;32m<ipython-input-5-8d7979200831>\x1b[0m in \x1b[0;36m<module>\x1b[1;34m()\x1b[0m
Stephen W. Nuchia
@swn1
May 11 2016 13:44
Oh... had to put on my old-school dunce hat for this one: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors