-
Notifications
You must be signed in to change notification settings - Fork 89
RHOAIENG-16568: [Bug] Unable to download notebook as a PDF from JupyterLab Workbenches #1030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-bot
merged 21 commits into
opendatahub-io:main
from
jesuino:RHOAIENG-16568
Jun 4, 2025
Merged
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7f7edbb
RHOAIENG-16568: [Bug] Unable to download notebook as a PDF from Jupyt…
jesuino dea7051
Running installation from a script
jesuino a94c7af
Adding test and fixing path
jesuino 8c8a58d
Fixing Script file name
jesuino 7937ac9
Using minimal tmp file instead a fixed file
jesuino 2849a5e
Removing and ignoring logs
jesuino 76de561
Adding tex live to missing Dockerfiles
jesuino 2ec226b
Formatting
jesuino 4bd800b
Review changes
jesuino 5018bb4
Merge branch 'main' into RHOAIENG-16568
jesuino 8817fec
Removing unwanted line
jesuino 50a0ed2
Fixing type
jesuino 14a379b
Copying configuration in all images
jesuino 294de99
Removing year from the TeXLive installation
jesuino a9a239f
Merge branch 'main' into RHOAIENG-16568
jesuino f3b6ddf
Adding pandoc for a complete PDF export support
jesuino 0e22bad
Updating comment about TeX live installation
jesuino d19a00b
Improving PDF export test
jesuino 2c9a199
pandoc latest version and ignoring message
jesuino 8521ff3
formatting fix
jesuino 6ab959b
add "/usr/local/pandoc/bin/pandoc" to config.toml
jiridanek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jiridanek marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Install dependencies required for Notebooks PDF exports | ||
|
||
# tex live installation | ||
echo "Installing TexLive to allow PDf export from Notebooks" | ||
curl -L https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz -o install-tl-unx.tar.gz | ||
zcat < install-tl-unx.tar.gz | tar xf - | ||
cd install-tl-2* | ||
perl ./install-tl --no-interaction --scheme=scheme-small --texdir=/usr/local/texlive | ||
cd /usr/local/texlive/bin/x86_64-linux | ||
./tlmgr install tcolorbox pdfcol adjustbox titling enumitem soul ucs collection-fontsrecommended | ||
|
||
# pandoc installation | ||
curl -L https://github.com/jgm/pandoc/releases/download/3.6.4/pandoc-3.6.4-linux-amd64.tar.gz -o /tmp/pandoc.tar.gz | ||
mkdir -p /usr/local/pandoc | ||
tar xvzf /tmp/pandoc.tar.gz --strip-components 1 -C /usr/local/pandoc/ | ||
rm -f /tmp/pandoc.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# https://github.com/opendatahub-io-contrib/workbench-images/blob/main/snippets/ides/1-jupyter/files/etc/jupyter_notebook_config.py | ||
c = get_config() | ||
jesuino marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Disable unsupported exporters | ||
c.WebPDFExporter.enabled = False | ||
c.QtPDFExporter.enabled = False | ||
c.QtPNGExporter.enabled = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.