[IPython-dev] embedding js9 into a notebook
nick.bollweg at gmail.com
Mon Dec 7 09:25:09 EST 2015
Great, I'm glad you've made progress!
The key method is:
Jupyter.keyboard_manager.register_events($("<selector for the node>"))
The nuclear option may also be worth considering: rendering the whole js9
inside an iframe.
Let me know when you are thinking you've advanced to the point where you
want to try to package the whole thing in a repo. It would be easier to
start collaborating on code, and then be able to get a binder (mybinder.org)
going, then consider how to proceed: pure js nbextension, python backend
On Mon, Dec 7, 2015 at 8:58 AM ericmandel <eric at cfa.harvard.edu> wrote:
> We’ve made some progress integrating JS9 image display into Jupyter. Try
> executing this in a cell:
> <div class="JS9Menubar"></div>
> <div class="JS9"></div>
> <link type="text/css" rel="stylesheet"
> If you do not have astronomical data, you should be able to drag and drop a
> png file onto the display. Create a region from the Regions menu, select an
> analysis tool like 3dPlot from the Analysis menu, click the region and move
> it around, etc …
> The one thing that really does not work is keyboard input into dialog
> For example, in the Zoom menu, click the “numeric zoom value” box and try
> enter a zoom factor. The whole display disappears, presumably because the
> keypress event is being interpreted as a Jupyter command/edit keypress.
> Is there a simple way to focus keyboard events away from Jupyter itself? My
> colleague Gijs Molenaar, who actually understands Jupyter (I’m the author
> JS9 and know next to nothing) will get back to this, but for now, it would
> be great to be able to tell early adopters how to run JS9 in Jupyter
> crashing it.
> If the answer is that one cannot wrestle the keyboard focus away from
> Jupyter, I can disable the dialog boxes. But in that case, it would be
> really useful to know that JS9 is in the Jupyter environment. Does Jupyter
> to sense the environment?
> View this message in context:
> Sent from the IPython - Development mailing list archive at Nabble.com.
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev