diff --git a/book/features/live_code.ipynb b/book/features/live_code.ipynb index a2dfb95..ff42ea6 100644 --- a/book/features/live_code.ipynb +++ b/book/features/live_code.ipynb @@ -124,11 +124,28 @@ "\n", "This will install the packages: Micropip will look at the Pyodide package index, but also at the general PyPi index. If a package is pure python (i.e. no C extensions), then it can also be used by Pyodide.\n", "\n", + "### Custom packages\n", + "If you have some custom packages you can also create a wheel to import. Therefore, create a wheel from your package by running this in the root directoy of your package: \n", + "\n", + "```shell\n", + "python setup.py bdist_wheel\n", + "```\n", + "\n", + "Copy the wheel from `dist/.whl` to your book and import the package from within a notebook using:\n", + "\n", + "```python\n", + "import micropip\n", + "await micropip.install('/.whl')\n", + "```\n", + "\n", + "Preferably with the tag `thebe-remove-input-init`.\n", + "\n", + "### Other packages not in Pyodide but on PyPI\n", "If the packages are not included in Pyodide, you can use `pip:\n", "\n", "```python\n", "%pip install package_name\n", - "```\n" + "```" ] }, {