Skip to content

Instantly share code, notes, and snippets.

@danielduckworth
Last active July 17, 2023 11:21
Show Gist options
  • Save danielduckworth/e7705f26af6e5bce3d5e3b77e90f7b03 to your computer and use it in GitHub Desktop.
Save danielduckworth/e7705f26af6e5bce3d5e3b77e90f7b03 to your computer and use it in GitHub Desktop.
Jupyter iframe with Blockly Terminal
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"<a href=\"https://blockly-terminal.icils.io\">Blockly Terminal</a>\n",
"<div style=\"position: relative; padding-bottom: 56.25%; height: 0;\">\n",
" <iframe src=\"https://blockly-terminal.icils.io\"style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\">\n",
" </iframe>\n",
"</div>\n"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%html\n",
"\n",
"<a href=\"https://blockly-terminal.icils.io\">Blockly Terminal</a>\n",
"<div style=\"position: relative; padding-bottom: 56.25%; height: 0;\">\n",
" <iframe src=\"https://blockly-terminal.icils.io\"style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\">\n",
" </iframe>\n",
"</div>"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "py311",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment