From: "Ludovic Courtès" <ludo@gnu.org>
To: david larsson <david.larsson@selfhosted.xyz>
Cc: help-guix@gnu.org
Subject: Re: interactive input using guix-jupyter-kernel
Date: Fri, 24 Jul 2020 18:51:30 +0200 [thread overview]
Message-ID: <87o8o45019.fsf@gnu.org> (raw)
In-Reply-To: <1f56b5e6838753e7413e8e4ef5bca1ab@selfhosted.xyz> (david larsson's message of "Fri, 17 Jul 2020 01:27:30 +0000")
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’.
prev parent reply other threads:[~2020-07-24 16:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 1:27 interactive input using guix-jupyter-kernel david larsson
2020-07-24 16:51 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8o45019.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=david.larsson@selfhosted.xyz \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).