# modeldeploy-proxy-labextension
[![Github Actions Status](https://github.com/github_username/modeldeploy-proxy-labextension/workflows/Build/badge.svg)](https://github.com/github_username/modeldeploy-proxy-labextension/actions/workflows/build.yml)[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/github_username/modeldeploy-proxy-labextension/main?urlpath=lab)
A proxy for model deployment.
## Requirements
- JupyterLab >= 3.0
## Install
To install the extension, execute:
```bash
pip install modeldeploy-proxy-labextension
```
## Uninstall
To remove the extension, execute:
```bash
pip uninstall modeldeploy-proxy-labextension
```
## Contributing
### Development install
Note: You will need NodeJS to build the extension package.
The `jlpm` command is JupyterLab's pinned version of
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
`yarn` or `npm` in lieu of `jlpm` below.
```bash
# Clone the repo to your local environment
# Change directory to the modeldeploy-proxy-labextension directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm build
```
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
```bash
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
```
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
```bash
jupyter lab build --minimize=False
```
### Development uninstall
```bash
pip uninstall modeldeploy-proxy-labextension
```
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
folder is located. Then you can remove the symlink named `modeldeploy-proxy-labextension` within that folder.
### Testing the extension
#### Frontend tests
This extension is using [Jest](https://jestjs.io/) for JavaScript code testing.
To execute them, execute:
```sh
jlpm
jlpm test
```
#### Integration tests
This extension uses [Playwright](https://playwright.dev/docs/intro/) for the integration tests (aka user level tests).
More precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.
More information are provided within the [ui-tests](./ui-tests/README.md) README.
### Packaging the extension
See [RELEASE](RELEASE.md)
Raw data
{
"_id": null,
"home_page": "https://github.com/github_username/modeldeploy-proxy-labextension",
"name": "modeldeploy-proxy-labextension",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "Jupyter,JupyterLab,JupyterLab3",
"author": "ever cheng",
"author_email": "ever_cheng@asus.com",
"download_url": "https://files.pythonhosted.org/packages/20/63/e29f59864a6d4f0b65bd4508073508662a96b9093ac4a4f2ff79133c4f77/modeldeploy-proxy-labextension-0.2.8.tar.gz",
"platform": "Linux",
"description": "# modeldeploy-proxy-labextension\n\n[![Github Actions Status](https://github.com/github_username/modeldeploy-proxy-labextension/workflows/Build/badge.svg)](https://github.com/github_username/modeldeploy-proxy-labextension/actions/workflows/build.yml)[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/github_username/modeldeploy-proxy-labextension/main?urlpath=lab)\nA proxy for model deployment.\n\n## Requirements\n\n- JupyterLab >= 3.0\n\n## Install\n\nTo install the extension, execute:\n\n```bash\npip install modeldeploy-proxy-labextension\n```\n\n## Uninstall\n\nTo remove the extension, execute:\n\n```bash\npip uninstall modeldeploy-proxy-labextension\n```\n\n## Contributing\n\n### Development install\n\nNote: You will need NodeJS to build the extension package.\n\nThe `jlpm` command is JupyterLab's pinned version of\n[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use\n`yarn` or `npm` in lieu of `jlpm` below.\n\n```bash\n# Clone the repo to your local environment\n# Change directory to the modeldeploy-proxy-labextension directory\n# Install package in development mode\npip install -e .\n# Link your development version of the extension with JupyterLab\njupyter labextension develop . --overwrite\n# Rebuild extension Typescript source after making changes\njlpm build\n```\n\nYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).\n\nBy default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:\n\n```bash\njupyter lab build --minimize=False\n```\n\n### Development uninstall\n\n```bash\npip uninstall modeldeploy-proxy-labextension\n```\n\nIn development mode, you will also need to remove the symlink created by `jupyter labextension develop`\ncommand. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`\nfolder is located. Then you can remove the symlink named `modeldeploy-proxy-labextension` within that folder.\n\n### Testing the extension\n\n#### Frontend tests\n\nThis extension is using [Jest](https://jestjs.io/) for JavaScript code testing.\n\nTo execute them, execute:\n\n```sh\njlpm\njlpm test\n```\n\n#### Integration tests\n\nThis extension uses [Playwright](https://playwright.dev/docs/intro/) for the integration tests (aka user level tests).\nMore precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.\n\nMore information are provided within the [ui-tests](./ui-tests/README.md) README.\n\n### Packaging the extension\n\nSee [RELEASE](RELEASE.md)\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "A proxy for model deployment.",
"version": "0.2.8",
"split_keywords": [
"jupyter",
"jupyterlab",
"jupyterlab3"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "f5b507428d226776de73a2067c665e84",
"sha256": "10ed772a9f7d8b4498ea9ba31576498f8e4fb04b5e910badfea83bb5e3cf6751"
},
"downloads": -1,
"filename": "modeldeploy_proxy_labextension-0.2.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f5b507428d226776de73a2067c665e84",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 723577,
"upload_time": "2022-12-23T05:09:03",
"upload_time_iso_8601": "2022-12-23T05:09:03.078676Z",
"url": "https://files.pythonhosted.org/packages/a6/59/5efed11c2289c1dc35c80374eefcebd8bbe43a6c57edd9d125a8f1527a5f/modeldeploy_proxy_labextension-0.2.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "51e47616d449190dda6d4d6242291a6b",
"sha256": "14753f24fb4e909e00d0513fdfbcd81d7f6fd3a0c07e495cc5a8716e9df1b452"
},
"downloads": -1,
"filename": "modeldeploy-proxy-labextension-0.2.8.tar.gz",
"has_sig": false,
"md5_digest": "51e47616d449190dda6d4d6242291a6b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 875211,
"upload_time": "2022-12-23T05:09:06",
"upload_time_iso_8601": "2022-12-23T05:09:06.292562Z",
"url": "https://files.pythonhosted.org/packages/20/63/e29f59864a6d4f0b65bd4508073508662a96b9093ac4a4f2ff79133c4f77/modeldeploy-proxy-labextension-0.2.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-23 05:09:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "github_username",
"github_project": "modeldeploy-proxy-labextension",
"lcname": "modeldeploy-proxy-labextension"
}