setting to not show placeholder text in a stdin box (such as created by input())
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
Problem
The placeholder text that appears in the stdin box produced by using python's input() function is distracting in cases where the input() is used to gather specific input, such as in a loop that repeatedly queries the user. Knowing about keyboard shortcuts for revisiting or searching stdin history is not useful in all contexts, and will distract the user if a simple input is requested by the program. Thus, it should be easy to disable the placeholder text.
This placeholder text is mentioned in https://github.com/jupyterlab/jupyterlab/pull/13937
The placeholder text currently reads, "↑↓ for history. Search history with c-↑/c-↓"
If the program is querying for a simple input like an integer, it is rather distracting/annoying to be confronted repeatedly with the placeholder text.
The possibility to turn off the placeholder text would be very useful when the placeholder text becomes annoying
Proposed Solution
Add a setting to turn off the placeholder text. Add this setting to the documentation so that it is possible for an ordinary user to find it. Or better, user can opt-in to placeholder text if desired.
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the stdin placeholder behavior described in the issue and the linked JupyterLab pull request 13937, then locate the Notebook setting and documentation entry points involved. Done means users can disable or opt into the placeholder text and can find that option in the documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- documentation, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100