Skip to content

Instantly share code, notes, and snippets.

@DavidHarar
Last active May 3, 2021 15:01
Show Gist options
  • Save DavidHarar/4b0e3e14a6adb92360264ffb45c40c34 to your computer and use it in GitHub Desktop.
Save DavidHarar/4b0e3e14a6adb92360264ffb45c40c34 to your computer and use it in GitHub Desktop.
CallForEmbeding.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "CallForEmbeding.ipynb",
"provenance": [],
"collapsed_sections": [],
"toc_visible": true,
"authorship_tag": "ABX9TyMcJN8cu2HyJQ6CuDKLLqDE",
"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/DavidHarar/4b0e3e14a6adb92360264ffb45c40c34/callforembeding.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"metadata": {
"id": "6y0J9qoxVNMF"
},
"source": [
"!pip install streamlit"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "illS2k5AQEsV"
},
"source": [
"import streamlit as st\n",
"import branca\n",
"from google.colab import drive\n",
"import os\n",
"from google.colab import files\n",
"drive.mount('/content/drive')\n",
"os.chdir(\"/content/drive/My Drive/iep/PriceCeiling/Writings/\")\n",
"\n",
"\n",
"%run ./EmbededRiceMap.ipynb"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "KxcjqdihJADG",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 621
},
"outputId": "095863c5-3d08-4b0c-cec5-fc835d6b0db8"
},
"source": [
"from IPython.display import IFrame\n",
"from IPython.core.display import display\n",
"\n",
"#display(IFrame('/content/drive/My Drive/iep/PriceCeiling/output/my_map2.html', '100%', '600px'))\n",
"display(IFrame('/content/drive/My Drive/iep/PriceCeiling/output/DynamicMapIEP_Rice.html', '100%', '600px'))"
],
"execution_count": 30,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
" <iframe\n",
" width=\"100%\"\n",
" height=\"600px\"\n",
" src=\"/content/drive/My Drive/iep/PriceCeiling/output/DynamicMapIEP_Rice.html\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x7f483ee59090>"
]
},
"metadata": {
"tags": []
}
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "hEMGoyhvXWAM"
},
"source": [
""
],
"execution_count": null,
"outputs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment