Город МОСКОВСКИЙ
00:07:28

Export Jupyter to HTML | PDF

Аватар
Создание ботов для онлайн-сервисов
Просмотры:
30
Дата загрузки:
02.12.2023 07:46
Длительность:
00:07:28
Категория:
Технологии и интернет

Описание

How to export a Jupyter Notebook to HTML with Plotly graphs included.
By default the graphs/charts don't appear. Same with export to PDF.

This code fixes :
◼️ nbconvert failed: Pyppeteer is not installed to support Web PDF conversion. Please install `nbconvert[webpdf]` to enable.

◼️ nbconvert failed: No suitable chromium executable found on the system. Please use '--allow-chromium-download' to allow downloading one.

? If you want a fast VPS server with Python installed check out :
https://webdock.io/en?maff=wdaff--170

Pytest with FastAPI course on "TestDriven.io":
-------------------------------------------------------------------------
https://testdriven.io/courses/tdd-fastapi/?utm_source=python360
https://testdriven.io/courses/scalable-fastapi-aws/?utm_source=python360
https://testdriven.io/courses/fastapi-celery/?utm_source=python360

code :
---------
import pandas as pd
import plotly.express as px

# 2 lines below for html export
import plotly.io as pio
pio.renderers.default ='notebook'

# 2 lines below for PDF export
!pip install Pyppeteer
!pyppeteer-install

Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?

You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! ?

? 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10

Thumbs up yeah? (cos Algos..)

#jupyternotebook #tutorial #pythonprogramming

Рекомендуемые видео