Skip to content

Commit

Permalink
Add HTML related info
Browse files Browse the repository at this point in the history
  • Loading branch information
balajialg committed Jan 19, 2024
1 parent 1324a3f commit 7fefdb3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Binary file added images/download_HTML.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions workflow/dowload_PDF.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Download Jupyter Notebook as a PDF

Downloading Jupyter Notebooks (.ipynb files) as PDF can be slightly confusing given the gazillion options presented in the notebook UI. [nbconvert](https://github.com/jupyter/nbconvert) package converts notebook files (ipynb) to varied file formats which includes PDF, PNG etc...The options to download have changed recently due to the recent migration to Notebook 7 and Lab 4.
Downloading Jupyter Notebooks (.ipynb files) as PDF can be slightly confusing given the gazillion options presented in the notebook UI. [nbconvert](https://github.com/jupyter/nbconvert) is the third-party package used to convert notebook files (ipynb) to varied file formats including pdf,png etc...The options to download notebook as PDF/HTML has changed recently due to the migration from notebook 6 to 7 and Lab 3 to 4.

If you are using https://datahub.berkeley.edu/ and/or https://r.datahub.berkeley.edu/, then choose the following option to download the ipynb as pdf,

If you are using https://datahub.berkeley.edu/ then choose the following option
File -> Save and Export Notebook As -> Webpdf

```{figure} ../images/download_webPDF.png
Expand All @@ -11,7 +12,7 @@ File -> Save and Export Notebook As -> Webpdf
:name: Download Jupyter Notebook as Web PDF
```

If you are using any other hub than https://datahub.berkeley.edu/, then choose the following option,
If you are using any other hub than the ones mentioned above/, choose the following option,
File -> Save and Export Notebook As -> PDF

```{figure} ../images/download_PDF.png
Expand All @@ -20,6 +21,15 @@ File -> Save and Export Notebook As -> PDF
:name: Download Jupyter Notebook as PDF
```

If you choose to download the notebook files as HTML then choose the following option,
File -> Save and Export Notebook As -> HTML

```{figure} ../images/download_HTML.png
:width: 500px
:align: center
:name: Download Jupyter Notebook as HTML
```

```{note}
We recommend instructors/students to not use the "File -> Save and Export Notebook as -> Latex" option as it has historically led to "500 internal server error"message for some of our users (like [this](https://github.com/berkeley-dsep-infra/datahub/issues/2664)).
```

0 comments on commit 7fefdb3

Please sign in to comment.