"
+ ]
+ },
+ "execution_count": 4,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# | echo: false\n",
+ "from IPython.display import YouTubeVideo\n",
+ "YouTubeVideo('HGsG0jVFREY', width=560, height=315)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "language": "python"
+ },
+ "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.12.4"
+ },
+ "vscode": {
+ "interpreter": {
+ "hash": "0a92af74ccf65e106ae96852a45a9b0a5e11a3c414a16fc8bb2d134868e55bfd"
+ }
+ },
+ "widgets": {
+ "application/vnd.jupyter.widget-state+json": {
+ "state": {},
+ "version_major": 2,
+ "version_minor": 0
+ }
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 4
+}
diff --git a/nbs/index.ipynb b/nbs/index.ipynb
index 05afd17..6c641a3 100644
--- a/nbs/index.ipynb
+++ b/nbs/index.ipynb
@@ -17,13 +17,6 @@
"Simply call - "
]
},
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": []
- },
{
"cell_type": "code",
"execution_count": 1,
@@ -33,8 +26,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
- "CPU times: user 304 ms, sys: 65.3 ms, total: 369 ms\n",
- "Wall time: 469 ms\n"
+ "CPU times: user 263 ms, sys: 53.9 ms, total: 317 ms\n",
+ "Wall time: 407 ms\n"
]
}
],
@@ -56,6 +49,72 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {},
+ "outputs": [],
+ "source": [
+ "import ast\n",
+ "\n",
+ "os.environ[\n",
+ " \"AD_MAX_ITEMS\"\n",
+ "] = ( # os is already imported by torch_snippets, along with many other useful libraries\n",
+ " \"1000\" # Set the maximum number of items to display in the AD object\n",
+ ")\n",
+ "\n",
+ "\n",
+ "@tryy # This is a decorator that catches exceptions\n",
+ "def extract_all_list(file_path):\n",
+ " file = readfile(file_path, silent=True) # Read the file\n",
+ " tree = ast.parse(file, filename=file_path)\n",
+ "\n",
+ " for node in tree.body:\n",
+ " if isinstance(node, ast.Assign):\n",
+ " for target in node.targets:\n",
+ " if isinstance(target, ast.Name) and target.id == \"__all__\":\n",
+ " if isinstance(node.value, ast.List):\n",
+ " all_list = [\n",
+ " elt.value\n",
+ " for elt in node.value.elts\n",
+ " if isinstance(elt, ast.Constant)\n",
+ " ]\n",
+ " return all_list\n",
+ " return None\n",
+ "\n",
+ "\n",
+ "def print_all_lists_in_directory(directory):\n",
+ " dir = P(directory) # Create a pathlib.Path object\n",
+ " for f in dir.ls(): # Iterate over all files in the directory\n",
+ " if f.extn == \"py\" and f.stem not in [\n",
+ " \"__init__\",\n",
+ " \"_nbdev\",\n",
+ " ]: # If it's a Python file and not __init__.py\n",
+ " all_list = extract_all_list(f)\n",
+ " if all_list is not None and len(all_list) > 0:\n",
+ " h2(f.stem) # Print the name of the file as a heading in jupyter\n",
+ " print(\n",
+ " AD({\"items\": all_list})\n",
+ " ) # AD is an intelligent dictionary that can display itself nicely"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "/Users/yeshwanth/Code/Personal/torch_snippets/nbs\n"
+ ]
+ }
+ ],
+ "source": [
+ "print(P().resolve())"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {},
"outputs": [
{
"data": {
@@ -457,26 +516,28 @@
" 0 - console (🏷️ str)\n",
" 1 - reset_logger_width (🏷️ str)\n",
" 2 - logger (🏷️ str)\n",
- " 3 - Debug (🏷️ str)\n",
- " 4 - Info (🏷️ str)\n",
- " 5 - Warn (🏷️ str)\n",
- " 6 - Excep (🏷️ str)\n",
- " 7 - warn_mode (🏷️ str)\n",
- " 8 - info_mode (🏷️ str)\n",
- " 9 - debug_mode (🏷️ str)\n",
- " 10 - excep_mode (🏷️ str)\n",
- " 11 - in_warn_mode (🏷️ str)\n",
- " 12 - in_info_mode (🏷️ str)\n",
- " 13 - in_debug_mode (🏷️ str)\n",
- " 14 - in_excep_mode (🏷️ str)\n",
- " 15 - frames (🏷️ str)\n",
- " 16 - get_console (🏷️ str)\n",
- " 17 - reset_logger (🏷️ str)\n",
- " 18 - enter_exit (🏷️ str)\n",
- " 19 - get_logger_level (🏷️ str)\n",
- " 20 - logger_mode (🏷️ str)\n",
- " 21 - in_logger_mode (🏷️ str)\n",
- " 22 - notify_waiting (🏷️ str)\n",
+ " 3 - Trace (🏷️ str)\n",
+ " 4 - Debug (🏷️ str)\n",
+ " 5 - Info (🏷️ str)\n",
+ " 6 - Warn (🏷️ str)\n",
+ " 7 - Excep (🏷️ str)\n",
+ " 8 - warn_mode (🏷️ str)\n",
+ " 9 - info_mode (🏷️ str)\n",
+ " 10 - debug_mode (🏷️ str)\n",
+ " 11 - trace_mode (🏷️ str)\n",
+ " 12 - excep_mode (🏷️ str)\n",
+ " 13 - in_warn_mode (🏷️ str)\n",
+ " 14 - in_info_mode (🏷️ str)\n",
+ " 15 - in_debug_mode (🏷️ str)\n",
+ " 16 - in_trace_mode (🏷️ str)\n",
+ " 17 - in_excep_mode (🏷️ str)\n",
+ " 18 - frames (🏷️ str)\n",
+ " 19 - get_console (🏷️ str)\n",
+ " 20 - reset_logger (🏷️ str)\n",
+ " 21 - get_logger_level (🏷️ str)\n",
+ " 22 - logger_mode (🏷️ str)\n",
+ " 23 - in_logger_mode (🏷️ str)\n",
+ " 24 - notify_waiting (🏷️ str)\n",
"\n",
"```\n",
"\n"
@@ -896,58 +957,22 @@
}
],
"source": [
- "import ast\n",
- "\n",
- "os.environ[\n",
- " \"AD_MAX_ITEMS\"\n",
- "] = ( # os is already imported by torch_snippets, along with many other useful libraries\n",
- " \"1000\" # Set the maximum number of items to display in the AD object\n",
- ")\n",
- "\n",
- "\n",
- "@tryy # This is a decorator that catches exceptions\n",
- "def extract_all_list(file_path):\n",
- " file = readfile(file_path, silent=True) # Read the file\n",
- " tree = ast.parse(file, filename=file_path)\n",
- "\n",
- " for node in tree.body:\n",
- " if isinstance(node, ast.Assign):\n",
- " for target in node.targets:\n",
- " if isinstance(target, ast.Name) and target.id == \"__all__\":\n",
- " if isinstance(node.value, ast.List):\n",
- " all_list = [\n",
- " elt.value\n",
- " for elt in node.value.elts\n",
- " if isinstance(elt, ast.Constant)\n",
- " ]\n",
- " return all_list\n",
- " return None\n",
- "\n",
- "\n",
- "def print_all_lists_in_directory(directory):\n",
- " dir = P(directory) # Create a pathlib.Path object\n",
- " for f in dir.ls(): # Iterate over all files in the directory\n",
- " if f.extn == \"py\" and f.stem not in [\n",
- " \"__init__\",\n",
- " \"_nbdev\",\n",
- " ]: # If it's a Python file and not __init__.py\n",
- " all_list = extract_all_list(f)\n",
- " if all_list is not None and len(all_list) > 0:\n",
- " h2(f.stem) # Print the name of the file as a heading in jupyter\n",
- " print(\n",
- " AD({\"items\": all_list})\n",
- " ) # AD is an intelligent dictionary that can display itself nicely\n",
- "\n",
- "\n",
"# Specify the directory containing the Python files\n",
"directory_path = \"../torch_snippets\"\n",
"print_all_lists_in_directory(directory_path)"
]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": []
}
],
"metadata": {
"kernelspec": {
- "display_name": "Python 3",
+ "display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
diff --git a/nbs/logging.ipynb b/nbs/logging.ipynb
index af3b64b..2cd6648 100644
--- a/nbs/logging.ipynb
+++ b/nbs/logging.ipynb
@@ -894,7 +894,7 @@
" show(im, sz=3)\n",
" print(im.mean())\n",
"\n",
- "do('../assets/Preamble.png')"
+ "do('assets/Preamble.png')"
]
},
{
@@ -924,7 +924,7 @@
" # show(im, sz=3) # line is commented, but will need to be re-uncommented any time it needs debugging\n",
" print(im.mean())\n",
"\n",
- "do('../assets/Preamble.png')"
+ "do('assets/Preamble.png')"
]
},
{
@@ -955,7 +955,7 @@
" show(im, sz=3)\n",
" print(im.mean())\n",
"\n",
- "do('../assets/Preamble.png')"
+ "do('assets/Preamble.png')"
]
},
{
@@ -990,7 +990,7 @@
],
"source": [
"with debug_mode():\n",
- " do('../assets/Preamble.png')"
+ " do('assets/Preamble.png')"
]
},
{
diff --git a/scripts.ipynb b/scripts.ipynb
index f9c6aa5..3e80d04 100644
--- a/scripts.ipynb
+++ b/scripts.ipynb
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 29,
+ "execution_count": 34,
"metadata": {},
"outputs": [
{
@@ -15,19 +15,19 @@
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/load_defaults.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/decorators.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/inspector.py\u001b[0m\n",
- "\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/misc.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/imgaug_loader.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/ipython.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/pdf_loader.py\u001b[0m\n",
- "\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/adapters.py\u001b[0m\n",
+ "\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/misc.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/registry.py\u001b[0m\n",
+ "\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/adapters.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/interactive_show.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/logger.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/trainer/config.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/sklegos.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/trainer/capsule.py\u001b[0m\n",
- "\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/bb_utils.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/charts.py\u001b[0m\n",
+ "\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/bb_utils.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/markup.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/paths.py\u001b[0m\n",
"\u001b[1mreformatted /Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/_modidx.py\u001b[0m\n",
@@ -36,121 +36,121 @@
"\u001b[34m\u001b[1m20 files \u001b[0m\u001b[1mreformatted\u001b[0m, \u001b[34m22 files \u001b[0mleft unchanged.\n",
"Obtaining file:///Users/yeshwanth/Code/Personal/torch_snippets\n",
" Preparing metadata (setup.py) ... \u001b[?25ldone\n",
- "\u001b[?25hRequirement already satisfied: fastcore in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (1.6.3)\n",
- "Requirement already satisfied: matplotlib in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (3.9.1)\n",
- "Requirement already satisfied: Pillow in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (10.4.0)\n",
- "Requirement already satisfied: altair in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (5.3.0)\n",
- "Requirement already satisfied: dill in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (0.3.8)\n",
- "Requirement already satisfied: ipython in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (8.26.0)\n",
- "Requirement already satisfied: loguru in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (0.7.2)\n",
- "Requirement already satisfied: numpy in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (2.0.1)\n",
- "Requirement already satisfied: pandas in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (2.2.2)\n",
- "Requirement already satisfied: tqdm in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (4.66.4)\n",
- "Requirement already satisfied: rich in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (13.7.1)\n",
- "Requirement already satisfied: PyYAML in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (6.0.1)\n",
- "Requirement already satisfied: catalogue in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (2.0.10)\n",
- "Requirement already satisfied: confection in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (0.1.5)\n",
- "Requirement already satisfied: pydantic in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (2.8.2)\n",
- "Requirement already satisfied: typing in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (3.7.4.3)\n",
- "Requirement already satisfied: srsly in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (2.4.8)\n",
- "Requirement already satisfied: typing_extensions in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (4.12.2)\n",
- "Requirement already satisfied: wasabi in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (1.1.3)\n",
- "Requirement already satisfied: jsonlines in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (4.0.0)\n",
- "Requirement already satisfied: imgaug>=0.4.0 in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (0.4.0)\n",
- "Requirement already satisfied: xmltodict in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (0.13.0)\n",
- "Requirement already satisfied: fuzzywuzzy in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (0.18.0)\n",
- "Requirement already satisfied: scikit-learn in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (1.5.1)\n",
- "Requirement already satisfied: nltk in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (3.8.1)\n",
- "Requirement already satisfied: python-Levenshtein in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (0.25.1)\n",
- "Requirement already satisfied: pre-commit in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (3.7.1)\n",
- "Requirement already satisfied: pymupdf in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (1.24.9)\n",
- "Requirement already satisfied: nbconvert in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (7.16.4)\n",
- "Requirement already satisfied: nbformat in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (5.10.4)\n",
- "Requirement already satisfied: icecream in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (2.1.3)\n",
- "Requirement already satisfied: mergedeep in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (1.3.4)\n",
- "Requirement already satisfied: typer in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.6.0) (0.12.4)\n",
- "Requirement already satisfied: six in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.6.0) (1.16.0)\n",
- "Requirement already satisfied: scipy in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.6.0) (1.14.0)\n",
- "Requirement already satisfied: scikit-image>=0.14.2 in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.6.0) (0.24.0)\n",
- "Requirement already satisfied: opencv-python in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.6.0) (4.10.0.84)\n",
- "Requirement already satisfied: imageio in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.6.0) (2.34.2)\n",
- "Requirement already satisfied: Shapely in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.6.0) (2.0.5)\n",
- "Requirement already satisfied: jinja2 in /opt/miniconda3/lib/python3.12/site-packages (from altair->torch_snippets==0.6.0) (3.1.4)\n",
- "Requirement already satisfied: jsonschema>=3.0 in /opt/miniconda3/lib/python3.12/site-packages (from altair->torch_snippets==0.6.0) (4.23.0)\n",
- "Requirement already satisfied: packaging in /opt/miniconda3/lib/python3.12/site-packages (from altair->torch_snippets==0.6.0) (23.2)\n",
- "Requirement already satisfied: toolz in /opt/miniconda3/lib/python3.12/site-packages (from altair->torch_snippets==0.6.0) (0.12.1)\n",
- "Requirement already satisfied: python-dateutil>=2.8.2 in /opt/miniconda3/lib/python3.12/site-packages (from pandas->torch_snippets==0.6.0) (2.9.0.post0)\n",
- "Requirement already satisfied: pytz>=2020.1 in /opt/miniconda3/lib/python3.12/site-packages (from pandas->torch_snippets==0.6.0) (2024.1)\n",
- "Requirement already satisfied: tzdata>=2022.7 in /opt/miniconda3/lib/python3.12/site-packages (from pandas->torch_snippets==0.6.0) (2024.1)\n",
- "Requirement already satisfied: annotated-types>=0.4.0 in /opt/miniconda3/lib/python3.12/site-packages (from pydantic->torch_snippets==0.6.0) (0.7.0)\n",
- "Requirement already satisfied: pydantic-core==2.20.1 in /opt/miniconda3/lib/python3.12/site-packages (from pydantic->torch_snippets==0.6.0) (2.20.1)\n",
- "Requirement already satisfied: colorama>=0.3.9 in /opt/miniconda3/lib/python3.12/site-packages (from icecream->torch_snippets==0.6.0) (0.4.6)\n",
- "Requirement already satisfied: pygments>=2.2.0 in /opt/miniconda3/lib/python3.12/site-packages (from icecream->torch_snippets==0.6.0) (2.18.0)\n",
- "Requirement already satisfied: executing>=0.3.1 in /opt/miniconda3/lib/python3.12/site-packages (from icecream->torch_snippets==0.6.0) (2.0.1)\n",
- "Requirement already satisfied: asttokens>=2.0.1 in /opt/miniconda3/lib/python3.12/site-packages (from icecream->torch_snippets==0.6.0) (2.4.1)\n",
- "Requirement already satisfied: decorator in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.6.0) (5.1.1)\n",
- "Requirement already satisfied: jedi>=0.16 in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.6.0) (0.19.1)\n",
- "Requirement already satisfied: matplotlib-inline in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.6.0) (0.1.7)\n",
- "Requirement already satisfied: prompt-toolkit<3.1.0,>=3.0.41 in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.6.0) (3.0.47)\n",
- "Requirement already satisfied: stack-data in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.6.0) (0.6.3)\n",
- "Requirement already satisfied: traitlets>=5.13.0 in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.6.0) (5.14.3)\n",
- "Requirement already satisfied: pexpect>4.3 in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.6.0) (4.9.0)\n",
- "Requirement already satisfied: attrs>=19.2.0 in /opt/miniconda3/lib/python3.12/site-packages (from jsonlines->torch_snippets==0.6.0) (23.2.0)\n",
- "Requirement already satisfied: contourpy>=1.0.1 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.6.0) (1.2.1)\n",
- "Requirement already satisfied: cycler>=0.10 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.6.0) (0.12.1)\n",
- "Requirement already satisfied: fonttools>=4.22.0 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.6.0) (4.53.1)\n",
- "Requirement already satisfied: kiwisolver>=1.3.1 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.6.0) (1.4.5)\n",
- "Requirement already satisfied: pyparsing>=2.3.1 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.6.0) (3.1.2)\n",
- "Requirement already satisfied: beautifulsoup4 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (4.12.3)\n",
- "Requirement already satisfied: bleach!=5.0.0 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (6.1.0)\n",
- "Requirement already satisfied: defusedxml in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (0.7.1)\n",
- "Requirement already satisfied: jupyter-core>=4.7 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (5.7.2)\n",
- "Requirement already satisfied: jupyterlab-pygments in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (0.3.0)\n",
- "Requirement already satisfied: markupsafe>=2.0 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (2.1.5)\n",
- "Requirement already satisfied: mistune<4,>=2.0.3 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (3.0.2)\n",
- "Requirement already satisfied: nbclient>=0.5.0 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (0.10.0)\n",
- "Requirement already satisfied: pandocfilters>=1.4.1 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (1.5.1)\n",
- "Requirement already satisfied: tinycss2 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.6.0) (1.3.0)\n",
- "Requirement already satisfied: fastjsonschema>=2.15 in /opt/miniconda3/lib/python3.12/site-packages (from nbformat->torch_snippets==0.6.0) (2.20.0)\n",
- "Requirement already satisfied: click in /opt/miniconda3/lib/python3.12/site-packages (from nltk->torch_snippets==0.6.0) (8.1.7)\n",
- "Requirement already satisfied: joblib in /opt/miniconda3/lib/python3.12/site-packages (from nltk->torch_snippets==0.6.0) (1.4.2)\n",
- "Requirement already satisfied: regex>=2021.8.3 in /opt/miniconda3/lib/python3.12/site-packages (from nltk->torch_snippets==0.6.0) (2024.7.24)\n",
- "Requirement already satisfied: cfgv>=2.0.0 in /opt/miniconda3/lib/python3.12/site-packages (from pre-commit->torch_snippets==0.6.0) (3.4.0)\n",
- "Requirement already satisfied: identify>=1.0.0 in /opt/miniconda3/lib/python3.12/site-packages (from pre-commit->torch_snippets==0.6.0) (2.6.0)\n",
- "Requirement already satisfied: nodeenv>=0.11.1 in /opt/miniconda3/lib/python3.12/site-packages (from pre-commit->torch_snippets==0.6.0) (1.9.1)\n",
- "Requirement already satisfied: virtualenv>=20.10.0 in /opt/miniconda3/lib/python3.12/site-packages (from pre-commit->torch_snippets==0.6.0) (20.26.3)\n",
- "Requirement already satisfied: PyMuPDFb==1.24.9 in /opt/miniconda3/lib/python3.12/site-packages (from pymupdf->torch_snippets==0.6.0) (1.24.9)\n",
- "Requirement already satisfied: Levenshtein==0.25.1 in /opt/miniconda3/lib/python3.12/site-packages (from python-Levenshtein->torch_snippets==0.6.0) (0.25.1)\n",
- "Requirement already satisfied: rapidfuzz<4.0.0,>=3.8.0 in /opt/miniconda3/lib/python3.12/site-packages (from Levenshtein==0.25.1->python-Levenshtein->torch_snippets==0.6.0) (3.9.4)\n",
- "Requirement already satisfied: markdown-it-py>=2.2.0 in /opt/miniconda3/lib/python3.12/site-packages (from rich->torch_snippets==0.6.0) (3.0.0)\n",
- "Requirement already satisfied: threadpoolctl>=3.1.0 in /opt/miniconda3/lib/python3.12/site-packages (from scikit-learn->torch_snippets==0.6.0) (3.5.0)\n",
- "Requirement already satisfied: shellingham>=1.3.0 in /opt/miniconda3/lib/python3.12/site-packages (from typer->torch_snippets==0.6.0) (1.5.4)\n",
- "Requirement already satisfied: webencodings in /opt/miniconda3/lib/python3.12/site-packages (from bleach!=5.0.0->nbconvert->torch_snippets==0.6.0) (0.5.1)\n",
- "Requirement already satisfied: parso<0.9.0,>=0.8.3 in /opt/miniconda3/lib/python3.12/site-packages (from jedi>=0.16->ipython->torch_snippets==0.6.0) (0.8.4)\n",
- "Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /opt/miniconda3/lib/python3.12/site-packages (from jsonschema>=3.0->altair->torch_snippets==0.6.0) (2023.12.1)\n",
- "Requirement already satisfied: referencing>=0.28.4 in /opt/miniconda3/lib/python3.12/site-packages (from jsonschema>=3.0->altair->torch_snippets==0.6.0) (0.35.1)\n",
- "Requirement already satisfied: rpds-py>=0.7.1 in /opt/miniconda3/lib/python3.12/site-packages (from jsonschema>=3.0->altair->torch_snippets==0.6.0) (0.19.0)\n",
- "Requirement already satisfied: platformdirs>=2.5 in /opt/miniconda3/lib/python3.12/site-packages (from jupyter-core>=4.7->nbconvert->torch_snippets==0.6.0) (3.10.0)\n",
- "Requirement already satisfied: mdurl~=0.1 in /opt/miniconda3/lib/python3.12/site-packages (from markdown-it-py>=2.2.0->rich->torch_snippets==0.6.0) (0.1.2)\n",
- "Requirement already satisfied: jupyter-client>=6.1.12 in /opt/miniconda3/lib/python3.12/site-packages (from nbclient>=0.5.0->nbconvert->torch_snippets==0.6.0) (8.6.2)\n",
- "Requirement already satisfied: ptyprocess>=0.5 in /opt/miniconda3/lib/python3.12/site-packages (from pexpect>4.3->ipython->torch_snippets==0.6.0) (0.7.0)\n",
- "Requirement already satisfied: wcwidth in /opt/miniconda3/lib/python3.12/site-packages (from prompt-toolkit<3.1.0,>=3.0.41->ipython->torch_snippets==0.6.0) (0.2.13)\n",
- "Requirement already satisfied: networkx>=2.8 in /opt/miniconda3/lib/python3.12/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch_snippets==0.6.0) (3.3)\n",
- "Requirement already satisfied: tifffile>=2022.8.12 in /opt/miniconda3/lib/python3.12/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch_snippets==0.6.0) (2024.7.24)\n",
- "Requirement already satisfied: lazy-loader>=0.4 in /opt/miniconda3/lib/python3.12/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch_snippets==0.6.0) (0.4)\n",
- "Requirement already satisfied: distlib<1,>=0.3.7 in /opt/miniconda3/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit->torch_snippets==0.6.0) (0.3.8)\n",
- "Requirement already satisfied: filelock<4,>=3.12.2 in /opt/miniconda3/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit->torch_snippets==0.6.0) (3.15.4)\n",
- "Requirement already satisfied: soupsieve>1.2 in /opt/miniconda3/lib/python3.12/site-packages (from beautifulsoup4->nbconvert->torch_snippets==0.6.0) (2.5)\n",
- "Requirement already satisfied: pure-eval in /opt/miniconda3/lib/python3.12/site-packages (from stack-data->ipython->torch_snippets==0.6.0) (0.2.3)\n",
- "Requirement already satisfied: pyzmq>=23.0 in /opt/miniconda3/lib/python3.12/site-packages (from jupyter-client>=6.1.12->nbclient>=0.5.0->nbconvert->torch_snippets==0.6.0) (26.0.3)\n",
- "Requirement already satisfied: tornado>=6.2 in /opt/miniconda3/lib/python3.12/site-packages (from jupyter-client>=6.1.12->nbclient>=0.5.0->nbconvert->torch_snippets==0.6.0) (6.4.1)\n",
+ "\u001b[?25hRequirement already satisfied: fastcore in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (1.6.3)\n",
+ "Requirement already satisfied: matplotlib in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (3.9.1)\n",
+ "Requirement already satisfied: Pillow in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (10.4.0)\n",
+ "Requirement already satisfied: altair in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (5.3.0)\n",
+ "Requirement already satisfied: dill in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (0.3.8)\n",
+ "Requirement already satisfied: ipython in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (8.26.0)\n",
+ "Requirement already satisfied: loguru in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (0.7.2)\n",
+ "Requirement already satisfied: numpy in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (2.0.1)\n",
+ "Requirement already satisfied: pandas in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (2.2.2)\n",
+ "Requirement already satisfied: tqdm in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (4.66.4)\n",
+ "Requirement already satisfied: rich in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (13.7.1)\n",
+ "Requirement already satisfied: PyYAML in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (6.0.1)\n",
+ "Requirement already satisfied: catalogue in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (2.0.10)\n",
+ "Requirement already satisfied: confection in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (0.1.5)\n",
+ "Requirement already satisfied: pydantic in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (2.8.2)\n",
+ "Requirement already satisfied: typing in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (3.7.4.3)\n",
+ "Requirement already satisfied: srsly in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (2.4.8)\n",
+ "Requirement already satisfied: typing_extensions in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (4.12.2)\n",
+ "Requirement already satisfied: wasabi in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (1.1.3)\n",
+ "Requirement already satisfied: jsonlines in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (4.0.0)\n",
+ "Requirement already satisfied: imgaug>=0.4.0 in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (0.4.0)\n",
+ "Requirement already satisfied: xmltodict in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (0.13.0)\n",
+ "Requirement already satisfied: fuzzywuzzy in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (0.18.0)\n",
+ "Requirement already satisfied: scikit-learn in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (1.5.1)\n",
+ "Requirement already satisfied: nltk in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (3.8.1)\n",
+ "Requirement already satisfied: python-Levenshtein in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (0.25.1)\n",
+ "Requirement already satisfied: pre-commit in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (3.7.1)\n",
+ "Requirement already satisfied: pymupdf in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (1.24.9)\n",
+ "Requirement already satisfied: nbconvert in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (7.16.4)\n",
+ "Requirement already satisfied: nbformat in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (5.10.4)\n",
+ "Requirement already satisfied: icecream in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (2.1.3)\n",
+ "Requirement already satisfied: mergedeep in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (1.3.4)\n",
+ "Requirement already satisfied: typer in /opt/miniconda3/lib/python3.12/site-packages (from torch_snippets==0.540) (0.12.4)\n",
+ "Requirement already satisfied: six in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.540) (1.16.0)\n",
+ "Requirement already satisfied: scipy in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.540) (1.14.0)\n",
+ "Requirement already satisfied: scikit-image>=0.14.2 in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.540) (0.24.0)\n",
+ "Requirement already satisfied: opencv-python in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.540) (4.10.0.84)\n",
+ "Requirement already satisfied: imageio in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.540) (2.34.2)\n",
+ "Requirement already satisfied: Shapely in /opt/miniconda3/lib/python3.12/site-packages (from imgaug>=0.4.0->torch_snippets==0.540) (2.0.5)\n",
+ "Requirement already satisfied: jinja2 in /opt/miniconda3/lib/python3.12/site-packages (from altair->torch_snippets==0.540) (3.1.4)\n",
+ "Requirement already satisfied: jsonschema>=3.0 in /opt/miniconda3/lib/python3.12/site-packages (from altair->torch_snippets==0.540) (4.23.0)\n",
+ "Requirement already satisfied: packaging in /opt/miniconda3/lib/python3.12/site-packages (from altair->torch_snippets==0.540) (23.2)\n",
+ "Requirement already satisfied: toolz in /opt/miniconda3/lib/python3.12/site-packages (from altair->torch_snippets==0.540) (0.12.1)\n",
+ "Requirement already satisfied: python-dateutil>=2.8.2 in /opt/miniconda3/lib/python3.12/site-packages (from pandas->torch_snippets==0.540) (2.9.0.post0)\n",
+ "Requirement already satisfied: pytz>=2020.1 in /opt/miniconda3/lib/python3.12/site-packages (from pandas->torch_snippets==0.540) (2024.1)\n",
+ "Requirement already satisfied: tzdata>=2022.7 in /opt/miniconda3/lib/python3.12/site-packages (from pandas->torch_snippets==0.540) (2024.1)\n",
+ "Requirement already satisfied: annotated-types>=0.4.0 in /opt/miniconda3/lib/python3.12/site-packages (from pydantic->torch_snippets==0.540) (0.7.0)\n",
+ "Requirement already satisfied: pydantic-core==2.20.1 in /opt/miniconda3/lib/python3.12/site-packages (from pydantic->torch_snippets==0.540) (2.20.1)\n",
+ "Requirement already satisfied: colorama>=0.3.9 in /opt/miniconda3/lib/python3.12/site-packages (from icecream->torch_snippets==0.540) (0.4.6)\n",
+ "Requirement already satisfied: pygments>=2.2.0 in /opt/miniconda3/lib/python3.12/site-packages (from icecream->torch_snippets==0.540) (2.18.0)\n",
+ "Requirement already satisfied: executing>=0.3.1 in /opt/miniconda3/lib/python3.12/site-packages (from icecream->torch_snippets==0.540) (2.0.1)\n",
+ "Requirement already satisfied: asttokens>=2.0.1 in /opt/miniconda3/lib/python3.12/site-packages (from icecream->torch_snippets==0.540) (2.4.1)\n",
+ "Requirement already satisfied: decorator in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.540) (5.1.1)\n",
+ "Requirement already satisfied: jedi>=0.16 in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.540) (0.19.1)\n",
+ "Requirement already satisfied: matplotlib-inline in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.540) (0.1.7)\n",
+ "Requirement already satisfied: prompt-toolkit<3.1.0,>=3.0.41 in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.540) (3.0.47)\n",
+ "Requirement already satisfied: stack-data in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.540) (0.6.3)\n",
+ "Requirement already satisfied: traitlets>=5.13.0 in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.540) (5.14.3)\n",
+ "Requirement already satisfied: pexpect>4.3 in /opt/miniconda3/lib/python3.12/site-packages (from ipython->torch_snippets==0.540) (4.9.0)\n",
+ "Requirement already satisfied: attrs>=19.2.0 in /opt/miniconda3/lib/python3.12/site-packages (from jsonlines->torch_snippets==0.540) (23.2.0)\n",
+ "Requirement already satisfied: contourpy>=1.0.1 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.540) (1.2.1)\n",
+ "Requirement already satisfied: cycler>=0.10 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.540) (0.12.1)\n",
+ "Requirement already satisfied: fonttools>=4.22.0 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.540) (4.53.1)\n",
+ "Requirement already satisfied: kiwisolver>=1.3.1 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.540) (1.4.5)\n",
+ "Requirement already satisfied: pyparsing>=2.3.1 in /opt/miniconda3/lib/python3.12/site-packages (from matplotlib->torch_snippets==0.540) (3.1.2)\n",
+ "Requirement already satisfied: beautifulsoup4 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (4.12.3)\n",
+ "Requirement already satisfied: bleach!=5.0.0 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (6.1.0)\n",
+ "Requirement already satisfied: defusedxml in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (0.7.1)\n",
+ "Requirement already satisfied: jupyter-core>=4.7 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (5.7.2)\n",
+ "Requirement already satisfied: jupyterlab-pygments in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (0.3.0)\n",
+ "Requirement already satisfied: markupsafe>=2.0 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (2.1.5)\n",
+ "Requirement already satisfied: mistune<4,>=2.0.3 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (3.0.2)\n",
+ "Requirement already satisfied: nbclient>=0.5.0 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (0.10.0)\n",
+ "Requirement already satisfied: pandocfilters>=1.4.1 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (1.5.1)\n",
+ "Requirement already satisfied: tinycss2 in /opt/miniconda3/lib/python3.12/site-packages (from nbconvert->torch_snippets==0.540) (1.3.0)\n",
+ "Requirement already satisfied: fastjsonschema>=2.15 in /opt/miniconda3/lib/python3.12/site-packages (from nbformat->torch_snippets==0.540) (2.20.0)\n",
+ "Requirement already satisfied: click in /opt/miniconda3/lib/python3.12/site-packages (from nltk->torch_snippets==0.540) (8.1.7)\n",
+ "Requirement already satisfied: joblib in /opt/miniconda3/lib/python3.12/site-packages (from nltk->torch_snippets==0.540) (1.4.2)\n",
+ "Requirement already satisfied: regex>=2021.8.3 in /opt/miniconda3/lib/python3.12/site-packages (from nltk->torch_snippets==0.540) (2024.7.24)\n",
+ "Requirement already satisfied: cfgv>=2.0.0 in /opt/miniconda3/lib/python3.12/site-packages (from pre-commit->torch_snippets==0.540) (3.4.0)\n",
+ "Requirement already satisfied: identify>=1.0.0 in /opt/miniconda3/lib/python3.12/site-packages (from pre-commit->torch_snippets==0.540) (2.6.0)\n",
+ "Requirement already satisfied: nodeenv>=0.11.1 in /opt/miniconda3/lib/python3.12/site-packages (from pre-commit->torch_snippets==0.540) (1.9.1)\n",
+ "Requirement already satisfied: virtualenv>=20.10.0 in /opt/miniconda3/lib/python3.12/site-packages (from pre-commit->torch_snippets==0.540) (20.26.3)\n",
+ "Requirement already satisfied: PyMuPDFb==1.24.9 in /opt/miniconda3/lib/python3.12/site-packages (from pymupdf->torch_snippets==0.540) (1.24.9)\n",
+ "Requirement already satisfied: Levenshtein==0.25.1 in /opt/miniconda3/lib/python3.12/site-packages (from python-Levenshtein->torch_snippets==0.540) (0.25.1)\n",
+ "Requirement already satisfied: rapidfuzz<4.0.0,>=3.8.0 in /opt/miniconda3/lib/python3.12/site-packages (from Levenshtein==0.25.1->python-Levenshtein->torch_snippets==0.540) (3.9.4)\n",
+ "Requirement already satisfied: markdown-it-py>=2.2.0 in /opt/miniconda3/lib/python3.12/site-packages (from rich->torch_snippets==0.540) (3.0.0)\n",
+ "Requirement already satisfied: threadpoolctl>=3.1.0 in /opt/miniconda3/lib/python3.12/site-packages (from scikit-learn->torch_snippets==0.540) (3.5.0)\n",
+ "Requirement already satisfied: shellingham>=1.3.0 in /opt/miniconda3/lib/python3.12/site-packages (from typer->torch_snippets==0.540) (1.5.4)\n",
+ "Requirement already satisfied: webencodings in /opt/miniconda3/lib/python3.12/site-packages (from bleach!=5.0.0->nbconvert->torch_snippets==0.540) (0.5.1)\n",
+ "Requirement already satisfied: parso<0.9.0,>=0.8.3 in /opt/miniconda3/lib/python3.12/site-packages (from jedi>=0.16->ipython->torch_snippets==0.540) (0.8.4)\n",
+ "Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /opt/miniconda3/lib/python3.12/site-packages (from jsonschema>=3.0->altair->torch_snippets==0.540) (2023.12.1)\n",
+ "Requirement already satisfied: referencing>=0.28.4 in /opt/miniconda3/lib/python3.12/site-packages (from jsonschema>=3.0->altair->torch_snippets==0.540) (0.35.1)\n",
+ "Requirement already satisfied: rpds-py>=0.7.1 in /opt/miniconda3/lib/python3.12/site-packages (from jsonschema>=3.0->altair->torch_snippets==0.540) (0.19.0)\n",
+ "Requirement already satisfied: platformdirs>=2.5 in /opt/miniconda3/lib/python3.12/site-packages (from jupyter-core>=4.7->nbconvert->torch_snippets==0.540) (3.10.0)\n",
+ "Requirement already satisfied: mdurl~=0.1 in /opt/miniconda3/lib/python3.12/site-packages (from markdown-it-py>=2.2.0->rich->torch_snippets==0.540) (0.1.2)\n",
+ "Requirement already satisfied: jupyter-client>=6.1.12 in /opt/miniconda3/lib/python3.12/site-packages (from nbclient>=0.5.0->nbconvert->torch_snippets==0.540) (8.6.2)\n",
+ "Requirement already satisfied: ptyprocess>=0.5 in /opt/miniconda3/lib/python3.12/site-packages (from pexpect>4.3->ipython->torch_snippets==0.540) (0.7.0)\n",
+ "Requirement already satisfied: wcwidth in /opt/miniconda3/lib/python3.12/site-packages (from prompt-toolkit<3.1.0,>=3.0.41->ipython->torch_snippets==0.540) (0.2.13)\n",
+ "Requirement already satisfied: networkx>=2.8 in /opt/miniconda3/lib/python3.12/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch_snippets==0.540) (3.3)\n",
+ "Requirement already satisfied: tifffile>=2022.8.12 in /opt/miniconda3/lib/python3.12/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch_snippets==0.540) (2024.7.24)\n",
+ "Requirement already satisfied: lazy-loader>=0.4 in /opt/miniconda3/lib/python3.12/site-packages (from scikit-image>=0.14.2->imgaug>=0.4.0->torch_snippets==0.540) (0.4)\n",
+ "Requirement already satisfied: distlib<1,>=0.3.7 in /opt/miniconda3/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit->torch_snippets==0.540) (0.3.8)\n",
+ "Requirement already satisfied: filelock<4,>=3.12.2 in /opt/miniconda3/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit->torch_snippets==0.540) (3.15.4)\n",
+ "Requirement already satisfied: soupsieve>1.2 in /opt/miniconda3/lib/python3.12/site-packages (from beautifulsoup4->nbconvert->torch_snippets==0.540) (2.5)\n",
+ "Requirement already satisfied: pure-eval in /opt/miniconda3/lib/python3.12/site-packages (from stack-data->ipython->torch_snippets==0.540) (0.2.3)\n",
+ "Requirement already satisfied: pyzmq>=23.0 in /opt/miniconda3/lib/python3.12/site-packages (from jupyter-client>=6.1.12->nbclient>=0.5.0->nbconvert->torch_snippets==0.540) (26.0.3)\n",
+ "Requirement already satisfied: tornado>=6.2 in /opt/miniconda3/lib/python3.12/site-packages (from jupyter-client>=6.1.12->nbclient>=0.5.0->nbconvert->torch_snippets==0.540) (6.4.1)\n",
"Installing collected packages: torch_snippets\n",
" Attempting uninstall: torch_snippets\n",
- " Found existing installation: torch_snippets 0.6.0\n",
- " Uninstalling torch_snippets-0.6.0:\n",
- " Successfully uninstalled torch_snippets-0.6.0\n",
+ " Found existing installation: torch_snippets 0.539\n",
+ " Uninstalling torch_snippets-0.539:\n",
+ " Successfully uninstalled torch_snippets-0.539\n",
" Running setup.py develop for torch_snippets\n",
- "Successfully installed torch_snippets-0.6.0\n",
+ "Successfully installed torch_snippets-0.540\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
@@ -164,17 +164,17 @@
},
{
"cell_type": "code",
- "execution_count": 16,
+ "execution_count": 35,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
- "[08/24/24 10:45:12] INFO loaded 26 lines 4135304039.py::3\" target=\"_blank\"><module>:3\n",
+ "[08/24/24 12:50:22] INFO loaded 26 lines 4135304039.py::3\" target=\"_blank\"><module>:3\n",
"
\n"
],
"text/plain": [
- "\u001b[2;36m[08/24/24 10:45:12]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m loaded \u001b[1;36m26\u001b[0m lines \u001b]8;id=273388;file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_28891/4135304039.py:3\u001b\\\u001b[2m4135304039.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=265057;file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_28891/4135304039.py:3#:3\u001b\\\u001b[2m:3\u001b[0m\u001b]8;;\u001b\\\n"
+ "\u001b[2;36m[08/24/24 12:50:22]\u001b[0m\u001b[2;36m \u001b[0m\u001b[2;33mINFO \u001b[0m loaded \u001b[1;36m26\u001b[0m lines \u001b]8;id=282456;file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_28891/4135304039.py:3\u001b\\\u001b[2m4135304039.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=204178;file:///var/folders/1_/71dqv9vx2750gmyz77q_f45w0000gn/T/ipykernel_28891/4135304039.py:3#:3\u001b\\\u001b[2m:3\u001b[0m\u001b]8;;\u001b\\\n"
]
},
"metadata": {},
@@ -183,10 +183,10 @@
{
"data": {
"text/plain": [
- "'0.6.0'"
+ "'0.540'"
]
},
- "execution_count": 16,
+ "execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
@@ -200,7 +200,7 @@
},
{
"cell_type": "code",
- "execution_count": 17,
+ "execution_count": 36,
"metadata": {},
"outputs": [
{
@@ -239,72 +239,72 @@
"adding license file 'LICENSE.txt'\n",
"writing manifest file 'torch_snippets.egg-info/SOURCES.txt'\n",
"running check\n",
- "creating torch_snippets-0.6.0\n",
- "creating torch_snippets-0.6.0/torch_snippets\n",
- "creating torch_snippets-0.6.0/torch_snippets.egg-info\n",
- "creating torch_snippets-0.6.0/torch_snippets/thinc_parser\n",
- "creating torch_snippets-0.6.0/torch_snippets/trainer\n",
- "copying files to torch_snippets-0.6.0...\n",
- "copying LICENSE -> torch_snippets-0.6.0\n",
- "copying LICENSE.txt -> torch_snippets-0.6.0\n",
- "copying MANIFEST.in -> torch_snippets-0.6.0\n",
- "copying README.md -> torch_snippets-0.6.0\n",
- "copying settings.ini -> torch_snippets-0.6.0\n",
- "copying setup.cfg -> torch_snippets-0.6.0\n",
- "copying setup.py -> torch_snippets-0.6.0\n",
- "copying torch_snippets/__init__.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/__module_timing__.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/_modidx.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/_nbdev.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/adapters.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/bb_utils.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/bokeh_loader.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/charts.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/cli.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/dates.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/decorators.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/fastcores.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/icecream.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/imgaug_loader.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/inspector.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/interactive_show.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/ipython.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/load_defaults.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/loader.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/logger.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/markup.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/markup2.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/misc.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/paths.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/pdf_loader.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/registry.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/s3_loader.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/scp.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/sklegos.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/text_utils.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/tmp.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/torch_loader.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/video.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets/zen.py -> torch_snippets-0.6.0/torch_snippets\n",
- "copying torch_snippets.egg-info/PKG-INFO -> torch_snippets-0.6.0/torch_snippets.egg-info\n",
- "copying torch_snippets.egg-info/SOURCES.txt -> torch_snippets-0.6.0/torch_snippets.egg-info\n",
- "copying torch_snippets.egg-info/dependency_links.txt -> torch_snippets-0.6.0/torch_snippets.egg-info\n",
- "copying torch_snippets.egg-info/entry_points.txt -> torch_snippets-0.6.0/torch_snippets.egg-info\n",
- "copying torch_snippets.egg-info/not-zip-safe -> torch_snippets-0.6.0/torch_snippets.egg-info\n",
- "copying torch_snippets.egg-info/requires.txt -> torch_snippets-0.6.0/torch_snippets.egg-info\n",
- "copying torch_snippets.egg-info/top_level.txt -> torch_snippets-0.6.0/torch_snippets.egg-info\n",
- "copying torch_snippets/thinc_parser/__init__.py -> torch_snippets-0.6.0/torch_snippets/thinc_parser\n",
- "copying torch_snippets/thinc_parser/parser.py -> torch_snippets-0.6.0/torch_snippets/thinc_parser\n",
- "copying torch_snippets/trainer/__init__.py -> torch_snippets-0.6.0/torch_snippets/trainer\n",
- "copying torch_snippets/trainer/capsule.py -> torch_snippets-0.6.0/torch_snippets/trainer\n",
- "copying torch_snippets/trainer/config.py -> torch_snippets-0.6.0/torch_snippets/trainer\n",
- "copying torch_snippets/trainer/hooks.py -> torch_snippets-0.6.0/torch_snippets/trainer\n",
- "copying torch_snippets/trainer/neural_graph.py -> torch_snippets-0.6.0/torch_snippets/trainer\n",
- "copying torch_snippets.egg-info/SOURCES.txt -> torch_snippets-0.6.0/torch_snippets.egg-info\n",
- "Writing torch_snippets-0.6.0/setup.cfg\n",
+ "creating torch_snippets-0.540\n",
+ "creating torch_snippets-0.540/torch_snippets\n",
+ "creating torch_snippets-0.540/torch_snippets.egg-info\n",
+ "creating torch_snippets-0.540/torch_snippets/thinc_parser\n",
+ "creating torch_snippets-0.540/torch_snippets/trainer\n",
+ "copying files to torch_snippets-0.540...\n",
+ "copying LICENSE -> torch_snippets-0.540\n",
+ "copying LICENSE.txt -> torch_snippets-0.540\n",
+ "copying MANIFEST.in -> torch_snippets-0.540\n",
+ "copying README.md -> torch_snippets-0.540\n",
+ "copying settings.ini -> torch_snippets-0.540\n",
+ "copying setup.cfg -> torch_snippets-0.540\n",
+ "copying setup.py -> torch_snippets-0.540\n",
+ "copying torch_snippets/__init__.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/__module_timing__.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/_modidx.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/_nbdev.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/adapters.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/bb_utils.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/bokeh_loader.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/charts.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/cli.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/dates.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/decorators.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/fastcores.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/icecream.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/imgaug_loader.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/inspector.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/interactive_show.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/ipython.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/load_defaults.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/loader.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/logger.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/markup.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/markup2.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/misc.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/paths.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/pdf_loader.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/registry.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/s3_loader.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/scp.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/sklegos.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/text_utils.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/tmp.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/torch_loader.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/video.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets/zen.py -> torch_snippets-0.540/torch_snippets\n",
+ "copying torch_snippets.egg-info/PKG-INFO -> torch_snippets-0.540/torch_snippets.egg-info\n",
+ "copying torch_snippets.egg-info/SOURCES.txt -> torch_snippets-0.540/torch_snippets.egg-info\n",
+ "copying torch_snippets.egg-info/dependency_links.txt -> torch_snippets-0.540/torch_snippets.egg-info\n",
+ "copying torch_snippets.egg-info/entry_points.txt -> torch_snippets-0.540/torch_snippets.egg-info\n",
+ "copying torch_snippets.egg-info/not-zip-safe -> torch_snippets-0.540/torch_snippets.egg-info\n",
+ "copying torch_snippets.egg-info/requires.txt -> torch_snippets-0.540/torch_snippets.egg-info\n",
+ "copying torch_snippets.egg-info/top_level.txt -> torch_snippets-0.540/torch_snippets.egg-info\n",
+ "copying torch_snippets/thinc_parser/__init__.py -> torch_snippets-0.540/torch_snippets/thinc_parser\n",
+ "copying torch_snippets/thinc_parser/parser.py -> torch_snippets-0.540/torch_snippets/thinc_parser\n",
+ "copying torch_snippets/trainer/__init__.py -> torch_snippets-0.540/torch_snippets/trainer\n",
+ "copying torch_snippets/trainer/capsule.py -> torch_snippets-0.540/torch_snippets/trainer\n",
+ "copying torch_snippets/trainer/config.py -> torch_snippets-0.540/torch_snippets/trainer\n",
+ "copying torch_snippets/trainer/hooks.py -> torch_snippets-0.540/torch_snippets/trainer\n",
+ "copying torch_snippets/trainer/neural_graph.py -> torch_snippets-0.540/torch_snippets/trainer\n",
+ "copying torch_snippets.egg-info/SOURCES.txt -> torch_snippets-0.540/torch_snippets.egg-info\n",
+ "Writing torch_snippets-0.540/setup.cfg\n",
"creating dist\n",
"Creating tar archive\n",
- "removing 'torch_snippets-0.6.0' (and everything under it)\n",
+ "removing 'torch_snippets-0.540' (and everything under it)\n",
"running bdist_wheel\n",
"running build\n",
"running build_py\n",
@@ -417,10 +417,10 @@
"copying build/lib/torch_snippets/adapters.py -> build/bdist.macosx-11.1-arm64/wheel/torch_snippets\n",
"copying build/lib/torch_snippets/decorators.py -> build/bdist.macosx-11.1-arm64/wheel/torch_snippets\n",
"running install_egg_info\n",
- "Copying torch_snippets.egg-info to build/bdist.macosx-11.1-arm64/wheel/torch_snippets-0.6.0-py3.12.egg-info\n",
+ "Copying torch_snippets.egg-info to build/bdist.macosx-11.1-arm64/wheel/torch_snippets-0.540-py3.12.egg-info\n",
"running install_scripts\n",
- "creating build/bdist.macosx-11.1-arm64/wheel/torch_snippets-0.6.0.dist-info/WHEEL\n",
- "creating 'dist/torch_snippets-0.6.0-py3-none-any.whl' and adding 'build/bdist.macosx-11.1-arm64/wheel' to it\n",
+ "creating build/bdist.macosx-11.1-arm64/wheel/torch_snippets-0.540.dist-info/WHEEL\n",
+ "creating 'dist/torch_snippets-0.540-py3-none-any.whl' and adding 'build/bdist.macosx-11.1-arm64/wheel' to it\n",
"adding 'torch_snippets/__init__.py'\n",
"adding 'torch_snippets/__module_timing__.py'\n",
"adding 'torch_snippets/_modidx.py'\n",
@@ -462,22 +462,22 @@
"adding 'torch_snippets/trainer/config.py'\n",
"adding 'torch_snippets/trainer/hooks.py'\n",
"adding 'torch_snippets/trainer/neural_graph.py'\n",
- "adding 'torch_snippets-0.6.0.dist-info/LICENSE'\n",
- "adding 'torch_snippets-0.6.0.dist-info/LICENSE.txt'\n",
- "adding 'torch_snippets-0.6.0.dist-info/METADATA'\n",
- "adding 'torch_snippets-0.6.0.dist-info/WHEEL'\n",
- "adding 'torch_snippets-0.6.0.dist-info/entry_points.txt'\n",
- "adding 'torch_snippets-0.6.0.dist-info/top_level.txt'\n",
- "adding 'torch_snippets-0.6.0.dist-info/RECORD'\n",
+ "adding 'torch_snippets-0.540.dist-info/LICENSE'\n",
+ "adding 'torch_snippets-0.540.dist-info/LICENSE.txt'\n",
+ "adding 'torch_snippets-0.540.dist-info/METADATA'\n",
+ "adding 'torch_snippets-0.540.dist-info/WHEEL'\n",
+ "adding 'torch_snippets-0.540.dist-info/entry_points.txt'\n",
+ "adding 'torch_snippets-0.540.dist-info/top_level.txt'\n",
+ "adding 'torch_snippets-0.540.dist-info/RECORD'\n",
"removing build/bdist.macosx-11.1-arm64/wheel\n",
"Uploading distributions to https://upload.pypi.org/legacy/\n",
- "Uploading torch_snippets-0.6.0-py3-none-any.whl\n",
- "\u001b[2K\u001b[35m100%\u001b[0m \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m110.9/110.9 kB\u001b[0m • \u001b[33m00:00\u001b[0m • \u001b[31m216.3 MB/s\u001b[0m\n",
- "\u001b[?25hUploading torch_snippets-0.6.0.tar.gz\n",
- "\u001b[2K\u001b[35m100%\u001b[0m \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m97.2/97.2 kB\u001b[0m • \u001b[33m00:00\u001b[0m • \u001b[31m150.9 MB/s\u001b[0m\n",
+ "Uploading torch_snippets-0.540-py3-none-any.whl\n",
+ "\u001b[2K\u001b[35m100%\u001b[0m \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m111.2/111.2 kB\u001b[0m • \u001b[33m00:01\u001b[0m • \u001b[31m380.4 MB/s\u001b[0m\n",
+ "\u001b[?25hUploading torch_snippets-0.540.tar.gz\n",
+ "\u001b[2K\u001b[35m100%\u001b[0m \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m97.4/97.4 kB\u001b[0m • \u001b[33m00:00\u001b[0m • \u001b[31m156.6 MB/s\u001b[0m\n",
"\u001b[?25h\n",
"\u001b[32mView at:\u001b[0m\n",
- "https://pypi.org/project/torch-snippets/0.6.0/\n"
+ "https://pypi.org/project/torch-snippets/0.540/\n"
]
}
],
@@ -488,7 +488,7 @@
},
{
"cell_type": "code",
- "execution_count": 19,
+ "execution_count": 37,
"metadata": {},
"outputs": [
{
@@ -520,6 +520,19 @@
" warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n",
"/opt/miniconda3/lib/python3.12/site-packages/nbdev/processors.py:222: UserWarning: Found cells containing imports and other code. See FAQ.\n",
"---\n",
+ "try:\n",
+ " import torch\n",
+ "\n",
+ " d = AD(a=torch.Tensor([1, 2, 3]), b=\"hello\")\n",
+ " write_json(d, \"/tmp/tmp.json\")\n",
+ " print(\"\\n\".join(readlines(\"/tmp/tmp.json\")))\n",
+ "except ModuleNotFoundError:\n",
+ " ...\n",
+ "---\n",
+ "\n",
+ " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n",
+ "/opt/miniconda3/lib/python3.12/site-packages/nbdev/processors.py:222: UserWarning: Found cells containing imports and other code. See FAQ.\n",
+ "---\n",
"@timeit\n",
"@io\n",
"def foo(a, b):\n",
@@ -545,17 +558,27 @@
" warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n",
"/opt/miniconda3/lib/python3.12/site-packages/nbdev/processors.py:222: UserWarning: Found cells containing imports and other code. See FAQ.\n",
"---\n",
- "try:\n",
- " import torch\n",
+ "# https://youtu.be/XcU-a-eksMA\n",
+ "from IPython.display import YouTubeVideo\n",
"\n",
- " d = AD(a=torch.Tensor([1, 2, 3]), b=\"hello\")\n",
- " write_json(d, \"/tmp/tmp.json\")\n",
- " print(\"\\n\".join(readlines(\"/tmp/tmp.json\")))\n",
- "except ModuleNotFoundError:\n",
- " ...\n",
+ "# Replace 'video_id' with the actual YouTube video ID\n",
+ "YouTubeVideo('XcU-a-eksMA', width=560, height=315)\n",
+ "---\n",
+ "\n",
+ " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n",
+ "/opt/miniconda3/lib/python3.12/site-packages/nbdev/processors.py:222: UserWarning: Found cells containing imports and other code. See FAQ.\n",
+ "---\n",
+ "def do(im_path):\n",
+ " from torch_snippets import show, read\n",
+ " im = read(im_path)\n",
+ " show(im, sz=3)\n",
+ " print(im.mean())\n",
+ "\n",
+ "do('../assets/Preamble.png')\n",
"---\n",
"\n",
" warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n",
+ "[ WARN:0@0.009] global loadsave.cpp:241 findDecoder imread_('../assets/Preamble.png'): can't open/read file: check file path/integrity\n",
"/opt/miniconda3/lib/python3.12/site-packages/nbdev/processors.py:222: UserWarning: Found cells containing imports and other code. See FAQ.\n",
"---\n",
"import random\n",
@@ -583,10 +606,9 @@
"import random\n",
"\n",
"random.seed(10)\n",
- "errors = []\n",
"\n",
"\n",
- "@tryy(silence_errors=True, store_errors=errors, output_to_return_on_fail=\"😔\")\n",
+ "@tryy(silence_errors=True)\n",
"def do(a, b, c):\n",
" if c < 50:\n",
" return 1 / 0\n",
@@ -636,7 +658,7 @@
" warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n",
"/opt/miniconda3/lib/python3.12/site-packages/nbdev/processors.py:222: UserWarning: Found cells containing imports and other code. See FAQ.\n",
"---\n",
- "from torch_snippets.inspector import inspect\n",
+ "from torch_snippets.markup2 import AD\n",
"from torch.utils.data import TensorDataset\n",
"\n",
"trn_ds = TensorDataset(*[torch.Tensor(i) for i in [X_trn, y_trn]])\n",
@@ -645,7 +667,67 @@
"val_ds = TensorDataset(*[torch.Tensor(i) for i in [X_val, y_val]])\n",
"val_dl = DataLoader(val_ds, batch_size=32)\n",
"\n",
- "inspect(next(iter(val_dl)))\n",
+ "AD(next(iter(val_dl)))\n",
+ "---\n",
+ "\n",
+ " warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n",
+ "/opt/miniconda3/lib/python3.12/site-packages/nbdev/processors.py:222: UserWarning: Found cells containing imports and other code. See FAQ.\n",
+ "---\n",
+ "from torch_snippets.trainer.capsule import Capsule, train, validate, predict\n",
+ "\n",
+ "\n",
+ "class IrisModel(Capsule):\n",
+ " def __init__(self):\n",
+ " super().__init__()\n",
+ " self.model = nn.Sequential(\n",
+ " nn.BatchNorm1d(4),\n",
+ " nn.Linear(4, 16),\n",
+ " nn.Dropout(0.2),\n",
+ " nn.BatchNorm1d(16),\n",
+ " nn.ReLU(inplace=True),\n",
+ " nn.Linear(16, 8),\n",
+ " nn.Dropout(0.2),\n",
+ " nn.BatchNorm1d(8),\n",
+ " nn.ReLU(inplace=True),\n",
+ " nn.Linear(8, 3),\n",
+ " )\n",
+ " self.loss_fn = nn.CrossEntropyLoss()\n",
+ " self.optimizer = optim.Adam(self.parameters())\n",
+ "\n",
+ " def forward(self, x):\n",
+ " return self.model(x)\n",
+ "\n",
+ " @train\n",
+ " def train_batch(self, batch):\n",
+ " x, y = batch\n",
+ " _y = self.forward(x)\n",
+ " loss = self.loss_fn(_y, y.long())\n",
+ " return {\"loss\": loss}\n",
+ "\n",
+ " @validate\n",
+ " def validate_batch(self, batch=None, dl=None):\n",
+ " if dl is not None:\n",
+ " output = []\n",
+ " for batch in dl:\n",
+ " output.extend(self.predict(batch=batch)[\"val_acc\"])\n",
+ " return np.mean(output)\n",
+ " x, y = batch\n",
+ " _y = self.forward(x)\n",
+ " loss = self.loss_fn(_y, y.long())\n",
+ " acc = (y == _y.max(-1)[1]).float().mean()\n",
+ " return {\"val_loss\": loss, \"val_acc\": acc}\n",
+ "\n",
+ " @predict\n",
+ " def predict(self, batch=None, dl=None):\n",
+ " if dl is not None:\n",
+ " output = []\n",
+ " for batch in dl:\n",
+ " output.extend(self.predict(batch=batch))\n",
+ " return output\n",
+ " x, y = batch\n",
+ " _y = self.forward(x)\n",
+ " o = _y.max(-1)[1].cpu().detach().numpy().tolist()\n",
+ " return o\n",
"---\n",
"\n",
" warn(f'Found cells containing imports and other code. See FAQ.\\n---\\n{cell.source}\\n---\\n')\n",
@@ -654,12 +736,15 @@
"Traceback (most recent call last):\n",
" File \"/opt/miniconda3/lib/python3.12/site-packages/IPython/core/interactiveshell.py\", line 3577, in run_code\n",
" exec(code_obj, self.user_global_ns, self.user_ns)\n",
- " File \"\", line 3, in \n",
- " spider(\n",
- " File \"\", line 67, in spider\n",
- " fig, ax = plt.subplots(figsize=(sz, sz), subplot_kw=dict(polar=True))\n",
- " ^^^\n",
- "NameError: name 'plt' is not defined. Did you mean: 'alt'?\n",
+ " File \"\", line 7, in \n",
+ " do('../assets/Preamble.png')\n",
+ " File \"\", line 3, in do\n",
+ " im = read(im_path)\n",
+ " ^^^^^^^^^^^^^\n",
+ " File \"/Users/yeshwanth/Code/Personal/torch_snippets/torch_snippets/loader.py\", line 233, in read\n",
+ " img = img[..., ::-1] # BGR to RGB\n",
+ " ~~~^^^^^^^^^^^\n",
+ "TypeError: 'NoneType' object is not subscriptable\n",
"\n",
"The above exception was the direct cause of the following exception:\n",
"\n",
@@ -692,24 +777,14 @@
" ^^^^^^^^^^\n",
" File \"/opt/miniconda3/lib/python3.12/site-packages/nbdev/processors.py\", line 241, in __call__\n",
" raise Exception(f\"Error{' in notebook: '+title if title else ''} in cell {cell.idx_} :\\n{cell.source}\") from self.k.exc[1]\n",
- "Exception: Error in cell 15 :\n",
- "import pandas as pd\n",
- "\n",
- "spider(\n",
- " pd.DataFrame(\n",
- " {\n",
- " \"x\": [*\"abcde\"],\n",
- " \"c1\": [10, 11, 12, 13, 14],\n",
- " \"c2\": [0.1, 0.3, 0.4, 0.1, 0.9],\n",
- " \"c3\": [1e5, 2e5, 3.5e5, 8e4, 5e4],\n",
- " \"c4\": [9, 12, 5, 2, 0.2],\n",
- " \"test\": [1, 1, 1, 1, 5],\n",
- " },\n",
- " index=[*\"abcde\"],\n",
- " ),\n",
- " title=\"Sample Spider\",\n",
- " padding=1.1,\n",
- ")\n",
+ "Exception: Error in notebook: Rich Logging and printing in cell 23 :\n",
+ "def do(im_path):\n",
+ " from torch_snippets import show, read\n",
+ " im = read(im_path)\n",
+ " show(im, sz=3)\n",
+ " print(im.mean())\n",
+ "\n",
+ "do('../assets/Preamble.png')\n",
"\"\"\"\n",
"\n",
"The above exception was the direct cause of the following exception:\n",
@@ -754,24 +829,14 @@
" ^^^^^^^^^^^^^^^^^^^\n",
" File \"/opt/miniconda3/lib/python3.12/concurrent/futures/_base.py\", line 401, in __get_result\n",
" raise self._exception\n",
- "Exception: Error in cell 15 :\n",
- "import pandas as pd\n",
- "\n",
- "spider(\n",
- " pd.DataFrame(\n",
- " {\n",
- " \"x\": [*\"abcde\"],\n",
- " \"c1\": [10, 11, 12, 13, 14],\n",
- " \"c2\": [0.1, 0.3, 0.4, 0.1, 0.9],\n",
- " \"c3\": [1e5, 2e5, 3.5e5, 8e4, 5e4],\n",
- " \"c4\": [9, 12, 5, 2, 0.2],\n",
- " \"test\": [1, 1, 1, 1, 5],\n",
- " },\n",
- " index=[*\"abcde\"],\n",
- " ),\n",
- " title=\"Sample Spider\",\n",
- " padding=1.1,\n",
- ")\n"
+ "Exception: Error in notebook: Rich Logging and printing in cell 23 :\n",
+ "def do(im_path):\n",
+ " from torch_snippets import show, read\n",
+ " im = read(im_path)\n",
+ " show(im, sz=3)\n",
+ " print(im.mean())\n",
+ "\n",
+ "do('../assets/Preamble.png')\n"
]
}
],
@@ -781,28 +846,37 @@
},
{
"cell_type": "code",
- "execution_count": 6,
+ "execution_count": 38,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "[master a2cf6d4] 0.539\n",
- " 20 files changed, 1625 insertions(+), 329 deletions(-)\n",
- " create mode 100644 torch_snippets.egg-info/entry_points.txt\n",
- " create mode 100644 torch_snippets/cli.py\n",
- " create mode 100644 torch_snippets/s3_loader.py\n",
- " create mode 100644 torch_snippets/zen.py\n",
- "Enumerating objects: 47, done.\n",
- "Counting objects: 100% (47/47), done.\n",
+ "[master 72e85c2] 0.540\n",
+ " 98 files changed, 23423 insertions(+), 7738 deletions(-)\n",
+ " create mode 100644 __module_timing__.py.lprof\n",
+ " create mode 100644 _proc/bokeh_plotting.ipynb\n",
+ " create mode 100644 _proc/capsule.ipynb\n",
+ " create mode 100644 _proc/charts.ipynb\n",
+ " create mode 100644 _proc/config.ipynb\n",
+ " create mode 100644 _proc/interactive_show.ipynb\n",
+ " delete mode 100644 _proc/logging.ipynb\n",
+ " create mode 100644 _proc/sklegos.ipynb\n",
+ " create mode 100644 debug/profile_time.txt\n",
+ " create mode 100644 debug/profile_time_202408241027.txt\n",
+ " create mode 100644 docs/AttrDict.html\n",
+ " create mode 100644 docs/charts_files/figure-html/cell-7-output-1.png\n",
+ " create mode 100644 torch_snippets/__module_timing__.py\n",
+ "Enumerating objects: 207, done.\n",
+ "Counting objects: 100% (207/207), done.\n",
"Delta compression using up to 12 threads\n",
- "Compressing objects: 100% (25/25), done.\n",
- "Writing objects: 100% (26/26), 14.37 KiB | 4.79 MiB/s, done.\n",
- "Total 26 (delta 20), reused 0 (delta 0), pack-reused 0\n",
- "remote: Resolving deltas: 100% (20/20), completed with 19 local objects.\u001b[K\n",
+ "Compressing objects: 100% (110/110), done.\n",
+ "Writing objects: 100% (114/114), 1.12 MiB | 4.66 MiB/s, done.\n",
+ "Total 114 (delta 84), reused 1 (delta 1), pack-reused 0\n",
+ "remote: Resolving deltas: 100% (84/84), completed with 62 local objects.\u001b[K\n",
"To ssh://github.com/sizhky/torch_snippets\n",
- " 7d0b19f..a2cf6d4 master -> master\n"
+ " a2cf6d4..72e85c2 master -> master\n"
]
}
],
diff --git a/testing.ipynb b/testing.ipynb
index 406e729..ea11e57 100644
--- a/testing.ipynb
+++ b/testing.ipynb
@@ -263,7 +263,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.15"
+ "version": "3.12.4"
}
},
"nbformat": 4,