These are chat archives for ipython/ipython

15th
Oct 2015
Anton Akhmerov
@akhmerov
Oct 15 2015 05:33
Also indeed, quite cool about the new python-based pandoc! @rossant, I imagine you have plans to also support latex?
Cyrille Rossant
@rossant
Oct 15 2015 08:24
@akhmerov ah, I should make a new release then...
For LaTeX, either you have pandoc installed and then you can combine it with that new library to edit LaTeX documents directly in the Jupyter Notebook, or you don't have pandoc in which case someone will have to contribute a LaTeX parser/writer in pure Python (based on plasTeX for example)
Cyrille Rossant
@rossant
Oct 15 2015 08:34
@bollwyvl I am unable to test ipymd or make a new release, any ideas? I think you contributed on this bit:
$ python setup.py test
running test
Traceback (most recent call last):
  File "setup.py", line 90, in <module>
    cmdclass={'test': PyTest},
  File "/home/cyrille/anaconda3/lib/python3.4/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/cyrille/anaconda3/lib/python3.4/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/cyrille/anaconda3/lib/python3.4/distutils/dist.py", line 973, in run_command
    cmd_obj.ensure_finalized()
  File "/home/cyrille/anaconda3/lib/python3.4/distutils/cmd.py", line 107, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 20, in finalize_options
    self.test_args = []
AttributeError: can't set attribute
Anton Akhmerov
@akhmerov
Oct 15 2015 10:31

@rossant I now remember what I didn't like about plastex:

Python 2.4+ is required.

Dale Jung
@dalejung
Oct 15 2015 16:20
is there a way to run notebook without using the compiled js?
been awhile since i've been in the code base, updating some libs to master and need to console.log within jupyter js files
Aaron Watters
@AaronWatters
Oct 15 2015 18:25
I want to submit a feature request relating to the javascript widget interface. Where is the right place to do it? I'm not sure that ipywidgets is the right place since I would like a change to the "widget protocol" to provide a callback when a widget is positioned in the DOM. Here is a relevant discussion: https://github.com/cytoscape/cytoscape.js/issues/514#issuecomment-148451753
Jonathan Frederic
@jdfreder
Oct 15 2015 18:39
There's already an event that fires when the widget is positioned in the DOM. Are you talking about adding the callback to the Python side of things?
ipywidgets is the right place to file the request
Aaron Watters
@AaronWatters
Oct 15 2015 18:51
What is the event called on the widget to tell it that the widget has been positioned?
Jonathan Frederic
@jdfreder
Oct 15 2015 18:53
displayed
It's triggered on the widget view
but that event is not relayed to the backend
so you need to be listening to it using Javaascript
Aaron Watters
@AaronWatters
Oct 15 2015 18:54
that's what I was looking for.
Thanks!
Jonathan Frederic
@jdfreder
Oct 15 2015 18:58
glad to help
Aaron Watters
@AaronWatters
Oct 15 2015 18:59
just to verify: manager calls "view.trigger('displayed')" and that results in a call to method "displayed()" of the view if it exists?
Jonathan Frederic
@jdfreder
Oct 15 2015 18:59
no
view.on('displayed', callback);
will register a callback for the event
Aaron Watters
@AaronWatters
Oct 15 2015 18:59
ah. thanks.