From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aOjuLlygHWAvKAAA0tVLHw (envelope-from ) for ; Fri, 05 Feb 2021 19:45:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kJvvKlygHWBKIgAA1q6Kng (envelope-from ) for ; Fri, 05 Feb 2021 19:45:32 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3275B94059B for ; Fri, 5 Feb 2021 19:45:32 +0000 (UTC) Received: from localhost ([::1]:37100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l872p-0005T2-1V for larch@yhetil.org; Fri, 05 Feb 2021 14:45:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l872N-0005Qs-Cv for bug-guix@gnu.org; Fri, 05 Feb 2021 14:45:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l872M-0007RY-5T for bug-guix@gnu.org; Fri, 05 Feb 2021 14:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l872M-0004lu-2C for bug-guix@gnu.org; Fri, 05 Feb 2021 14:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46333: sbcl-common-lisp-jupyter does not install kernel.json Resent-From: Jack Hill Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 Feb 2021 19:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46333 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46333@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@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 ) id 1l871a-0004kd-0b for submit@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 ) id 1l871Z-0004kW-Eo for submit@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 ) id 1l871Z-0004kk-76 for bug-guix@gnu.org; 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 ) id 1l871X-00070t-Ao for bug-guix@gnu.org; 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 ) id 1l871V-0000ia-8E for bug-guix@gnu.org; Fri, 05 Feb 2021 14:44:09 -0500 Date: Fri, 5 Feb 2021 14:44:08 -0500 (EST) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net Message-ID: 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@jackhill.us; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 3275B94059B X-Spam-Score: -1.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: Vi3cw4P6uKJp 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.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--