Last active
January 18, 2024 13:29
-
-
Save shadaj/323ad2393b46c1b71df435728a052c24 to your computer and use it in GitHub Desktop.
Install Scala in Colab.ipynb
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
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,
kernelspec.name
key is set to work with Scala, like so:(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.