From b6282db9957c1ed1598bd04a17a5b62147f2222a Mon Sep 17 00:00:00 2001 From: Jeremy Howard Date: Sun, 1 Sep 2024 15:54:40 +1000 Subject: [PATCH] rm envs --- index.ipynb | 86 ++++++++--------------------------------------------- 1 file changed, 13 insertions(+), 73 deletions(-) diff --git a/index.ipynb b/index.ipynb index 9a9f3de..67fb056 100644 --- a/index.ipynb +++ b/index.ipynb @@ -11,7 +11,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -21,7 +20,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -29,7 +27,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -37,7 +34,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -45,63 +41,6 @@ ] }, { - "attachments": {}, - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Setup" - ] - }, - { - "attachments": {}, - "cell_type": "markdown", - "metadata": {}, - "source": [ - "It can be helpful to have a dedicated environment for development. Here we are assuming that you have an conda environment file called `env.yml` named after `{{lib_path}}` i.e.:\n", - "\n", - "```yaml\n", - "# env.yml\n", - "name: {{lib_path}}\n", - "\n", - "channels:\n", - " - fastai\n", - "\n", - "dependencies:\n", - " - fastai::nbdev>=2.3.12\n", - "# - python>=3.11 # specify python version if required \n", - "# - dependency 1\n", - "# - dependency 2\n", - "# - pip\n", - "# pip:\n", - "# - pip dependency 1\n", - "# - pip dependency 2\n", - "```" - ] - }, - { - "attachments": {}, - "cell_type": "markdown", - "metadata": {}, - "source": [ - "You can then use `conda` or `mamba` (faster at resolving) to create and update your environment file should your needs change as you work on `{{lib_path}}`" - ] - }, - { - "attachments": {}, - "cell_type": "markdown", - "metadata": {}, - "source": [ - "```sh\n", - "# create a conda environment for working on {{repo}}\n", - "$ mamba env create -f env.yml\n", - "\n", - "# update conda environment\n", - "$ mamba env update -n {{lib_path}} --file env.yml\n", - "```" - ] - }, - { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -109,14 +48,10 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "```sh\n", - "# activate conda environment\n", - "$ conda activate {{lib_path}}\n", - "\n", "# make sure {{lib_path}} package is installed in development mode\n", "$ pip install -e .\n", "\n", @@ -129,7 +64,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -137,7 +71,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -145,7 +78,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -176,7 +108,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -184,7 +115,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -197,7 +127,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -205,7 +134,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -242,9 +170,21 @@ ], "metadata": { "kernelspec": { - "display_name": "python3", + "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,