notebook icon indicating copy to clipboard operation
notebook copied to clipboard

setting to not show placeholder text in a stdin box (such as created by input())

Open gianoddone opened this issue 1 year ago • 3 comments

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

Screenshot 2023-09-19 at 12 23 10 AM

gianoddone avatar Sep 19 '23 07:09 gianoddone

Currently working on this

gigoiy avatar Sep 25 '23 00:09 gigoiy

Hi @gigoiy, Did you make any progress? I'm also currently working on this issue and will let you know if I'm able to resolve it. Cheers, Navdeep

navdeepgill14 avatar Oct 12 '23 07:10 navdeepgill14

@navdeepgill14 I have not started this. I've been pretty busy as things came up. Feel free to resolve this issue!

gigoiy avatar Oct 12 '23 17:10 gigoiy