|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "markdown", |
5 | | - "id": "fa76814e", |
| 5 | + "id": "ed5c00fc", |
6 | 6 | "metadata": {}, |
7 | 7 | "source": [ |
8 | 8 | "# HTML export\n", |
|
13 | 13 | { |
14 | 14 | "cell_type": "code", |
15 | 15 | "execution_count": 1, |
16 | | - "id": "f3cf6f1b", |
| 16 | + "id": "e5452160", |
17 | 17 | "metadata": {}, |
18 | 18 | "outputs": [], |
19 | 19 | "source": [ |
|
28 | 28 | }, |
29 | 29 | { |
30 | 30 | "cell_type": "markdown", |
31 | | - "id": "aa9b912d", |
| 31 | + "id": "2c5b91d3", |
32 | 32 | "metadata": {}, |
33 | 33 | "source": [ |
34 | 34 | "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 | 37 | { |
38 | 38 | "cell_type": "code", |
39 | 39 | "execution_count": 2, |
40 | | - "id": "bc18918a", |
| 40 | + "id": "7fc48040", |
41 | 41 | "metadata": { |
42 | 42 | "tags": [ |
43 | 43 | "scroll-output" |
|
48 | 48 | "name": "stdout", |
49 | 49 | "output_type": "stream", |
50 | 50 | "text": [ |
51 | | - "<table id=\"itables_e8f9e9bf_07d3_41d7_abab_38947a50209f\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", |
| 51 | + "<table id=\"itables_c4a7ecbc_22b3_4a0a_ad21_6d1d3157e5e4\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", |
52 | 52 | "<thead>\n", |
53 | 53 | " <tr style=\"text-align: right;\">\n", |
54 | 54 | " <th></th>\n", |
|
69 | 69 | " </thead><tbody><tr>\n", |
70 | 70 | "<td style=\"vertical-align:middle; text-align:left\">\n", |
71 | 71 | "\n", |
72 | | - "Loading ITables v2.2.5 from the internet...\n", |
| 72 | + "Loading ITables v2.3.0-dev from the internet...\n", |
73 | 73 | "(need <a href=https://mwouts.github.io/itables/troubleshooting.html>help</a>?)</td>\n", |
74 | 74 | "</tr></tbody>\n", |
75 | 75 | "</table>\n", |
76 | | - "<link href=\"https://www.unpkg.com/dt_for_itables@2.0.13/dt_bundle.css\" rel=\"stylesheet\">\n", |
| 76 | + "<link href=\"https://www.unpkg.com/dt_for_itables@2.2.0/dt_bundle.css\" rel=\"stylesheet\">\n", |
77 | 77 | "<script type=\"module\">\n", |
78 | | - " import {DataTable, jQuery as $} from 'https://www.unpkg.com/dt_for_itables@2.0.13/dt_bundle.js';\n", |
| 78 | + " import {DataTable, jQuery as $} from 'https://www.unpkg.com/dt_for_itables@2.2.0/dt_bundle.js';\n", |
79 | 79 | "\n", |
80 | | - " document.querySelectorAll(\"#itables_e8f9e9bf_07d3_41d7_abab_38947a50209f:not(.dataTable)\").forEach(table => {\n", |
| 80 | + " document.querySelectorAll(\"#itables_c4a7ecbc_22b3_4a0a_ad21_6d1d3157e5e4:not(.dataTable)\").forEach(table => {\n", |
81 | 81 | " if (!(table instanceof HTMLTableElement))\n", |
82 | 82 | " return;\n", |
83 | 83 | "\n", |
|
102 | 102 | }, |
103 | 103 | { |
104 | 104 | "cell_type": "markdown", |
105 | | - "id": "e914bd49", |
| 105 | + "id": "fc71f50b", |
106 | 106 | "metadata": {}, |
107 | 107 | "source": [ |
108 | 108 | "or display it, like `show` does:" |
|
111 | 111 | { |
112 | 112 | "cell_type": "code", |
113 | 113 | "execution_count": 3, |
114 | | - "id": "afd65234", |
| 114 | + "id": "5c0280dc", |
115 | 115 | "metadata": {}, |
116 | 116 | "outputs": [ |
117 | 117 | { |
118 | 118 | "data": { |
119 | 119 | "text/html": [ |
120 | | - "<table id=\"itables_e8f9e9bf_07d3_41d7_abab_38947a50209f\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", |
| 120 | + "<table id=\"itables_c4a7ecbc_22b3_4a0a_ad21_6d1d3157e5e4\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", |
121 | 121 | "<thead>\n", |
122 | 122 | " <tr style=\"text-align: right;\">\n", |
123 | 123 | " <th></th>\n", |
|
138 | 138 | " </thead><tbody><tr>\n", |
139 | 139 | "<td style=\"vertical-align:middle; text-align:left\">\n", |
140 | 140 | "\n", |
141 | | - "Loading ITables v2.2.5 from the internet...\n", |
| 141 | + "Loading ITables v2.3.0-dev from the internet...\n", |
142 | 142 | "(need <a href=https://mwouts.github.io/itables/troubleshooting.html>help</a>?)</td>\n", |
143 | 143 | "</tr></tbody>\n", |
144 | 144 | "</table>\n", |
145 | | - "<link href=\"https://www.unpkg.com/dt_for_itables@2.0.13/dt_bundle.css\" rel=\"stylesheet\">\n", |
| 145 | + "<link href=\"https://www.unpkg.com/dt_for_itables@2.2.0/dt_bundle.css\" rel=\"stylesheet\">\n", |
146 | 146 | "<script type=\"module\">\n", |
147 | | - " import {DataTable, jQuery as $} from 'https://www.unpkg.com/dt_for_itables@2.0.13/dt_bundle.js';\n", |
| 147 | + " import {DataTable, jQuery as $} from 'https://www.unpkg.com/dt_for_itables@2.2.0/dt_bundle.js';\n", |
148 | 148 | "\n", |
149 | | - " document.querySelectorAll(\"#itables_e8f9e9bf_07d3_41d7_abab_38947a50209f:not(.dataTable)\").forEach(table => {\n", |
| 149 | + " document.querySelectorAll(\"#itables_c4a7ecbc_22b3_4a0a_ad21_6d1d3157e5e4:not(.dataTable)\").forEach(table => {\n", |
150 | 150 | " if (!(table instanceof HTMLTableElement))\n", |
151 | 151 | " return;\n", |
152 | 152 | "\n", |
|
0 commit comments