Skip to content

Instantly share code, notes, and snippets.

@ngoto
Last active January 23, 2024 13:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ngoto/61459a11652826416d8f3ff9360f27c2 to your computer and use it in GitHub Desktop.
Save ngoto/61459a11652826416d8f3ff9360f27c2 to your computer and use it in GitHub Desktop.
Notebook to run Ruby on Google Colaboratory
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@damuz91
Copy link

damuz91 commented Sep 8, 2023

Somebody got this working? After running the first block I do click on change runtime and select Ruby 2.5.1 and click Connect to Hosted and then I try to run a simple RUBY_VERSION or puts "hello world" but it returns a python Invalid Syntax error.

It does says that it won't recognize Ruby as a runtime and it uses python as default.

@ngoto
Copy link
Author

ngoto commented Sep 10, 2023

Last time I checked this working was 2021. It was working in 2020 and 2021.
Now, as you can seee, it failed to work.
The runtime was recognized by Colab, but after changing Colab, reconnecting to the kernel was timed out permanently.
Something may become wrong due to recent changes made by Google.

@ngoto
Copy link
Author

ngoto commented Sep 10, 2023

It is suggested that the failure is due to Ubuntu version upgrade from 20.04 to 22.04, conducted in July 2023.
https://medium.com/google-colab/colab-updated-to-ubuntu-22-04-lts-709a91555b3c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment