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

Jupyter: Export static image so pdf conversion works #617

Closed
timkpaine opened this issue Jun 17, 2019 · 4 comments
Closed

Jupyter: Export static image so pdf conversion works #617

timkpaine opened this issue Jun 17, 2019 · 4 comments
Labels
enhancement Feature requests or improvements Jupyter

Comments

@timkpaine
Copy link
Member

plotly/plotly.py#1623

@timkpaine timkpaine added enhancement Feature requests or improvements Jupyter labels Jun 17, 2019
@texodus
Copy link
Member

texodus commented Jul 11, 2019

This is a bit tricky for the core lib as we still rely heavily on SVG for both the Highcharts and D3FC plugins. We could try rendering the SVG to canvas via canvg or similar but should probably restrict its inclusion to the Jupyterlab plugin as it is a quite large lib.

@RandomFractals
Copy link

RandomFractals commented Sep 1, 2019

saving svg and converting it to png doesn't require any extra canvg libs. I can't believe you and d3fc maintainers are still 'exploring' this simple JS add-on option. start here :) https://observablehq.com/@mbostock/saving-svg

@RandomFractals
Copy link

related: #646 (comment)

@timkpaine
Copy link
Member Author

closing as this is out of scope for now, we can revisit in the future. Given that perspective-python now supports going to and from dataframe/arrow, in the context of NBConvert it is relatively easy to just swap out perspective's grid and plotting for pandas native rendering and matplotlib, respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests or improvements Jupyter
Projects
None yet
Development

No branches or pull requests

3 participants