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

Visualiza a profiling output in notebook directly? #140

Open
dclong opened this issue Mar 13, 2020 · 1 comment
Open

Visualiza a profiling output in notebook directly? #140

dclong opened this issue Mar 13, 2020 · 1 comment

Comments

@dclong
Copy link

dclong commented Mar 13, 2020

SnakeViz support line and cell magics (%snakeviz, %%snakeviz) to visualize profiling of code in notebooks directly. Suppose I have a profiling output alreeady (very time-consuming to regenerate), can I use SnakeViz to visualize it in notebook directly (instead of visualizing it in browser)?

@jiffyclub
Copy link
Owner

Hi @dclong, that's a great question and feature idea, but not something snakeviz currently has built in. There's probably a workaround here where you use this svstatic tool to create a static HTML file of the profile and then add that to the notebook using IPython's display.HTML, or maybe an iframe loading a saved HTML file.

This is definitely something that'd be great to add to snakeviz, though.

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