-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "666ab162", | ||
"id": "8eb7fb69", | ||
"metadata": {}, | ||
"source": [ | ||
"# HTML export\n", | ||
|
@@ -13,7 +13,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"id": "a74e6f5c", | ||
"id": "526c91aa", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
|
@@ -28,7 +28,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "5a26de24", | ||
"id": "93017afc", | ||
"metadata": {}, | ||
"source": [ | ||
"You can then save the `html` variable to a text file (note: if you're writing an HTML application, you could consider using [Shiny](shiny.md) or [Streamlit](streamlit.md) instead), or print it:" | ||
|
@@ -37,7 +37,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"id": "4e224e50", | ||
"id": "788f69a1", | ||
"metadata": { | ||
"tags": [ | ||
"scroll-output" | ||
|
@@ -48,7 +48,7 @@ | |
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"<table id=\"itables_553c60fb_1bc9_4cb2_9732_bc8f2cb4d807\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", | ||
"<table id=\"itables_e47e3e40_d42c_479f_b0c8_b0bbe188f37b\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", | ||
"<thead>\n", | ||
" <tr style=\"text-align: right;\">\n", | ||
" <th></th>\n", | ||
|
@@ -79,7 +79,7 @@ | |
"<script type=\"module\">\n", | ||
" import {DataTable, jQuery as $} from 'https://www.unpkg.com/[email protected]/dt_bundle.js';\n", | ||
"\n", | ||
" document.querySelectorAll(\"#itables_553c60fb_1bc9_4cb2_9732_bc8f2cb4d807:not(.dataTable)\").forEach(table => {\n", | ||
" document.querySelectorAll(\"#itables_e47e3e40_d42c_479f_b0c8_b0bbe188f37b:not(.dataTable)\").forEach(table => {\n", | ||
" // Define the table data\n", | ||
" const data = [[\"AW\", \"Latin America & Caribbean \", \"Aruba\", \"Oranjestad\", -70.0167, 12.5167], [\"AF\", \"South Asia\", \"Afghanistan\", \"Kabul\", 69.1761, 34.5228], [\"AO\", \"Sub-Saharan Africa \", \"Angola\", \"Luanda\", 13.242, -8.81155]];\n", | ||
"\n", | ||
|
@@ -101,7 +101,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "8d6fe0fb", | ||
"id": "5e65ed05", | ||
"metadata": {}, | ||
"source": [ | ||
"or display it, like `show` does:" | ||
|
@@ -110,13 +110,13 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"id": "cf6e17f4", | ||
"id": "debf9f6a", | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/html": [ | ||
"<table id=\"itables_553c60fb_1bc9_4cb2_9732_bc8f2cb4d807\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", | ||
"<table id=\"itables_e47e3e40_d42c_479f_b0c8_b0bbe188f37b\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", | ||
"<thead>\n", | ||
" <tr style=\"text-align: right;\">\n", | ||
" <th></th>\n", | ||
|
@@ -147,7 +147,7 @@ | |
"<script type=\"module\">\n", | ||
" import {DataTable, jQuery as $} from 'https://www.unpkg.com/[email protected]/dt_bundle.js';\n", | ||
"\n", | ||
" document.querySelectorAll(\"#itables_553c60fb_1bc9_4cb2_9732_bc8f2cb4d807:not(.dataTable)\").forEach(table => {\n", | ||
" document.querySelectorAll(\"#itables_e47e3e40_d42c_479f_b0c8_b0bbe188f37b:not(.dataTable)\").forEach(table => {\n", | ||
" // Define the table data\n", | ||
" const data = [[\"AW\", \"Latin America & Caribbean \", \"Aruba\", \"Oranjestad\", -70.0167, 12.5167], [\"AF\", \"South Asia\", \"Afghanistan\", \"Kabul\", 69.1761, 34.5228], [\"AO\", \"Sub-Saharan Africa \", \"Angola\", \"Luanda\", 13.242, -8.81155]];\n", | ||
"\n", | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -497,7 +497,7 @@ <h1>HTML export<a class="headerlink" href="#html-export" title="Link to this hea | |
</div> | ||
</div> | ||
<div class="cell_output docutils container"> | ||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span><table id="itables_553c60fb_1bc9_4cb2_9732_bc8f2cb4d807" class="display nowrap" data-quarto-disable-processing="true" style="table-layout:auto;width:auto;margin:auto;caption-side:bottom"> | ||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span><table id="itables_e47e3e40_d42c_479f_b0c8_b0bbe188f37b" class="display nowrap" data-quarto-disable-processing="true" style="table-layout:auto;width:auto;margin:auto;caption-side:bottom"> | ||
<thead> | ||
<tr style="text-align: right;"> | ||
<th></th> | ||
|
@@ -528,7 +528,7 @@ <h1>HTML export<a class="headerlink" href="#html-export" title="Link to this hea | |
<script type="module"> | ||
import {DataTable, jQuery as $} from 'https://www.unpkg.com/[email protected]/dt_bundle.js'; | ||
|
||
document.querySelectorAll("#itables_553c60fb_1bc9_4cb2_9732_bc8f2cb4d807:not(.dataTable)").forEach(table => { | ||
document.querySelectorAll("#itables_e47e3e40_d42c_479f_b0c8_b0bbe188f37b:not(.dataTable)").forEach(table => { | ||
// Define the table data | ||
const data = [["AW", "Latin America & Caribbean ", "Aruba", "Oranjestad", -70.0167, 12.5167], ["AF", "South Asia", "Afghanistan", "Kabul", 69.1761, 34.5228], ["AO", "Sub-Saharan Africa ", "Angola", "Luanda", 13.242, -8.81155]]; | ||
|
||
|
@@ -552,7 +552,7 @@ <h1>HTML export<a class="headerlink" href="#html-export" title="Link to this hea | |
</div> | ||
</div> | ||
<div class="cell_output docutils container"> | ||
<div class="output text_html"><table id="itables_553c60fb_1bc9_4cb2_9732_bc8f2cb4d807" class="display nowrap" data-quarto-disable-processing="true" style="table-layout:auto;width:auto;margin:auto;caption-side:bottom"> | ||
<div class="output text_html"><table id="itables_e47e3e40_d42c_479f_b0c8_b0bbe188f37b" class="display nowrap" data-quarto-disable-processing="true" style="table-layout:auto;width:auto;margin:auto;caption-side:bottom"> | ||
<thead> | ||
<tr style="text-align: right;"> | ||
<th></th> | ||
|
@@ -583,7 +583,7 @@ <h1>HTML export<a class="headerlink" href="#html-export" title="Link to this hea | |
<script type="module"> | ||
import {DataTable, jQuery as $} from 'https://www.unpkg.com/[email protected]/dt_bundle.js'; | ||
|
||
document.querySelectorAll("#itables_553c60fb_1bc9_4cb2_9732_bc8f2cb4d807:not(.dataTable)").forEach(table => { | ||
document.querySelectorAll("#itables_e47e3e40_d42c_479f_b0c8_b0bbe188f37b:not(.dataTable)").forEach(table => { | ||
// Define the table data | ||
const data = [["AW", "Latin America & Caribbean ", "Aruba", "Oranjestad", -70.0167, 12.5167], ["AF", "South Asia", "Afghanistan", "Kabul", 69.1761, 34.5228], ["AO", "Sub-Saharan Africa ", "Angola", "Luanda", 13.242, -8.81155]]; | ||
|
||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.