Skip to content

Commit

Permalink
deploy: 7fefdb3
Browse files Browse the repository at this point in the history
  • Loading branch information
balajialg committed Jan 19, 2024
1 parent 0802e58 commit c1a0c10
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 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 _sources/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)).
```
Binary file modified objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions workflow/dowload_PDF.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,17 +383,22 @@ <h1>Download Jupyter Notebook as a PDF</h1>

<section class="tex2jax_ignore mathjax_ignore" id="download-jupyter-notebook-as-a-pdf">
<h1>Download Jupyter Notebook as a PDF<a class="headerlink" href="#download-jupyter-notebook-as-a-pdf" title="Permalink to this heading">#</a></h1>
<p>Downloading Jupyter Notebooks (.ipynb files) as PDF can be slightly confusing given the gazillion options presented in the notebook UI. <a class="reference external" href="https://github.com/jupyter/nbconvert">nbconvert</a> 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.</p>
<p>If you are using <a class="reference external" href="https://datahub.berkeley.edu/">https://datahub.berkeley.edu/</a> then choose the following option
File -&gt; Save and Export Notebook As -&gt; Webpdf</p>
<p>Downloading Jupyter Notebooks (.ipynb files) as PDF can be slightly confusing given the gazillion options presented in the notebook UI. <a class="reference external" href="https://github.com/jupyter/nbconvert">nbconvert</a> 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.</p>
<p>If you are using <a class="reference external" href="https://datahub.berkeley.edu/">https://datahub.berkeley.edu/</a> and/or <a class="reference external" href="https://r.datahub.berkeley.edu/">https://r.datahub.berkeley.edu/</a>, then choose the following option to download the ipynb as pdf,</p>
<p>File -&gt; Save and Export Notebook As -&gt; Webpdf</p>
<figure class="align-center" id="download-jupyter-notebook-as-web-pdf">
<a class="reference internal image-reference" href="../_images/download_webPDF.png"><img alt="../_images/download_webPDF.png" src="../_images/download_webPDF.png" style="width: 500px;" /></a>
</figure>
<p>If you are using any other hub than <a class="reference external" href="https://datahub.berkeley.edu/">https://datahub.berkeley.edu/</a>, then choose the following option,
<p>If you are using any other hub than the ones mentioned above/, choose the following option,
File -&gt; Save and Export Notebook As -&gt; PDF</p>
<figure class="align-center" id="download-jupyter-notebook-as-pdf">
<a class="reference internal image-reference" href="../_images/download_PDF.png"><img alt="../_images/download_PDF.png" src="../_images/download_PDF.png" style="width: 500px;" /></a>
</figure>
<p>If you choose to download the notebook files as HTML then choose the following option,
File -&gt; Save and Export Notebook As -&gt; HTML</p>
<figure class="align-center" id="download-jupyter-notebook-as-html">
<a class="reference internal image-reference" href="../_images/download_HTML.png"><img alt="../_images/download_HTML.png" src="../_images/download_HTML.png" style="width: 500px;" /></a>
</figure>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>We recommend instructors/students to not use the “File -&gt; Save and Export Notebook as -&gt; Latex” option as it has historically led to “500 internal server error”message for some of our users (like <a class="reference external" href="https://github.com/berkeley-dsep-infra/datahub/issues/2664">this</a>).</p>
Expand Down

0 comments on commit c1a0c10

Please sign in to comment.