Last active
January 18, 2024 13:29
-
-
Save shadaj/323ad2393b46c1b71df435728a052c24 to your computer and use it in GitHub Desktop.
Install Scala in Colab.ipynb
It seems to be working if you start from your notebook. But when I worked on it locally, I cannot select a new kernel anymore.
From: Shadaj Laddad <notifications@github.com>
Sent: zaterdag 28 november 2020 21:05
To: shadaj <shadaj@noreply.github.com>
Cc: Miel Hostens <miel.hostens@bovicom.be>; Comment <comment@noreply.github.com>
Subject: Re: shadaj/install-scala-in-colab.ipynb
@shadaj commented on this gist.
…________________________________
Hmm, this is surprising. I just used the same initialization code for a couple other notebooks in the past week and it seemed to work fine. Perhaps the notebook needs to be set to the Scala kernel like in https://gist.github.com/shadaj/29d77180aeefc41a749273026f7d1fd9 to work?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://gist.github.com/323ad2393b46c1b71df435728a052c24#gistcomment-3543283>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC3IRIL5BA5PYIUPVR2JII3SSFJWZANCNFSM4M22NZKA>.
This is so disappointing. I can whip together and train a deep learning model in Python / keras in a matter of minutes, but I can't find anything comparable for Scala :-(
There is actually an important prerequisite to assure before you follow steps given by @shadaj: If you open a notebook with a text editor and compare the raw contents of a regular Notebook with that of a Shadaj's notebook, you'll see one crucial difference that you need to fix. So,
- You need to open your Colab Notebook with a text editor (use any of the relevant Google Drive apps) and make sure the
kernelspec.name
key is set to work with Scala, like so:
{
⋮
"kernelspec": {
"display_name": "Scala",
"name": "scala"
}
⋮
}
(This is a necessary step for any non-pythonic kernel — be it Scala, Go or whatnot. Check my notebooks for examples: https://gist.github.com/kirisakow)
-
Save, close.
-
Now open normally with Google Colab engine and start working.
I edited the colab and set the kernel spec, saved and closed.
When reopened the colab normally, I get "unrecognized runtime scala
substituting default Python 3"
…On Mon, Feb 27, 2023 at 1:16 PM Kiril Isakov ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
There is actually an important prerequisite to assure before you follow
steps given by @shadaj <https://github.com/shadaj>: If you open a
notebook with a text editor and compare the raw contents of a regular
Notebook with that of a Shadaj's notebook, you'll see one crucial
difference that you need to fix. So,
1. You need to open your Colab Notebook *with a text editor* (use any
of the relevant Google Drive apps) and make sure the kernelspec.name
key is set to work with Scala, like so:
{
⋮
"kernelspec": {
"display_name": "Scala",
"name": "scala"
}
⋮
}
1. Save, close. (This is a necessary step for any non-pythonic kernel
— be it Scala, Go or whatnot. Check my notebooks for examples:
https://gist.github.com/kirisakow)
2. Now open normally with Google Colab engine and start working.
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/323ad2393b46c1b71df435728a052c24#gistcomment-4486059>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJYHZFK7TF2UHKVS4FDFHIDWZT4Q3BFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA4TKMBZGIZDSONHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
@Platinum-Dragon Just follow the steps in one of these colabs of mine:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, this is surprising. I just used the same initialization code for a couple other notebooks in the past week and it seemed to work fine. Perhaps the notebook needs to be set to the Scala kernel like in https://gist.github.com/shadaj/29d77180aeefc41a749273026f7d1fd9 to work?