Skip to content

Instantly share code, notes, and snippets.

@MgenGlder
Created December 6, 2022 21:22
Show Gist options
  • Save MgenGlder/710d01f4417ead76a0e3a894a9263d88 to your computer and use it in GitHub Desktop.
Save MgenGlder/710d01f4417ead76a0e3a894a9263d88 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyMJVHXlzsLeNCsjfpltvY9p",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/jO-Osko/e128f33a993729befccd05ebb99fff43/imageproblems.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"id": "boyFnzzv-wi2"
},
"outputs": [],
"source": [
"r\"\"\"<img src='/img.png'\"\"\"\n",
"a = 1\n",
"# Just to show that code coloring breaks after the image\n",
"b = a ** 2\n",
"x = \"13\" + str(12)"
]
},
{
"cell_type": "code",
"source": [
"r\"<img src='/img.png'\""
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 35
},
"id": "iXHF3A59_CsK",
"outputId": "134fc52f-3927-4b08-92ab-adb2aeff6340"
},
"execution_count": 2,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"\"<img src='/img.png'\""
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 2
}
]
},
{
"cell_type": "code",
"source": [
"r'<img src=\"/img.png\"'"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 35
},
"id": "qCjZn939_EPH",
"outputId": "a4e5fa1d-0247-4195-e7c4-34a8243983b8"
},
"execution_count": 3,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"'<img src=\"/img.png\"'"
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 3
}
]
},
{
"cell_type": "code",
"source": [
"r\"\"\"<img src='/img.png'\"\"\""
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 35
},
"id": "8IPNs-mQ_GXk",
"outputId": "7cbf9ab8-776c-434f-d2d4-6d9f6c65e607"
},
"execution_count": 4,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"\"<img src='/img.png'\""
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 4
}
]
},
{
"cell_type": "code",
"source": [
"\"<img src='/img.png'\""
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 35
},
"id": "J6ZLCg9C_Icu",
"outputId": "13bfe7fa-d902-4b2a-892c-16f8b6edd8c1"
},
"execution_count": 5,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"\"<img src='/img.png'\""
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 5
}
]
},
{
"cell_type": "code",
"source": [
"'<img src=\"/img.png\"'"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 35
},
"id": "8gio6TFH_Jvh",
"outputId": "6e72d1b4-aed2-40f7-f3d9-cf4c43102db5"
},
"execution_count": 6,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"'<img src=\"/img.png\"'"
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 6
}
]
},
{
"cell_type": "code",
"source": [
"r\"\"\"<img src='/folder/img.png'\"\"\""
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 35
},
"id": "YOQKQOCv_K5E",
"outputId": "667032db-5aac-4be3-ba18-5bbfccf55dd4"
},
"execution_count": 7,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"\"<img src='/folder/img.png'\""
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 7
}
]
},
{
"cell_type": "code",
"source": [
"r\"<img src='/folder/img.png'\""
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 35
},
"id": "GbORmYkP_NNz",
"outputId": "092fee15-9f94-490c-df36-dd50a3a4a66d"
},
"execution_count": 8,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"\"<img src='/folder/img.png'\""
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 8
}
]
},
{
"cell_type": "code",
"source": [
"r'<img src=\"/folder/img.png\"'"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 35
},
"id": "L99bs9js_OHQ",
"outputId": "79511fd3-a1cb-4bab-c01a-b5b61aac809f"
},
"execution_count": 9,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"'<img src=\"/folder/img.png\"'"
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
}
},
"metadata": {},
"execution_count": 9
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment