Skip to content

Save temp file next to notebook for WebPDF export #2220

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shreve
Copy link
Contributor

@shreve shreve commented Jun 4, 2025

By putting the HTML file in the same location as the notebook, any
relative file paths correctly resolve. This change saves us from needing
to convert relative paths to absolute.

This slightly changes behavior by creating the temp file in the user's
working directory. We already make sure we delete this temp file, and by
adding the ".webpdf-" prefix to make it hidden, less-technical users
should never see this file at all.

By putting the HTML file in the same location as the notebook, any
relative file paths correctly resolve. This change saves us from needing
to convert relative paths to absolute.

This slightly changes behavior by creating the temp file in the user's
working directory. We already make sure we delete this temp file, and by
adding the ".webpdf-" prefix to make it hidden, less-technical users
should never see this file at all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant