betatim / notebook-as-pdf

Save Jupyter Notebooks as PDF
BSD 3-Clause "New" or "Revised" License
370 stars 73 forks source link

Basic tests on osx, linux and windows #5

Open betatim opened 4 years ago

betatim commented 4 years ago

Thsi project should be able to run on windows, osx and linux. Testing all different platforms is hard, in particular because each individual doesn't have access to all of the platforms.

Setting up some basics tests that are cross-platform would be great.

Check out https://github.com/betatim/notebook-as-pdf/pull/4#issuecomment-628024626 for details on how to do this.

Ze-sys commented 3 years ago

I really like this extension and it is working very well on my personal Ubuntu machine. But it does not work on my work machine, after following the same installation procedures.

!pip install notebook-as-pdf !pyppeteer-install

and then,

!jupyter-nbconvert --to PDFviaHTML file.ipynb --no-input

My laptop:

20.04.2 LTS (Focal Fossa) Python 3.8.5

My work [virtual] machine

18.04.5 LTS (Bionic Beaver) Python 3.7.6

Error message (work machine):

ValueError: Unknown exporter "PDFviaHTML", did you mean one of: asciidoc, custom, html, latex, markdown, notebook, pdf, python, rst, script, slides?

Thanks for your work.

Ze-sys commented 3 years ago

Please ignore the error comment above. I wasn't paying enough attention during installation. Installing in the right virtual environment ( with python 3.7.6) fixed the issue.