Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Trying some BG prompt things. - #15119

#15119
Draft
Carreau wants to merge 1 commit into
ipython:mainipython/ipython:mainfrom
Carreau:bgpromptCarreau/ipython:bgpromptCopy head branch name to clipboard
Draft

Trying some BG prompt things.#15119
Carreau wants to merge 1 commit into
ipython:mainipython/ipython:mainfrom
Carreau:bgpromptCarreau/ipython:bgpromptCopy head branch name to clipboard

Conversation

@Carreau

@Carreau Carreau commented Feb 2, 2026

Copy link
Copy Markdown
Member

No description provided.

Comment thread IPython/terminal/interactiveshell.py Outdated
Comment thread IPython/terminal/interactiveshell.py Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change

Comment on lines +990 to 994
return self.pt_app.prompt(
default=default,
inputhook=self._inputhook,
**self._extra_prompt_options(),
)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We have to be careful to not run this in the asyncio loop.

This is an attempt to fix Quansight/deshaw#53

You can enable it with

```
$ ipython --TerminalInteractiveShell.background_prompt=True
```

It is likely full of edge cases and is considered experimental
@Carreau

Carreau commented Apr 27, 2026

Copy link
Copy Markdown
Member Author

Ok, some rebase and cleanup to make it work on main.

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.