Skip to content

4x iplot load-time performance #182

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

Merged
merged 4 commits into from
Jan 27, 2015
Merged

4x iplot load-time performance #182

merged 4 commits into from
Jan 27, 2015

Conversation

chriddyp
Copy link
Member

Every _repr_* method that exists is called on instantiation of a
IPython.core.display.HTML subclass. For Plotly,
_repr_png, _repr_svg, _repr_jpeg require a call to the image server
to generate the image. Combined, the 4 requests can make iplot commands
take 4 times as long as usual.

We mistakenly thought that the _repr_ commands were only called on demand,
e.g. on a call to `nbconvert`.

Unfortunately, this removes our support for `nbconvert`. An upcoming PR with
cached images should bring this support back.
@chriddyp chriddyp changed the title Faster iplot 4x iplot load-time performance Jan 24, 2015
@theengineear
Copy link
Contributor

These tests are failing: https://github.com/plotly/python-api/blob/master/plotly/tests/test_optional/test_ipython/test_embed.py#L30-62

You can probably just remove them. We can go back in the commit history and snag them again if we reimplement.

I opened up an issue in ipython about this: ipython/ipython#7573

chriddyp added a commit that referenced this pull request Jan 27, 2015
4x iplot load-time performance
@chriddyp chriddyp merged commit a283d83 into master Jan 27, 2015
@chriddyp chriddyp deleted the faster-images branch January 27, 2015 00:27
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