Skip to content

Commit

Permalink
Fixed and added tests for pico
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed Oct 3, 2024
1 parent 46d28d7 commit 87a839b
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 2 deletions.
62 changes: 62 additions & 0 deletions demo.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# nb2classic Demo\n",
"\n",
"Here we go!"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0\n",
"1\n",
"2\n",
"3\n",
"4\n"
]
}
],
"source": [
"for i in range(5): print(i)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"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.10.15"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
7 changes: 5 additions & 2 deletions test_pico.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from nb2fasthtml.core import *
from fasthtml.common import *

hdrs = (Script(type="module", src="https://cdn.jsdelivr.net/npm/zero-md@3?register"),)
hdrs = [
MarkdownJS(),
HighlightJS(langs=['python', 'javascript', 'html', 'css',]),
]

app, rt = fast_app()
app, rt = fast_app(hdrs=hdrs)

nbs_dir = Path('example_nbs/')

Expand Down

0 comments on commit 87a839b

Please sign in to comment.