How to find and work with b1021ab (common-lisp-jupyter)

16 views
Skip to first unread message

KWC Coin

unread,
Mar 29, 2022, 9:57:33 AM3/29/22
to Common Lisp Statistics
"The notebooks are implemented using a third-party library, common-lisp-jupyter and are known to work with revision b1021ab" (see https://lisp-stat.dev/docs/examples/notebooks/

I have finished to install everthing of common-lisp-jupyter.  (surprise but guess everyone assume to know that you have to do this first
```
(ql:quickload :common-lisp-jupyter) ; <---
(cl-jupyter:install)                                 ; <---
```

The problem now seems to be that the kernel is kept on disconnected; even on basic lisp command.  Hence I think the above message about the software version issue might be the key here. 

But what is revision b1021ab, how to find and how to install it.  Please help

------------------

My intent is to finish the IPS workbook as I convert some of the Rmd to jupyter-lab to run and hence it would be interesting to just re-do the thing until I feel confidence with the stat part of the lisp-stat before I tried my hand on the canvas part then the simulation part.



KWC Coin

unread,
Mar 29, 2022, 2:16:19 PM3/29/22
to Common Lisp Statistics
I find that I can run lisp if I run miniconda, and all installation is ok
runButISPNotFound.jpg
but somehow I cannot find the ips package

```

* (ql:system-apropos "ips")

#<SYSTEM lorem-ipsum / lorem-ipsum-20181018-git / quicklisp 2022-02-20>

```

Is this a local package that


KWC Coin

unread,
Mar 29, 2022, 2:30:08 PM3/29/22
to Common Lisp Statistics
getting a bit closer as there are more details that are requierd (like import to local project)


Want to close the case but

```
Read error between positions 588 and 678 in /Users/ngcchk/quicklisp/local-projects/IPS/init.lisp.NO-SUCH-PACKAGE: There is no package named "CL-SEMVER" .
0: (CCL::DEFAULT-INITARGS #<STANDARD-CLASS ENVIRONMENT> (#<TAGGED-RETURN-ADDRESS in function (:INTERNAL DISSECT:PRESENT) (+181) #x302001222834> . 0)) 
```



On Tuesday, March 29, 2022 at 2:57:33 PM UTC+1 KWC Coin wrote:

KWC Coin

unread,
Mar 29, 2022, 2:40:48 PM3/29/22
to Common Lisp Statistics
Missing one detail:

(ql:quickload :cl-semver)

And the command does not work but I guess it is not a system issue:

(define-data-frame scf (read-csv (dex:get ips:eg01-11 :want-stream t)))

```
UNBOUND-VARIABLE: Unbound variable: SCF 

0: (CCL::DEFAULT-INITARGS #<STANDARD-CLASS ENVIRONMENT> (#<TAGGED-RETURN-ADDRESS in function (:INTERNAL DISSECT:PRESENT) (+181) #x302001222834> . 0)) 1: (CCL::%MAKE-STD-INSTANCE #<STANDARD-CLASS ENVIRONMENT> (#<TAGGED-RETURN-ADDRESS in function (:INTERNAL DISSEC
...
```
All cases closed on system level I supposed.

KWC Coin

unread,
Mar 29, 2022, 3:31:16 PM3/29/22
to Common Lisp Statistics
My last positng disappear it seemed:

If you look careful on the posted tutorial, a few command result in error (but ok for pdf etc. but not if you run it).  In particular,

(defdf scfdata (read-csv (dex:get ips:eg01-11 :want-stream t))) ; not define-data-frame and scf is a pacakge

and

(pprint-data-frame scfdata) ; print-df

Both seemed not to work unless you amend the command as above.

The leaf and stem somehow not working; first let us explore what is in the data (using select):

(sort (select scfdata (range 23 nil) 'scfdata:absorption) #'<)
#(31 35 42 43 43 43 44 44 45 47 48 49 50 50 53 53 54 59 61 62 70 73 76)

(select scfdata (range 0 26) 'scfdata:absorption)
#(42 33 41 49 42 47 48 47 53 72 47 63 68 59 35 46 43 55 38 49 51 51 66 50 43 43)

I am not sure but somehow my miniconda seems to use CCL not SBCL as I want it to be.  Hence, it might be an issue of CCL not this system:

(stem-and-leaf (select scfdata (range 23 nil) 'scfdata:absorption)) ;arrays are 0 based, so we start at 23
TYPE-ERROR: The value #(6 10) is not of the expected type CCL::SIMPLE-UNSIGNED-DOUBLEWORD-VECTOR.
0: (CCL::DEFAULT-INITARGS #<STANDARD-CLASS ENVIRONMENT> (#<TAGGED-RETURN-ADDRESS in function (:INTERNAL DISSECT:PRESENT) (+181) #x302001223EE4> . 15393185597677)) 1
...

Case closed really

Steve Nunez

unread,
Mar 29, 2022, 9:31:02 PM3/29/22
to lisp...@googlegroups.com

The IPS package is on github. I haven’t requested it to be added to Quicklisp yet because it’s not complete. ‘git clone …’ into ~/common-lisp/ directory should do the trick.

 

From: lisp...@googlegroups.com <lisp...@googlegroups.com> On Behalf Of KWC Coin
Sent: Wednesday, 30 March 2022 02:16
To: Common Lisp Statistics <lisp...@googlegroups.com>
Subject: [lisp-stat] Re: How to find and work with b1021ab (common-lisp-jupyter)

 

I find that I can run lisp if I run miniconda, and all installation is ok

--
You received this message because you are subscribed to the Google Groups "Common Lisp Statistics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-stat+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lisp-stat/159cad11-a8d7-45c1-9e22-43a81bea45b3n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages