vatlab / sos-notebook

Multi-language Jupyter Notebook
http://vatlab.github.io/SoS
BSD 3-Clause "New" or "Revised" License
176 stars 17 forks source link

get password give an error #340

Closed Volland closed 1 year ago

Volland commented 2 years ago

Cell input for python3 kernel

import getpass
password=getpass.getpass()

Output

---------------------------------------------------------------------------
StdinNotImplementedError                  Traceback (most recent call last)
<ipython-input-3-0a8b48fb7572> in <module>
----> 1 password=getpass.getpass()

/opt/conda/lib/python3.8/site-packages/ipykernel/kernelbase.py in getpass(self, prompt, stream)
    834         """
    835         if not self._allow_stdin:
--> 836             raise StdinNotImplementedError(
    837                 "getpass was called, but this frontend does not support input requests."
    838             )

StdinNotImplementedError: getpass was called, but this frontend does not support input requests.
BoPeng commented 2 years ago

This is a known issue. sos-notebook was not designed for a workflow where interactive user input is needed. It may not be very difficult to support it though.

BoPeng commented 2 years ago

But this should work for jupyterlab-sos, which is actually the preferred frontend for sos. Is there any reason why you have to use the classic jupyter notebook?

Volland commented 2 years ago

I used recommended docker setup

docker run -d -p 8888:8888 -v $HOME:/home/jovyan/work vatlab/sos-notebook
BoPeng commented 2 years ago

I just updated the docker image to use the latest version of jupyterlab and jupyterlab-sos. Could you please test it? The command would be the same but the jupyterlab instead of classic jupyter interface will be used.