{ "cells": [ { "cell_type": "raw", "id": "de773fab", "metadata": {}, "source": [ "---\n", "execute:\n", " echo: false\n", "---" ] }, { "cell_type": "markdown", "id": "d3df6e7b", "metadata": {}, "source": [ "# a title\n", "> A description\n", "- key1: value1\n", "- key2: value2\n", "- categories: [c1, c2]" ] }, { "cell_type": "code", "execution_count": null, "id": "79d87f7d-9b49-4618-a254-98a04c566138", "metadata": {}, "outputs": [], "source": [ "#| hide\n", "#| default_exp foobar" ] }, { "cell_type": "markdown", "id": "7746fc7d", "metadata": {}, "source": [ "some md" ] }, { "cell_type": "code", "execution_count": null, "id": "65751e43", "metadata": {}, "outputs": [], "source": [ "#| export\n", "import re" ] }, { "cell_type": "code", "execution_count": null, "id": "fcebc8c3", "metadata": {}, "outputs": [], "source": [ "from nbdev.showdoc import show_doc" ] }, { "cell_type": "code", "execution_count": null, "id": "f791a06e", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\u001b[94mhello\n" ] } ], "source": [ "print('\\033[94mhello')" ] }, { "cell_type": "code", "execution_count": null, "id": "54fe0b87", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "2" ] }, "execution_count": null, "metadata": {}, "output_type": "execute_result" } ], "source": [ "1+1" ] }, { "cell_type": "code", "execution_count": null, "id": "a744e0b7", "metadata": {}, "outputs": [], "source": [ "import pandas as pd" ] }, { "cell_type": "code", "execution_count": null, "id": "fb865f17", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | a | \n", "
|---|---|
| 0 | \n", "1 | \n", "
| 1 | \n", "2 | \n", "
dict2nb."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "46c80afd",
"metadata": {},
"outputs": [],
"source": [
"#| exporti\n",
"class a(Exception): ..."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "bdd3f149",
"metadata": {},
"outputs": [],
"source": [
"#| exports\n",
"class b(a): ..."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "bd2f67a1",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"__main__.b()"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"b()"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "516a8282",
"metadata": {},
"outputs": [],
"source": [
"%%ai 0\n",
"This is a test."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1c22aa7d",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.11.8"
}
},
"nbformat": 4,
"nbformat_minor": 5
}