Jupyter in cocalc

100 views
Skip to first unread message

David Guichard

unread,
Feb 17, 2018, 4:15:18 PM2/17/18
to sage-cloud
I have successfully installed and used the docker container for cocalc; I've used sage worksheets, latex documents, and the terminal. I just tried experimenting with Jupyter, and no matter what command I try to execute, I get the message "Error: No spec available for python3". Does the docker version do Jupyter? Can I fix this?

Thanks,
David

David Guichard

unread,
Feb 17, 2018, 4:25:37 PM2/17/18
to sage-cloud
After a little poking around, I pulled down the kernel menu and chose Python 2, and now I can execute code. The menu doesn't list Python 3--can I add that?

David Guichard

unread,
Feb 17, 2018, 4:32:52 PM2/17/18
to sage-cloud
And...now I have found https://github.com/sagemathinc/cocalc-docker/issues/8 that sort of addresses this and is marked open. So does this mean python 3 can't be added (yet)?

Dima Pasechnik

unread,
Feb 17, 2018, 5:23:21 PM2/17/18
to sage-cloud


On Saturday, February 17, 2018 at 9:32:52 PM UTC, David Guichard wrote:
And...now I have found https://github.com/sagemathinc/cocalc-docker/issues/8 that sort of addresses this and is marked open. So does this mean python 3 can't be added (yet)?

Sagemath hasn't been completely ported to Python 3 yet. As to other flavours of Python 3, it should be possible - after all cocalc web does Python 3 (plain Ubuntu as well as Anaconda)

William Stein

unread,
Feb 17, 2018, 5:47:50 PM2/17/18
to sage-cloud, Gonzalo Tornaria
On Sat, Feb 17, 2018 at 2:23 PM, Dima Pasechnik <dim...@gmail.com> wrote:
>
>
> On Saturday, February 17, 2018 at 9:32:52 PM UTC, David Guichard wrote:
>>
>> And...now I have found
>> https://github.com/sagemathinc/cocalc-docker/issues/8 that sort of addresses
>> this and is marked open. So does this mean python 3 can't be added (yet)?

It could definitely be added. The problem is just that nobody has
worked at all on the CoCalc Docker image in a long time. I did most
work on it, and Gonzao Tornaria did some at a Sage Days once. I have
had to 100% prioritize ensuring the CoCalc (the commercial product)
grows for now. I would very much welcome other people working on
the docker image -- PR's welcome! Note that if you take the latest
version of CoCalc and try to build the new Docker image, it doesn't
really work right now, unfortunately.

If you open a terminal in any cocalc project and type " jupyter
kernelspec list" you'll find the kernels we have there, which may be
helpful.

The notes here might also be useful:
https://github.com/sagemathinc/cocalc/wiki/CustomerJupyterKernel

>
> Sagemath hasn't been completely ported to Python 3 yet. As to other flavours
> of Python 3, it should be possible - after all cocalc web does Python 3
> (plain Ubuntu as well as Anaconda)

Dima, I think David isn't trying to use Sage per se -- he's trying to
use the CoCalc
Docker image and select the Python 3 Jupyter kernel...

William Stein

unread,
Feb 18, 2018, 1:43:50 AM2/18/18
to sage-cloud

---------- Forwarded message ---------
From: Gonzalo Tornaria <torn...@gmail.com>
Date: Sat, Feb 17, 2018 at 4:22 PM
Subject: Re: [sage-cloud] Re: Jupyter in cocalc
To: William Stein <wst...@sagemath.com>
CC: sage-cloud <sage-...@googlegroups.com>


I did some work about 6 months ago, mainly to add a julia kernel, and
also to integrate with letsencrypt certificates.

This I installed 6 months ago in a server for my students, and it's
been working ok. I have not tried to update cocalc or try it with a
recent version of cocalc.

When building the docker image, it fetches the cocalc repo at the
current HEAD, so it may not work.

In case it helps, the exact commit of cocalc that I used to build my
cocalc-docker image is:

72e686a8fa169101bc2a37d0edf0c3980a142d43

I think if one uses commit=72e686a8fa169101bc2a37d0edf0c3980a142d43 as
a build argument to docker, it might work.

Regarding adding kernels: you can see what I did to add julia and
ijulia to the docker image in the julia branch, particularly this
commit:

https://github.com/sagemathinc/cocalc-docker/commit/a97956009d834effed1270d07635524213bd650c

Hope this helps.

Best,
Gonzalo
--

Best Regards,
William Stein

CEO, SageMath, Inc.
Reply all
Reply to author
Forward
0 new messages