GithubHelp home page GithubHelp logo

Comments (5)

jackparmer avatar jackparmer commented on May 2, 2024

Awesome! Thanks! Nice to e-meet you. We're psyched to meet Fernando + team in Feb. IPython has been an wonderful way for communicating / teaching API tidbits to users, plus a lot of fun!

We're looking into adding image conversion to Plotly's API, so one could swap out the interactive iframe for a static image (svg, pdf, png, or eps), then they could use nbconvert. We would love to be able to export our notebooks with plotly graphs into pdf or latex - We'll certainly be in touch if we have questions or make headway!

from plotly.py.

chriddyp avatar chriddyp commented on May 2, 2024

Thanks so much for the suggestion! We finally got around to this, fixed in #107

$ ipython nbconvert mynotebook.ipynb --to latex --post PDF

Here is the notebook: http://nbviewer.ipython.org/gist/chriddyp/32a4ed87825346cb233c
And here is the resulting PDF: https://drive.google.com/file/d/0B8yfcydpsVhhZDFtd1l0Z2pIeXM/edit?usp=sharing

from plotly.py.

calumroy avatar calumroy commented on May 2, 2024

I seem to be having problems with this. Your example didn't work for me the pdf showed
<plotly.tools.PlotlyDisplay object> instead of the plot in the output pdf.

I am running OSX el captain 10.11.2.
I ran the command with the option --to pdf as the option --to latex --post PDF didn't work it returned No module named PDF.

ipython nbconvert test_to_pdf.ipynb --to pdf
[NbConvertApp] Converting notebook test_to_pdf.ipynb to pdf
[NbConvertApp] Writing 19096 bytes to notebook.tex
[NbConvertApp] Building PDF
[NbConvertApp] Running pdflatex 3 times: [u'pdflatex', u'notebook.tex']
[NbConvertApp] PDF successfully created
[NbConvertApp] Writing 46214 bytes to test_to_pdf.pdf

from plotly.py.

FayeL37 avatar FayeL37 commented on May 2, 2024

It seems the PDF version doesn't show the plotly graph. @chriddyp

from plotly.py.

FayeL37 avatar FayeL37 commented on May 2, 2024

When I type display(Image(raw_image_data)) into Jupyter Notebook, there is an error rising and saying Image is not defined. Any suggestion? Thanks @ellisonbg

from plotly.py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.