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

Cached image iplot #183

Closed
wants to merge 1 commit into from
Closed

Cached image iplot #183

wants to merge 1 commit into from

Conversation

chriddyp
Copy link
Member

On calling iplot, render an image first then replace it with the interactive version once it loads. If offline, the image of the graph will still be viewable. Re-opening notebooks will be fast with the cached images.

Example: http://nbviewer.ipython.org/gist/chriddyp/e567a9d1dd659a6b397b

cached (bool) -- Show a static image of the graph while the interactive
version loads. Note: the interactive version will
not display on notebooks if Javascript can't be run,
e.g. notebooks shared with nbviewer.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, is this not true then? it will work?

@chriddyp
Copy link
Member Author

Alright, here is an example of the proposed behavior: http://nbviewer.ipython.org/gist/chriddyp/a5585876433d42eb0844

  • make 2 threaded requests to plotly: 1 for image, 1 for static plot. show the first one that comes back
  • save the static images to the notebook
  • on page reload, don't load the interactive graphs on page load
  • on page scroll, load the interactive graphs as you scroll near them

@theengineear
Copy link
Contributor

@chriddyp, sorry if I dropped the 🎱 on getting back here. Do you need/want me to look this over and are we still trying to go ahead on this one?

@chriddyp
Copy link
Member Author

chriddyp commented Oct 1, 2015

Nah, we can close it. Needs a few more days to make it really nice, and I don't have the bandwidth now.

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

Successfully merging this pull request may close these issues.

None yet

2 participants