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
F18672812: D21434.id.diff
Thu, Sep 25, 8:18 AM
F18672753: D21434.id51005.diff
Thu, Sep 25, 8:09 AM
F18672750: D21434.id51004.diff
Thu, Sep 25, 8:09 AM
F18672746: D21434.diff
Thu, Sep 25, 8:09 AM
F18653965: D21434.id51005.diff
Sun, Sep 21, 11:03 PM
F18616879: D21434.id.diff
Sep 14 2025, 7:20 PM
F18608990: D21434.diff
Sep 14 2025, 2:19 AM
F18571182: D21434.id51005.diff
Sep 10 2025, 4:48 AM
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.