help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interactive input using guix-jupyter-kernel


From: Ludovic Courtès
Subject: Re: interactive input using guix-jupyter-kernel
Date: Fri, 24 Jul 2020 18:51:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hi David,

david larsson <david.larsson@selfhosted.xyz> 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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]