You can publish Javascript from the kernel with:
from IPython.display import display, Javascript
display(Javascript("""your_js()"""))
That might be what you need.
-MinRK
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/4c5f6184-ff4a-4697-a4cb-dc25d4b81664%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You can publish Javascript from the kernel with:
from IPython.display import display, Javascript display(Javascript("""your_js()"""))That might be what you need.
-MinRK
On Fri, Nov 4, 2016 at 3:22 PM, Logan Page <pag...@gmail.com> wrote:
I have more or less figured out what I need to do for an extension I'm creating.
The problem I have at the moment is I need to get a json object from an ipython kernel extension into a notebook extension.
Can someone point me in the right direction for achieving this?
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
I have created some ipython cell magics (kernel extension) that populates a json object when a cell is executed.
I need to get this json object into the front-end (javascript notebook extension) once complete.
The hack I am using at the moment is simply to print the json str from ipython and use an "executed.CodeCell" event to wait for the output (print info).
So, comms took me awhile to figure out, but it seems I have it working albeit a bit hacky.