Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snakeviz not showing visualization via online jupyterLab #189

Open
kkruups opened this issue Feb 17, 2023 · 4 comments
Open

Snakeviz not showing visualization via online jupyterLab #189

kkruups opened this issue Feb 17, 2023 · 4 comments

Comments

@kkruups
Copy link

kkruups commented Feb 17, 2023

Using myBinder to open an online instance of JupyterLab which is serving a notebook from a GitHub repository does not show the visualization although it generates the output rendered message stating it is embedding the Tmpfile to output cell.

The same behavior is observed via Google’s Colab Notebook online app.

How can this issue be resolved?

What additional info do you need?

@kkruups
Copy link
Author

kkruups commented Feb 17, 2023

C238B294-E062-4BDA-B35B-E00195A623FF

@jiffyclub
Copy link
Owner

I've never tried snakeviz in those environments, but I'd honestly be surprised if it works. The snakeviz magic requires starting a snakeviz web server via a subprocess and reading the page contents that way, and I bet Binder and Colab have security controls in place to prevent that kind of thing. 😞

@kkruups
Copy link
Author

kkruups commented Feb 18, 2023

OIC, so no workarounds that you can recommend?

@jiffyclub
Copy link
Owner

No workarounds that I know of for using snakeviz itself in these environments, but I think you can still use the IPython %prun magic. It has the same underlying data as snakeviz without the interactive visualization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants