Hi David, david larsson <[email protected]> skribis:
> How can I ask for password input and get a password prompt in the > notebook if I use the guix kernel in jupyter? > > ;;guix environment python-env <- python-ipython python-ipykernel > import getpass > password = getpass.getpass() > > using a regular python kernel this works fine but not with guix kernel. Oh, it may be a bug in Guix-Jupyter. I confirm I can reproduce the issue; I get: --8<---------------cut here---------------start------------->8--- guix[11012]: evaluating code in environment "python-env" (PID 11126) guix[11012]: forwarding "status" from 11126, socket #<procedure %kernel-iosub-procedure (s)> to "3163313661666238316638303430643538306265613536353333636162366133" guix[11012]: forwarding "execute_input" from 11126, socket #<procedure %kernel-iosub-procedure (s)> to "3163313661666238316638303430643538306265613536353333636162366133" --8<---------------cut here---------------end--------------->8--- and then apparently the Python kernel never replies. Looking at: https://gitlab.inria.fr/guix-hpc/guix-kernel/-/blob/master/jupyter/messages.scm I think the problem is just that ‘input_request’ messages aren’t implemented: https://jupyter-client.readthedocs.io/en/latest/messaging.html#messages-on-the-stdin-router-dealer-channel I’m not sure I’ll look into it before I go on vacation, but you’re welcome to give it a try! Ludo’.
