Skip to content

Fix problem with multidim Table repr in Jupyter introduced in #11569 - #11703

Merged
saimn merged 1 commit into
astropy:mainfrom
taldcroft:table-fix-jupyter-repr
May 6, 2021
Merged

saimn merged 1 commit into
astropy:mainfrom
taldcroft:table-fix-jupyter-repr

Conversation

@taldcroft

Copy link
Copy Markdown
Member

Description

This pull request is to fix a problem with multidim Table repr in Jupyter introduced in #11569.

This is a one-line change that reverts strict checking of the latex io.ascii writer regarding support for outputting multidimensional columns. This is therefore going back to the 4.2 behavior where writing a multidim column to latex uses the val1 .. valN representation. This is not strictly correct since it won't round-trip, but better to have this legacy behavior than have Jupyter fail to display such tables.

Functional testing

Fixes #11695

cc: @keflavich @saimn

@taldcroft taldcroft added table io.ascii Bug Affects-dev PRs and issues that do not impact an existing Astropy release no-changelog-entry-needed labels May 5, 2021
@taldcroft taldcroft added this to the v4.3 milestone May 5, 2021
@taldcroft
taldcroft requested a review from saimn May 5, 2021 19:46
@github-actions github-actions Bot removed the table label May 5, 2021
@taldcroft

Copy link
Copy Markdown
Member Author

@eteq - this seems like a critical bug fix and should go into 4.3.

@pllim pllim added the 🔥 Critical label May 5, 2021
@pllim
pllim requested a review from keflavich May 5, 2021 21:59

@keflavich keflavich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but I don't know much about notebooks under the hood either

@saimn saimn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix. It seems better anyway that _repr_latex_ doesn't crash with multidimensional columns.

@saimn
saimn merged commit 5b09f9d into astropy:main May 6, 2021
@taldcroft

Copy link
Copy Markdown
Member Author

It seems better anyway that repr_latex doesn't crash with multidimensional columns.

I agree since latex is not really a format that one would use to round-trip data. Based on that we should leave this in despite backing out the root problem in #11711.

@pllim

pllim commented May 6, 2021

Copy link
Copy Markdown
Member

Does this need a revert too?

@taldcroft

Copy link
Copy Markdown
Member Author

I think not.

eteq pushed a commit that referenced this pull request Jun 11, 2021
Fix problem with multidim Table repr in Jupyter introduced in #11569
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Affects-dev PRs and issues that do not impact an existing Astropy release Bug 🔥 Critical io.ascii no-changelog-entry-needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Array columns error in Jupyter notebook and lab

4 participants