posit-dev / posit-dev/positron
Embedded videos via html magic command cannot be played in Positron's Notebook cells
Open
Nobody has claimed this yet.
area: notebooks-jupyter
theme: new notebook frontend
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 183
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
System details:
Positron and OS details:
Positron Version: 2025.09.0 build 36
Code - OSS Version: 1.102.0
Commit: 86dc431391d9328549da3af92aaaf7b53151bdde
Date: 2025-08-08T03:42:34.934Z
Electron: 35.6.0
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 24.5.0
Session details:
R 4.5.0 and Python 3.13.0
Describe the issue:
Embedded videos cannot be played in Notebook cells
Steps to reproduce the issue:
- In a notebook, run the following magic command script within a cell.
%%html
<iframe width="360" height="640", src="https://www.youtube.com/embed/mGoI0_5Xe8U"></iframe>
- Notice that youtube video does NOT get embedded properly, as shown below.
Expected or desired behavior:
In Jupyter Notebooks, video gets embedded correctly and can be played, as shown below.
Contributor guide
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.
Research direction
Reproduce the issue by running the %%html magic command with the YouTube iframe in a Positron notebook cell. Start by tracing how HTML output from notebook cells is rendered, then compare it with the expected Jupyter behavior. Done means the embedded video appears in the cell and can be played.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100