|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "markdown", |
5 | | - "id": "5e096d34", |
| 5 | + "id": "275fcc24", |
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": "cf36322f", |
| 16 | + "id": "3615a031", |
17 | 17 | "metadata": {}, |
18 | 18 | "outputs": [], |
19 | 19 | "source": [ |
|
28 | 28 | }, |
29 | 29 | { |
30 | 30 | "cell_type": "markdown", |
31 | | - "id": "69d35e8d", |
| 31 | + "id": "5fca0415", |
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": "392179bb", |
| 40 | + "id": "2d185d06", |
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_d893bcd9_4632_40ad_bd5a_962b8dab1ff8\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", |
| 51 | + "<table id=\"itables_f9868d7a_e8ff_44ea_b8b3_a52bbf7fe08a\" 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 | "<div>\n", |
72 | | - "Loading ITables v2.2.3-dev from the internet...\n", |
| 72 | + "Loading ITables v2.2.3 from the internet...\n", |
73 | 73 | "(need <a href=https://mwouts.github.io/itables/troubleshooting.html>help</a>?)</td>\n", |
74 | 74 | "</div>\n", |
75 | 75 | "</tr></tbody>\n", |
76 | | - "\n", |
77 | 76 | "</table>\n", |
78 | 77 | "<link href=\"https://www.unpkg.com/[email protected]/dt_bundle.css\" rel=\"stylesheet\">\n", |
79 | 78 | "<script type=\"module\">\n", |
80 | 79 | " import {DataTable, jQuery as $} from 'https://www.unpkg.com/[email protected]/dt_bundle.js';\n", |
81 | 80 | "\n", |
82 | | - " document.querySelectorAll(\"#itables_d893bcd9_4632_40ad_bd5a_962b8dab1ff8:not(.dataTable)\").forEach(table => {\n", |
| 81 | + " document.querySelectorAll(\"#itables_f9868d7a_e8ff_44ea_b8b3_a52bbf7fe08a:not(.dataTable)\").forEach(table => {\n", |
83 | 82 | " if (!(table instanceof HTMLTableElement))\n", |
84 | 83 | " return;\n", |
85 | 84 | "\n", |
|
104 | 103 | }, |
105 | 104 | { |
106 | 105 | "cell_type": "markdown", |
107 | | - "id": "c40d5563", |
| 106 | + "id": "edd6cfb1", |
108 | 107 | "metadata": {}, |
109 | 108 | "source": [ |
110 | 109 | "or display it, like `show` does:" |
|
113 | 112 | { |
114 | 113 | "cell_type": "code", |
115 | 114 | "execution_count": 3, |
116 | | - "id": "c6c4c46f", |
| 115 | + "id": "13e11ae8", |
117 | 116 | "metadata": {}, |
118 | 117 | "outputs": [ |
119 | 118 | { |
120 | 119 | "data": { |
121 | 120 | "text/html": [ |
122 | | - "<table id=\"itables_d893bcd9_4632_40ad_bd5a_962b8dab1ff8\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", |
| 121 | + "<table id=\"itables_f9868d7a_e8ff_44ea_b8b3_a52bbf7fe08a\" class=\"display nowrap\" data-quarto-disable-processing=\"true\" style=\"table-layout:auto;width:auto;margin:auto;caption-side:bottom\">\n", |
123 | 122 | "<thead>\n", |
124 | 123 | " <tr style=\"text-align: right;\">\n", |
125 | 124 | " <th></th>\n", |
|
140 | 139 | " </thead><tbody><tr>\n", |
141 | 140 | "<td style=\"vertical-align:middle; text-align:left\">\n", |
142 | 141 | "<div>\n", |
143 | | - "Loading ITables v2.2.3-dev from the internet...\n", |
| 142 | + "Loading ITables v2.2.3 from the internet...\n", |
144 | 143 | "(need <a href=https://mwouts.github.io/itables/troubleshooting.html>help</a>?)</td>\n", |
145 | 144 | "</div>\n", |
146 | 145 | "</tr></tbody>\n", |
147 | | - "\n", |
148 | 146 | "</table>\n", |
149 | 147 | "<link href=\"https://www.unpkg.com/[email protected]/dt_bundle.css\" rel=\"stylesheet\">\n", |
150 | 148 | "<script type=\"module\">\n", |
151 | 149 | " import {DataTable, jQuery as $} from 'https://www.unpkg.com/[email protected]/dt_bundle.js';\n", |
152 | 150 | "\n", |
153 | | - " document.querySelectorAll(\"#itables_d893bcd9_4632_40ad_bd5a_962b8dab1ff8:not(.dataTable)\").forEach(table => {\n", |
| 151 | + " document.querySelectorAll(\"#itables_f9868d7a_e8ff_44ea_b8b3_a52bbf7fe08a:not(.dataTable)\").forEach(table => {\n", |
154 | 152 | " if (!(table instanceof HTMLTableElement))\n", |
155 | 153 | " return;\n", |
156 | 154 | "\n", |
|
0 commit comments