Enable nb_scroll_outputs from latest myst-nb#116
Conversation
|
Wow, great, I like seeing the repurposed usage of the repo 😄 |
|
@bsipocz since I will be making changes there and want to test it in our build here:
|
|
|
ahh, yes, and I use firefox, and normally don't use dark mode and otherwise trying to remember to stay away from webdev as it's such a bottomless rabbit hole :) [edit: red herring, I was looking at it from my old laptop, it looks OK with newer versions. Even more reasons to stay away from browser work, and also to remember not to do work from that one] |
Yes, those were the weird ones. However, I can imagine of plotting a humungously big image, and for that we may still want a scroller? I don't know, I suppose one can get used to either approach. Or, bold idea and way beyond the scope of your current PR, could have something on the left to collaps/expand in/out from the scroller, like we have inside jupyter? I really have no idea how involved it is to add such a UI element. |
Hmm I think I can hack some CSS for this that allows images to take full height but not beyond viewport height.
Yes, I so wanted to make this all along, but it's more work because CSS alone can't do it. I'll need to write some JS component that can handle this. I'm saving this for later (as you rightly said "webdev is a bottomless rabbit hole") if our users complaint much about scroll behavior. |
I wonder if that could be pulled out from jupyter itself? Not sure which repo that code lives in, but that is a totally relevant question for the mystmd team which has a convenient overlap with jupyter, too as hopefully they will also have some similar scroller config option. |
46b81a4 to
8c10376
Compare
Enable nb_scroll_outputs from latest myst-nb eb82efa



This PR is just a test forscroll_outputsfunctionality upcoming from upstream in executablebooks/MyST-NB#683Fixes #69
Test if the generated webpages have long outputs scrollable (bonus: also test dark mode style fixes that will come soon).