diff --git a/.gitignore b/.gitignore index d090971534..47952f9bce 100644 --- a/.gitignore +++ b/.gitignore @@ -116,8 +116,7 @@ jupyter_execute # this dir contains the whole website and should not be checked in on main builtdocs/ .doit.db - -lite/ +lite/files/*/ .jupyterlite.doit.db # jetbrains settings diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3a6e21dd31..2c6c08faea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: hooks: - id: clean-notebook args: [-i, tags] - exclude: '^lite/files' + exclude: '^lite/files/.*/' - repo: https://github.com/codespell-project/codespell rev: v2.2.6 hooks: diff --git a/lite/files/Getting_Started.ipynb b/lite/files/Getting_Started.ipynb index 65b644444b..e4a8947ba4 100644 --- a/lite/files/Getting_Started.ipynb +++ b/lite/files/Getting_Started.ipynb @@ -121,55 +121,11 @@ "id": "f4efdeef-e3c5-4cb0-b358-b40f03c59f93", "metadata": {}, "source": [ - "The contents of Panelite are updated on every release, however Jupyterlite caches old edits to files. If you want to reset the storage and **delete all modifications you made to the contents** the click the button below." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "a6477040-13bc-4cbf-8939-1e893563bc1e", - "metadata": {}, - "outputs": [], - "source": [ - "from IPython.display import display, HTML\n", - "display(HTML(\"\"\"\n", - "\n", - "\n", - "\"\"\"))" + "The contents of Panelite are updated on every release, however Jupyterlite caches old edits to files. If you want to reset the storage and **delete all modifications you made to the contents** then use the [Reset_Jupyterlite.ipynb](Reset_Jupyterlite.ipynb) notebook." ] } ], "metadata": { - "kernelspec": { - "display_name": "Python (Pyodide)", - "language": "python", - "name": "python" - }, "language_info": { "name": "python", "pygments_lexer": "ipython3" diff --git a/lite/files/Reset_Jupyterlite.ipynb b/lite/files/Reset_Jupyterlite.ipynb new file mode 100644 index 0000000000..1a0444a265 --- /dev/null +++ b/lite/files/Reset_Jupyterlite.ipynb @@ -0,0 +1,61 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "The contents of Panelite are updated on every release, however Jupyterlite caches old edits to files. If you want to reset the storage and **delete all modifications you made to the contents** then run the code below and click the button `Clear JupyterLite local storage` button." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from IPython.display import display, HTML\n", + "display(HTML(\"\"\"\n", + "\n", + "
\n", + "\n", + "\"\"\"))" + ] + } + ], + "metadata": { + "language_info": { + "name": "python", + "pygments_lexer": "ipython3" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}