Skip to content

Instantly share code, notes, and snippets.

@korakot
Last active April 27, 2023 06:12
Show Gist options
  • Save korakot/132725732d9bef9cf5f97654e1addd1f to your computer and use it in GitHub Desktop.
Save korakot/132725732d9bef9cf5f97654e1addd1f to your computer and use it in GitHub Desktop.
Using Golang kernel in Colab
@frohro
Copy link

frohro commented Oct 10, 2022

Do you think something like this could be used to use an octave kernel in Colab? I was able to install octave and the octave-kernel, but don't know how to make Colab start the octave-kernel.
Thanks,
Rob

@cjwomack
Copy link

cjwomack commented Feb 4, 2023

Doesn't seem to work currently. Throws an error around go get -u

go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

@cjwomack
Copy link

cjwomack commented Feb 4, 2023

@frohro You can get octave-kernel to work if you download the .ipynb and change the first bit of the file in a text editor to

{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": []
    },
    "kernelspec": {
      "name": "octave",
      "display_name": "Octave"
    },
    "language_info": {
      "name": "octave"
    }
  },

and upload this to google colab. Run the first cell. This downloads the octave kernel and installs it. After the first cell is run, then refresh... You should be able to run octave in the cells.

I came across this while trying to get the kotlin kernel to work...

@Yatima-Kagurazaka
Copy link

@cjwomack If you obey the error message, it works.

To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'

@Yatima-Kagurazaka
Copy link

But... I can't finish reconnecting the runtime after reloading the page.
It is stuck in reconnecting, and I can't run anything.
I terminate other sessions, but nothing changes.

@korakot Could you tell me if you can reconnect it?

@Tylersuard
Copy link

Not working for me

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