posit-dev / posit-dev/positron

Embedded videos via html magic command cannot be played in Positron's Notebook cells

Open
#8,917 2 comments 0 reactions 0 assignees View on GitHub

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:

  1. 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>
  1. Notice that youtube video does NOT get embedded properly, as shown below.
Image

Expected or desired behavior:

In Jupyter Notebooks, video gets embedded correctly and can be played, as shown below.

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.