Skip to content

Commit

Permalink
Fix '01_working_with_penai' notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
kklemon committed Oct 24, 2024
1 parent a5d5348 commit b1a9e2a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/02_notebooks/01_working_with_penai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -12,15 +12,14 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"from IPython.display import SVG, display\n",
"\n",
"from penai.hierarchy_generation.utils import InteractivePenpotDesignVisualizer\n",
"from penai.models import PenpotProject\n",
"from penai.registries.projects import SavedPenpotProject\n",
"from penai.render import WebDriverSVGRenderer\n",
"from penai.utils.vis import (\n",
Expand Down Expand Up @@ -73,11 +72,11 @@
"metadata": {},
"outputs": [],
"source": [
"# Load a project from a project folder\n",
"project = PenpotProject.from_directory(\"../../data/raw/designs/Material Design 3\")\n",
"# Load a project from the example project registry\n",
"project = SavedPenpotProject.MATERIAL_DESIGN_3.load(pull=True)\n",
"\n",
"# OR load a project from the example project registry\n",
"project = SavedPenpotProject.MATERIAL_DESIGN_3.load(pull=True)"
"# OR from a project folder\n",
"# project = PenpotProject.from_directory(\"../../data/raw/designs/Material Design 3\")"
]
},
{
Expand Down

0 comments on commit b1a9e2a

Please sign in to comment.