Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] no longer persist output scroll, collapse state in metadata #2543

Open
wants to merge 1 commit into
base: 6.4.x
Choose a base branch
from

Conversation

minrk
Copy link
Member

@minrk minrk commented Jun 2, 2017

make these purely runtime state

Marked WIP pending discussion /cc @ellisonbg @fperez

@takluyver takluyver added this to the 5.1 milestone Jun 2, 2017
@ellisonbg
Copy link
Contributor

ellisonbg commented Jun 5, 2017 via email

@takluyver
Copy link
Member

What happened with that discussion?

@ellisonbg
Copy link
Contributor

The PR that @rgbkrk opened is here:

jupyter/nbformat#94

That PR doesn't change the existing "collapsed" or "scrolled" metadata, but does add two new metadata fields. We are still finalizing that PR. Once that is done, we would follow up with a separate nbformat PR to deal with the "collapsed" or "scrolled" metadata.

@rgbkrk
Copy link
Member

rgbkrk commented Jun 21, 2017

Certainly a cleanup from before.

@takluyver
Copy link
Member

Are we still aiming to get this into notebook 5.1, or does it depend on PRs in other repos?

@minrk minrk modified the milestones: Backlog, 5.1 Jul 11, 2017
@gnestor
Copy link
Contributor

gnestor commented Jul 25, 2017

@minrk I'm pushing to release notebook 5.1 this week, so last chance to squeeze this in!! Let me know if I can help...

@tritemio
Copy link
Contributor

It would be nice to have this in the next release. This metadata saved in the notebook is causing quite a bit of annoying overhead to me.

@minrk
Copy link
Member Author

minrk commented Jul 31, 2017

@tritemio I think the most annoying part of this is fixed by #1865, which fixed a bug where we were writing even the default values of this metadata. That shouldn't be happening anymore, so if you aren't manually collapsing and scrolling cells, then this PR shouldn't change anything from 5.0.

I do think this is largely unrelated to the discussion on nbformat. This PR is a question of whether we should be persisting this UI state, which is not the same as what's discussed in the schema PR. i.e. are these flags ephemeral UI state or are they persistent properties of the notebook.

All of the discussion around persistent properties of notebooks involve proposing entirely new keys with new meanings that aren't these two, so any changes here are not really related to those under discussion elsewhere.

@tritemio
Copy link
Contributor

@minrk thanks for the clarification, so maybe this is the wrong issue but I still get the collapsed metadata every time I execute the notebook through nbconvert. Luckly I found that I can easily get rid of it through nbstripout.

@Zsailer Zsailer changed the base branch from main to 6.4.x March 7, 2022 18:16
@echarles echarles modified the milestones: Backlog, 6.4 Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants