X-Loop: help-debbugs@HIDDEN Subject: bug#46333: sbcl-common-lisp-jupyter does not install kernel.json Resent-From: Jack Hill <jackhill@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Fri, 05 Feb 2021 19:45:01 +0000 Resent-Message-ID: <handler.46333.B.161255425418271 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 46333 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46333 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.161255425418271 (code B ref -1); Fri, 05 Feb 2021 19:45:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Feb 2021 19:44:14 +0000 Received: from localhost ([127.0.0.1]:44674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1l871a-0004kd-0b for submit <at> debbugs.gnu.org; Fri, 05 Feb 2021 14:44:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:57894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jackhill@HIDDEN>) id 1l871Z-0004kW-Eo for submit <at> debbugs.gnu.org; Fri, 05 Feb 2021 14:44:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jackhill@HIDDEN>) id 1l871Z-0004kk-76 for bug-guix@HIDDEN; Fri, 05 Feb 2021 14:44:13 -0500 Received: from minsky.hcoop.net ([104.248.1.95]:47382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jackhill@HIDDEN>) id 1l871X-00070t-Ao for bug-guix@HIDDEN; Fri, 05 Feb 2021 14:44:12 -0500 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <jackhill@HIDDEN>) id 1l871V-0000ia-8E for bug-guix@HIDDEN; Fri, 05 Feb 2021 14:44:09 -0500 Date: Fri, 5 Feb 2021 14:44:08 -0500 (EST) From: Jack Hill <jackhill@HIDDEN> X-X-Sender: jackhill@HIDDEN Message-ID: <alpine.DEB.2.21.2102051236250.11419@HIDDEN> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="925712948-703139927-1612554249=:11419" Received-SPF: pass client-ip=104.248.1.95; envelope-from=jackhill@HIDDEN; helo=minsky.hcoop.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --925712948-703139927-1612554249=:11419 Content-Type: text/plain; format=flowed; charset=UTF-8 Content-Transfer-Encoding: 8BIT Hi Guix, The sbcl-common-lisp-jupyter package does not install a kernel.json file. That's the file that tells Jupyter about the kernel and how to run it, and should be installed in /share/jupyter/kernels/<kernel-name>/kernel.json. sbcl-common-lisp-jupyter doesn't come with a kernel.json file to install, but it can generate one with the following command line: `sbcl --eval '(require "asdf")' --eval '(require :common-lisp-jupyter)' --eval '(cl-jupyter:install)' --eval '(exit)'` (please pardon any awkwardness with the sbcl command line, I'm new to Common Lisp, and just wanted to play around with it in Jupyter) That produces the following kernel.json in $HOME/.local/… (I've pretty printed it for clarity here: ``` { "interrupt_method": "message", "language": "common-lisp", "display_name": "Common Lisp", "argv": [ "sbcl", "--eval", "(ql:quickload :common-lisp-jupyter)", "--eval", "(jupyter:run-kernel 'common-lisp-jupyter:kernel #\"{connection_file}\")" ] } ``` Unfortunately that won't work out of the box, as we don't have quicklisp, but changing it to: ``` { "interrupt_method": "message", "language": "common-lisp", "display_name": "Common Lisp", "argv": [ "sbcl", "--eval", "(require \"asdf\")", "--eval", "(require :common-lisp-jupyter)", "--eval", "(jupyter:run-kernel 'common-lisp-jupyter:kernel #\"{connection_file}\")" ] } ``` allows Jupyter to run the kernel. We would of course need to also substitute the full store path for sbcl as well. Is it worth having sbcl-common-lisp-jupyter generate the kernel.json, and then make many changes to it? Perhaps it would be better to just write out the correct definition of the file from Guix. A final note is that the other Common Lisp implementation, like ecl-common-lisp-jupyter, also have this problem because they are created as transformation of the sbcl package. I'm not sure if the kernel.json is portable across the implementation or in general how to best to accomplish this change for our Common Lisp packages. Best, Jack --925712948-703139927-1612554249=:11419--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Jack Hill <jackhill@HIDDEN> Subject: bug#46333: Acknowledgement (sbcl-common-lisp-jupyter does not install kernel.json) Message-ID: <handler.46333.B.161255425418271.ack <at> debbugs.gnu.org> References: <alpine.DEB.2.21.2102051236250.11419@HIDDEN> X-Gnu-PR-Message: ack 46333 X-Gnu-PR-Package: guix Reply-To: 46333 <at> debbugs.gnu.org Date: Fri, 05 Feb 2021 19:45:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 46333 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 46333: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46333 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#46333: sbcl-common-lisp-jupyter does not install kernel.json References: <alpine.DEB.2.21.2102051236250.11419@HIDDEN> In-Reply-To: <alpine.DEB.2.21.2102051236250.11419@HIDDEN> Resent-From: Jack Hill <jackhill@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Tue, 18 May 2021 16:13:01 +0000 Resent-Message-ID: <handler.46333.B46333.162135434232285 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 46333 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Sharlatan Hellseher <sharlatanus@HIDDEN>, 46333 <at> debbugs.gnu.org Received: via spool by 46333-submit <at> debbugs.gnu.org id=B46333.162135434232285 (code B ref 46333); Tue, 18 May 2021 16:13:01 +0000 Received: (at 46333) by debbugs.gnu.org; 18 May 2021 16:12:22 +0000 Received: from localhost ([127.0.0.1]:57053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lj2KU-0008Of-KL for submit <at> debbugs.gnu.org; Tue, 18 May 2021 12:12:22 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:47060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jackhill@HIDDEN>) id 1lj2KT-0008OS-6c for 46333 <at> debbugs.gnu.org; Tue, 18 May 2021 12:12:21 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <jackhill@HIDDEN>) id 1lj2KO-0006aH-0z; Tue, 18 May 2021 12:12:16 -0400 Date: Tue, 18 May 2021 12:12:15 -0400 (EDT) From: Jack Hill <jackhill@HIDDEN> X-X-Sender: jackhill@HIDDEN Message-ID: <alpine.DEB.2.21.2105181208250.2109@HIDDEN> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Sharlatan, Thanks for your recent work updated sbcl-common-lisp-jupyter. I was wondering if you had any thoughts on the best way to install the kernel.json file [0]. The last time I looked at it, I wasn't sure what the best solution would be. Do you have any ideas? [0] https://issues.guix.gnu.org/46333 Best, Jack
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.