PDF embedding fails in molab
Maintainers usually reply within 1 day
@Light2Dark is already working on this.
Since Sep 1, 2026.
Assessment
This issue has not been assessed yet.
Description
Describe the issue
Hi all,
I'm trying to embed a pdf inside a molab notebook via mo.pdf, however the output of the cell gives a "this page has been blocked by Chrome" error.
It appears that what's happening is the following: an iframe in the output block attempts to fetch from https://sb-f21866dca267bb72.sb.molab.run/@file/13264-567-dM6l3WOG.pdf. If I paste that into my browser in a new tab, I successfully view the pdf. However, it appears that the content-security-policy for that request is set to
frame-ancestors https://*.marimo.io, which is inconsistent with the molab.run domain for molab; I'd hypothesize that this is causing the issue.
Notebook URL (optional)
https://molab.marimo.io/notebooks/nb_CLSew1TnoNymyMEfLdtBUh
marimo version (optional)
0.24.0
Issue category
Notebook editor
Steps to reproduce
Upload a pdf through the file browser and attempt to view it through mo.pdf(Path("file/path"))
Expected behavior
The pdf to be viewable in the output window
Browser (optional)
Chrome 152.0.7977.64
- Dominant language
- Python
- Stars
- 22.9k
- Forks
- 1.3k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 380
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from marimo-team/marimo
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
marimo-team/marimo#12027 ·
Maintainers usually reply within 1 day
-
"Clamp all outputs" leaves cells without output marked `expand_output: true`Possibly taken @marthacryan claimed this 12 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
marimo-team/marimo#11768 · 1 assignee ·
Maintainers usually reply within 1 day
-
Cell referencing a variable from a "cancelled" cell runs and raises NameError instead of being blockedMay be free again @dmadisetti claimed this 33 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
marimo-team/marimo#11307 · 1 assignee ·
Maintainers usually reply within 1 day
-
molab
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
marimo-team/marimo#11298 · 1 comment ·
Maintainers usually reply within 1 day
-
Theme change does not affect terminal colorsMay be free again @CloudCorpRecords claimed this 36 days ago, and no pull request is open. Openneeds discussion
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
marimo-team/marimo#11244 · 4 comments ·
Maintainers usually reply within 1 day
All issues in marimo-team/marimo
Similar issues
-
run_gate loads a custom tasks file from outside the working directoryPossibly taken @Ru0k3 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MakazhanAlpamys/Soup#3189 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
nautechsystems/nautilus_trader#5741 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
huggingface/datasets#9128 ·
Maintainers usually reply within 1 day