Skip to content

IPython magics broken in tuna >=5.0 #95

Open
@asford

Description

First, 👏 👏 👏 , this is an amazingly useful profiling tool. Thanks!

The ipython magics are broken in release 5.0+ with the browser console traceback of:

Uncaught TypeError: Cannot read property 'addEventListener' of null
    at HTMLElement.render (about:srcdoc:132)
    at HTMLElement.connectedCallback (about:srcdoc:112)
    at about:srcdoc:270

This is being raised after failing to resolve the "resetZoomButton" added in #87 at https://github.com/nschloe/tuna/blob/v0.5.3/tuna/web/static/icicle.js#L27-L30

It's not entirely clear to me why the strategy used in the magics doesn't work here, but I believe it may be because an object is specified by ID in the tuna javascript but then isn't present in the IFrame generated by the magic?

I've uploaded a full repro to nbviewer:
https://nbviewer.jupyter.org/gist/asford/35eebdaba46cb3e513565d6fc8440763

It should be possible to open this viewer to view the error traceback in the browser developer console.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions