numpy.org icon indicating copy to clipboard operation
numpy.org copied to clipboard

DOC: Change the position of the prompt cell for the JupyterLite REPL?

Open jtpio opened this issue 7 months ago • 6 comments

Issue with current documentation:

Currently the embeded REPL on the https://numpy.org landing page shows a REPL with the prompt cell at the bottom, which can be confusing to some users:

Image

Idea or request for content:

As a quick heads-up, JupyterLite 0.6.0 (currently in beta) will allow changing the position of the prompt cell: https://jupyterlite.readthedocs.io/en/latest/changelog.html#enhanced-repl-options

Image

Just wanted to bring this up in case folks would be interested in tweaking a couple of settings for the current REPL.

cc @agriyakhetarpal who opened a similar issue on another repo (also in case a common single deployment for scientific Python is still something to consider).

jtpio avatar May 20 '25 14:05 jtpio

Thanks for opening this, @jtpio! Ah, right, we were discussing this in the pandas repo at https://github.com/pandas-dev/pandas/pull/60758#issuecomment-2658494365 as the REPL felt a tad awkwardly sized on the webpage if its width was left unrestricted. I think it makes sense to use these new options indeed, but I'll note the REPL suffers from the splitPanel bug we discovered in https://github.com/jupyterlite/jupyterlite-sphinx/pull/290, so it would be nice if we could figure out a fix – I didn't spend a lot of time there after my initial investigation :D

Also, maybe we should discuss this in the https://github.com/numpy/numpy.org repo? 😅 If yes, it would be great if a maintainer here could transfer this issue there.

agriyakhetarpal avatar May 20 '25 14:05 agriyakhetarpal

Also, maybe we should discuss this in the https://github.com/numpy/numpy.org repo? 😅 If yes, it would be great if a maintainer here could transfer this issue there.

Ah right, happy to close and reopen there if needed, but it can be transferred that would likely be easier 👍

jtpio avatar May 20 '25 15:05 jtpio

This sounds like a good idea to me, thanks for working on this in JupyterLite!

rgommers avatar May 24 '25 06:05 rgommers

@InessaPawson I think you transferred this back to the wrong repo by mistake - it belongs on the numpy.org repo. Transferred once more.

rgommers avatar Jun 20 '25 06:06 rgommers

@rgommers Yes, of course! My apologies for this mishap. Clearly, I need to double-check before hitting that "Transfer issue" button again, especially during late-night sessions.

InessaPawson avatar Jun 21 '25 14:06 InessaPawson

Okay, I've opened a PR about this at gh-872 – purely to garner feedback, which would be welcome. PTAL at the PR description for more context. Thanks!

agriyakhetarpal avatar Jun 23 '25 16:06 agriyakhetarpal