mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-13 14:55:51 +00:00
added how to do wheels
This commit is contained in:
parent
bf305e5dc1
commit
1be1e4258a
1 changed files with 16 additions and 1 deletions
|
|
@ -128,7 +128,22 @@
|
|||
"\n",
|
||||
"```python\n",
|
||||
"%pip install package_name\n",
|
||||
"```\n"
|
||||
"```\n",
|
||||
"\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",
|
||||
"```\n",
|
||||
"python setup.py bdist_wheel\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"Copy the wheel from `dist/<something>.whl` to your book and import the package from within a notebook using:\n",
|
||||
"\n",
|
||||
"```python\n",
|
||||
"import micropip\n",
|
||||
"await micropip.install('<directory>/<something>.whl')\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"Preferably with the tag `thebe-remove-input-init`."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue