Skip to content

Commit

Permalink
Fixed errors related with github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JaumeAmoresDS committed Jun 3, 2024
1 parent fc6b867 commit c9d21a6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
19 changes: 10 additions & 9 deletions nbs/cell2func.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@
"from nbmodular.core.utils import set_log_level\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# used for tests and examples\n",
"import pytest"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -3963,15 +3973,6 @@
"assert memory.get(\"previous_plot\").__class__.__name__ == \"CapturedIO\""
]
},
{
"cell_type": "code",
"execution_count": 119,
"metadata": {},
"outputs": [],
"source": [
"import pytest"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
24 changes: 21 additions & 3 deletions nbs/export.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@
"from nbmodular.core.cell2func import CellProcessor"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# libraries used for tests\n",
"import shutil\n",
"import os"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -905,14 +916,21 @@
" write_nb (original_nb, path)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example usage"
]
},
{
"cell_type": "code",
"execution_count": 331,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import shutil\n",
"\n",
"os.makedirs (\"nbmodular/test_nbs\", exist_ok=True)\n",
"os.makedirs (\"nbmodular/tests/test_nbs\", exist_ok=True)\n",
"shutil.copy (\"test_data/nb.py\", \"nbmodular/test_nbs/nb.py\")\n",
"shutil.copy (\"test_data/test_nb.py\", \"nbmodular/tests/test_nbs/test_nb.py\")\n",
"shutil.copy (\"nbm/test_nbs/nb.ipynb\", \"nbm/test_nbs/_nb.ipynb\")\n",
Expand Down

0 comments on commit c9d21a6

Please sign in to comment.