Page MenuHomePhabricator

In Jupyter notebooks, read strings stored in the raw as either "string" or "list<string>" more consistently
ClosedPublic

Authored by epriestley on Aug 5 2020, 7:19 PM.
Tags
None
Referenced Files
F15378766: D21434.id51005.diff
Thu, Mar 13, 4:51 PM
F15373301: D21434.id51004.diff
Wed, Mar 12, 3:19 PM
F15341260: D21434.diff
Sun, Mar 9, 7:22 PM
F15331449: D21434.diff
Fri, Mar 7, 10:24 AM
F15289155: D21434.id51004.diff
Tue, Mar 4, 9:28 PM
F15285813: D21434.id51005.diff
Tue, Mar 4, 4:09 PM
F15285009: D21434.id.diff
Tue, Mar 4, 11:18 AM
Unknown Object (File)
Feb 13 2025, 5:54 PM
Subscribers
None

Details

Summary

Ref PHI1835. Generally, Jupyter notebooks in the wild may store source and markdown content as either a single string or a list of strings.

Make the renderer read these formats more consistently. In particular, this fixes rendering of code blocks stored as a single string.

This also fixes an issue where cell labels were double-rendered in diff views.

Test Plan

Created a notebook with a code block represented on disk as a single string, rendered a diff from it.

Screen Shot 2020-08-05 at 12.18.44 PM.png (149×1 px, 48 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Aug 5 2020, 7:26 PM
This revision was automatically updated to reflect the committed changes.