Racket Jupyter/nextJournal

64 views
Skip to first unread message

tbrooke

unread,
Aug 14, 2019, 8:57:52 AM8/14/19
to Racket Users
There has been some discussion about Racket on Jupyter. nextJournal is a fairly new project for hosted notebooks that is written in Clojure and has support for Clojure as well as several other languages. In addition to Clojure they have templates for Julia,  Haskell, and Scala and they support Bash which should allow for installation of almost anything including Racket. They do have a free level and some paid levels. 

I have no relationship with them other than asking about Racket support  and Martin with nextJournal has been helping me. He is apparently stuck and asked if I knew of someone that could help. Here is a link to what he has done so far: https://nextjournal.com/nextjournal/racket-environment

Can anyone help with this ?


Ryan Culpepper

unread,
Aug 14, 2019, 9:39:18 AM8/14/19
to tbrooke, Racket Users
The "jupyter run" command seems to just send the entire contents of the
file to the kernel to evaluate. Not just the code parts, the entire JSON
document. So the Racket kernel reads the JSON document as an
S-expression (!), tries to evaluate it, and errors because of a comma
(unquote in Racket) outside of quasiquote.

(Wow.)

I've found other people having similar problems:


https://stackoverflow.com/questions/56039870/how-to-use-jupyter-run-to-call-a-jupyter-notebook-on-local
(and other question linked from comment)

On the other hand, the docs for "jupyter-run", such as I've found, seem
to suggest that you're supposed to be able to run them on notebooks, not
plain source files.

https://pythonhosted.org/jupyter_runner/

So I'm confused.

In any case, to test whether the Racket kernel is working, I would
suggest either "jupyter notebook
/PATH/TO/iracket/examples/getting-started.ipynb" or "jupyter console
--kernel=racket" and try evaluating some things interactively.

Ryan

tbrooke

unread,
Aug 18, 2019, 6:31:57 PM8/18/19
to Racket Users
Good News from nextJournal

Good news, turns it Racket actually does work: https://nextjournal.com/nextjournal/racket-template

Remix this to try it.

We're still rolling out a change later today that will include the Racket Environment in our set of default images which means that you won't have to wait for it to download anymore. Will let you know once that's done and then it would be great to announce it somewhere and ask for people to test it. Would this be appropriate on the mailing list or somewhere else?

Best,
Martin

Stephen De Gabrielle

unread,
Aug 19, 2019, 11:23:12 AM8/19/19
to tbrooke, Racket Users

--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/7dbf6de9-6fa3-4a9f-a450-ca22c65836b5%40googlegroups.com.

Stephen De Gabrielle

unread,
Aug 19, 2019, 11:26:28 AM8/19/19
to tbrooke, Racket Users
better, but still terrible location


'in the cloud'? what is wrong with me? 

S.

Reply all
Reply to author
Forward
0 new messages