Skip to content

Commit 39cd732

Browse files
committed
Fix missing Center def causing notebook to fail to run
1 parent 67aa251 commit 39cd732

File tree

2 files changed

+39
-13
lines changed

2 files changed

+39
-13
lines changed

monsterui/franken.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from .foundations import *
2525
from fasthtml.common import Div, P, Span, FT
2626
from enum import Enum, auto
27-
from fasthtml.components import Uk_select,Uk_input_tag,Uk_icon
27+
from fasthtml.components import Uk_select,Uk_input_tag,Uk_icon,Uk_input_range
2828
from functools import partial
2929
from itertools import zip_longest
3030
from typing import Union, Tuple, Optional, Sequence
@@ -35,7 +35,6 @@
3535
from mistletoe.span_token import Image
3636
import mistletoe
3737
from lxml import html, etree
38-
from fasthtml.components import Uk_input_range
3938
import fasthtml.components as fh_comp
4039

4140
# %% ../nbs/02_franken.ipynb

nbs/02_franken.ipynb

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"from monsterui.foundations import *\n",
4343
"from fasthtml.common import Div, P, Span, FT\n",
4444
"from enum import Enum, auto\n",
45-
"from fasthtml.components import Uk_select,Uk_input_tag,Uk_icon\n",
45+
"from fasthtml.components import Uk_select,Uk_input_tag,Uk_icon,Uk_input_range\n",
4646
"from functools import partial\n",
4747
"from itertools import zip_longest\n",
4848
"from typing import Union, Tuple, Optional, Sequence\n",
@@ -53,7 +53,6 @@
5353
"from mistletoe.span_token import Image\n",
5454
"import mistletoe\n",
5555
"from lxml import html, etree\n",
56-
"from fasthtml.components import Uk_input_range\n",
5756
"import fasthtml.components as fh_comp"
5857
]
5958
},
@@ -452,7 +451,7 @@
452451
{
453452
"data": {
454453
"text/html": [
455-
"<iframe src=\"http://localhost:8000/_8kczAnbcSHeP9QArVz2g1Q\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
454+
"<iframe src=\"http://localhost:8000/_xSRcgLmLQxGpk0OYGA36aA\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
456455
" let frame = this;\n",
457456
" window.addEventListener('message', function(e) {\n",
458457
" if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
@@ -1176,7 +1175,7 @@
11761175
{
11771176
"data": {
11781177
"text/html": [
1179-
"<a href=\"http://localhost:8000/_RPiRGpnWQoO6cbGUPyRUXw\" target=\"_blank\">Open in new tab</a>"
1178+
"<a href=\"http://localhost:8000/_Krhk4_fOTLyDaD4Balqtjg\" target=\"_blank\">Open in new tab</a>"
11801179
],
11811180
"text/plain": [
11821181
"<IPython.core.display.HTML object>"
@@ -1188,7 +1187,7 @@
11881187
{
11891188
"data": {
11901189
"text/html": [
1191-
"<iframe src=\"http://localhost:8000/_RPiRGpnWQoO6cbGUPyRUXw\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
1190+
"<iframe src=\"http://localhost:8000/_Krhk4_fOTLyDaD4Balqtjg\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
11921191
" let frame = this;\n",
11931192
" window.addEventListener('message', function(e) {\n",
11941193
" if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
@@ -1609,7 +1608,7 @@
16091608
{
16101609
"data": {
16111610
"text/html": [
1612-
"<iframe src=\"http://localhost:8000/_OR1TtyOZRUmm4EezKWUnyQ\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
1611+
"<iframe src=\"http://localhost:8000/_6ZHyICVfQMSyaIKR3TZDIA\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
16131612
" let frame = this;\n",
16141613
" window.addEventListener('message', function(e) {\n",
16151614
" if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
@@ -1856,7 +1855,7 @@
18561855
"metadata": {},
18571856
"outputs": [],
18581857
"source": [
1859-
"test_modal = Modal(Caption(\"This is a test modal\"), header=Span(ModalTitle(\"Modal Heading\"), ModalCloseButton(htmx=True)), footer=Center(\"Modal Footer\"), id=\"mymodal\", open=True)"
1858+
"test_modal = Modal(Caption(\"This is a test modal\"), header=Span(ModalTitle(\"Modal Heading\"), ModalCloseButton(htmx=True)), footer=P(\"Modal Footer\"), id=\"mymodal\", open=True)"
18601859
]
18611860
},
18621861
{
@@ -1879,7 +1878,7 @@
18791878
{
18801879
"data": {
18811880
"text/html": [
1882-
"<iframe src=\"http://localhost:8008/_-q-N4moZSPShOg47WTtRxg\" style=\"width: 100%; height: 500px; border: none;\" onload=\"\" allow=\"accelerometer; autoplay; camera; clipboard-read; clipboard-write; display-capture; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; identity-credentials-get; idle-detection; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; usb; web-share; xr-spatial-tracking\"></iframe> "
1881+
"<iframe src=\"http://localhost:8000/_AP-9kDhSR4qGutzaR6GHxg\" style=\"width: 100%; height: 500px; border: none;\" onload=\"\" allow=\"accelerometer; autoplay; camera; clipboard-read; clipboard-write; display-capture; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; identity-credentials-get; idle-detection; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; usb; web-share; xr-spatial-tracking\"></iframe> "
18831882
],
18841883
"text/plain": [
18851884
"<IPython.core.display.HTML object>"
@@ -2982,7 +2981,7 @@
29822981
{
29832982
"data": {
29842983
"text/html": [
2985-
"<iframe src=\"http://localhost:8008/_MYrJVodpR5yhlSq_Hdvxhw\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
2984+
"<iframe src=\"http://localhost:8008/_AJHBq27jRxi0-aaQPUiMNQ\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
29862985
" let frame = this;\n",
29872986
" window.addEventListener('message', function(e) {\n",
29882987
" if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
@@ -3282,7 +3281,7 @@
32823281
{
32833282
"data": {
32843283
"text/html": [
3285-
"<iframe src=\"http://localhost:8008/_QKWPjVcdTwOqI5Co3z11iQ\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
3284+
"<iframe src=\"http://localhost:8008/_dGhN_-iERHu6pAvNtJnWKw\" style=\"width: 100%; height: auto; border: none;\" onload=\"{\n",
32863285
" let frame = this;\n",
32873286
" window.addEventListener('message', function(e) {\n",
32883287
" if (e.source !== frame.contentWindow) return; // Only proceed if the message is from this iframe\n",
@@ -3354,7 +3353,7 @@
33543353
{
33553354
"data": {
33563355
"text/html": [
3357-
"<iframe src=\"http://localhost:8008/_TOBgWBN4RwSajDt7xCtMpA\" style=\"width: 100%; height: 350px; border: none;\" onload=\"\" allow=\"accelerometer; autoplay; camera; clipboard-read; clipboard-write; display-capture; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; identity-credentials-get; idle-detection; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; usb; web-share; xr-spatial-tracking\"></iframe> "
3356+
"<iframe src=\"http://localhost:8008/_2QVlYN4PQJCLSIHQACpH2A\" style=\"width: 100%; height: 350px; border: none;\" onload=\"\" allow=\"accelerometer; autoplay; camera; clipboard-read; clipboard-write; display-capture; encrypted-media; fullscreen; gamepad; geolocation; gyroscope; hid; identity-credentials-get; idle-detection; magnetometer; microphone; midi; payment; picture-in-picture; publickey-credentials-get; screen-wake-lock; serial; usb; web-share; xr-spatial-tracking\"></iframe> "
33583357
],
33593358
"text/plain": [
33603359
"<IPython.core.display.HTML object>"
@@ -3547,6 +3546,34 @@
35473546
"# height=400\n",
35483547
"# )"
35493548
]
3549+
},
3550+
{
3551+
"cell_type": "markdown",
3552+
"id": "ad606199",
3553+
"metadata": {},
3554+
"source": [
3555+
"## export -"
3556+
]
3557+
},
3558+
{
3559+
"cell_type": "code",
3560+
"execution_count": null,
3561+
"id": "e05a5ad6",
3562+
"metadata": {},
3563+
"outputs": [],
3564+
"source": [
3565+
"#|hide\n",
3566+
"from nbdev import nbdev_export\n",
3567+
"nbdev_export()"
3568+
]
3569+
},
3570+
{
3571+
"cell_type": "code",
3572+
"execution_count": null,
3573+
"id": "de35d138",
3574+
"metadata": {},
3575+
"outputs": [],
3576+
"source": []
35503577
}
35513578
],
35523579
"metadata": {

0 commit comments

Comments
 (0)