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

Python: Use IPython-like input prompts e.g In [1] #1970

Open
seeM opened this issue Dec 20, 2023 · 2 comments
Open

Python: Use IPython-like input prompts e.g In [1] #1970

seeM opened this issue Dec 20, 2023 · 2 comments
Milestone

Comments

@seeM
Copy link
Contributor

seeM commented Dec 20, 2023

We currently use input prompts like ordinary Python REPLs e.g. >>>.

IPython instead uses input prompts like In [1]. We might want to follow that convention for a few reasons:

  1. Some magic commands refer to cell numbers, which are currently hard to identify in Positron (via @isabelizimm)
  2. Stack traces may refer to cell numbers e.g. Cell In[1], line 1 (via @isabelizimm)
  3. We get to be more consistent with IPython

This is more of a nice-to-have so probably not very high priority for now.

IPython also labels outputs like Out [1] but there's far less value in us following that if we already label inputs.

@seeM seeM added this to the Public Beta milestone Dec 20, 2023
@juliasilge juliasilge modified the milestones: Old Beta Milestone, Future Feb 15, 2024
@juliasilge juliasilge removed the future label Mar 4, 2024
@ntluong95
Copy link

That makes sense as I was confused between Python REPLs and IPython

@ntluong95
Copy link

Also see this thread #3802 for more inspiration for the console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants