Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How may I insert an image from my Github repository in my Google Colab notebook?

I have an image in my Github repository that I would like to upload and include as a Text Cell in my Google Colab Notebook. I am using the following command:

![picture](https://github.com/ivonnics/Machine-Learning/blob/master/Tabla%20Confussion%20Matrix.png)

But what I get is the following:

picture

Is anyone aware of a solution or alternative to directly upload the requested image FROM MY GITHUB into my Notebook without intermediate steps? Thanking you in advance...

like image 439
José Luis Martínez Avatar asked Oct 24 '25 19:10

José Luis Martínez


1 Answers

  1. Go to Github
  2. Go to your Image
  3. Copy the URL
  4. Convert the URL in two steps: a. Change: /github.com/ to raw.githubusercontent.com b. Remove "/blob/" from the URL
  5. Now in Colab's Text paste the edited URL inside the format: You will get an image displayed.
like image 59
ana Avatar answered Oct 26 '25 09:10

ana



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!