nbsv


Namenbsv JSON
Version 0.1.6 PyPI version JSON
download
home_pageNone
SummarySimularium Viewer Jupyter Widget
upload_time2024-05-01 20:49:21
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseCopyright (c) 2023 Megan Riel-Mehan All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords ipython jupyter widgets
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            
# nbsv

[![Build](https://github.com/simularium/nbsv/actions/workflows/build.yml/badge.svg)](https://github.com/simularium/nbsv/actions/workflows/build.yml)
[![codecov](https://codecov.io/gh/simularium/nbsv/branch/main/graph/badge.svg)](https://codecov.io/gh/simularium/nbsv)


Simularium Viewer Jupyter Widget 

## Installation

You can install using `pip`:

```bash
pip install nbsv
```

If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:
```bash
jupyter nbextension enable --py [--sys-prefix|--user|--system] nbsv
```

## Development Installation

Create a dev environment:
```bash
conda create -n nbsv -c conda-forge yarn python jupyterlab=3.6.4
conda activate nbsv
nvm use 18
```
Note: make sure you are using the node managed by nvm and not in your conda env by checking `which node`

Install and build:
```bash
yarn install
./build.sh
``` 

### How to see your changes
#### Typescript:
If you use JupyterLab to develop then 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 widget.

```bash
# Watch the source directory in one terminal, automatically rebuilding when needed.
# Note: You may need to run this in a terminal with elevated permissions (Run as Administrator)
yarn run watch
# Run JupyterLab in another terminal
jupyter lab
```

After a change wait for the build to finish and then refresh your browser and the changes should take effect.

#### Python:
If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.

## Updating the version

To update the version, install tbump and use it to bump the version.
By default it will also create a tag.

```bash
pip install tbump
tbump <new-version>
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nbsv",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "IPython, Jupyter, Widgets",
    "author": null,
    "author_email": "Megan Riel-Mehan <meganr@alleninstitute.org>",
    "download_url": "https://files.pythonhosted.org/packages/81/59/55540f3e52b1f36f474cb87155d2206cfe7b547fd541435f5b22a6157ed1/nbsv-0.1.6.tar.gz",
    "platform": null,
    "description": "\n# nbsv\n\n[![Build](https://github.com/simularium/nbsv/actions/workflows/build.yml/badge.svg)](https://github.com/simularium/nbsv/actions/workflows/build.yml)\n[![codecov](https://codecov.io/gh/simularium/nbsv/branch/main/graph/badge.svg)](https://codecov.io/gh/simularium/nbsv)\n\n\nSimularium Viewer Jupyter Widget \n\n## Installation\n\nYou can install using `pip`:\n\n```bash\npip install nbsv\n```\n\nIf you are using Jupyter Notebook 5.2 or earlier, you may also need to enable\nthe nbextension:\n```bash\njupyter nbextension enable --py [--sys-prefix|--user|--system] nbsv\n```\n\n## Development Installation\n\nCreate a dev environment:\n```bash\nconda create -n nbsv -c conda-forge yarn python jupyterlab=3.6.4\nconda activate nbsv\nnvm use 18\n```\nNote: make sure you are using the node managed by nvm and not in your conda env by checking `which node`\n\nInstall and build:\n```bash\nyarn install\n./build.sh\n``` \n\n### How to see your changes\n#### Typescript:\nIf you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different\nterminals to watch for changes in the extension's source and automatically rebuild the widget.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed.\n# Note: You may need to run this in a terminal with elevated permissions (Run as Administrator)\nyarn run watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nAfter a change wait for the build to finish and then refresh your browser and the changes should take effect.\n\n#### Python:\nIf you make a change to the python code then you will need to restart the notebook kernel to have it take effect.\n\n## Updating the version\n\nTo update the version, install tbump and use it to bump the version.\nBy default it will also create a tag.\n\n```bash\npip install tbump\ntbump <new-version>\n```\n\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2023 Megan Riel-Mehan All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "Simularium Viewer Jupyter Widget",
    "version": "0.1.6",
    "project_urls": {
        "Homepage": "https://github.com/simularium/nbsv"
    },
    "split_keywords": [
        "ipython",
        " jupyter",
        " widgets"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a6fa6443c0f053fa3ed0e1ca7cd0ba6780d08560c25e56913acd8bb9bd6a17c9",
                "md5": "6bb405ef70e1514f6b55b85d87997c6c",
                "sha256": "4b4e04e4489cd06037a78ce16c034b8047419b7e2c8cd2afc860bfa93ff19205"
            },
            "downloads": -1,
            "filename": "nbsv-0.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6bb405ef70e1514f6b55b85d87997c6c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7464433,
            "upload_time": "2024-05-01T20:49:19",
            "upload_time_iso_8601": "2024-05-01T20:49:19.171918Z",
            "url": "https://files.pythonhosted.org/packages/a6/fa/6443c0f053fa3ed0e1ca7cd0ba6780d08560c25e56913acd8bb9bd6a17c9/nbsv-0.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "815955540f3e52b1f36f474cb87155d2206cfe7b547fd541435f5b22a6157ed1",
                "md5": "3cd9896ec8a6b3ece7bcbcb71adfa05f",
                "sha256": "013ef72dbe0addb54702f7b057e2e5fa83528cbccbbc6acb7dc2ae0eb8b99b1a"
            },
            "downloads": -1,
            "filename": "nbsv-0.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "3cd9896ec8a6b3ece7bcbcb71adfa05f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3846006,
            "upload_time": "2024-05-01T20:49:21",
            "upload_time_iso_8601": "2024-05-01T20:49:21.452160Z",
            "url": "https://files.pythonhosted.org/packages/81/59/55540f3e52b1f36f474cb87155d2206cfe7b547fd541435f5b22a6157ed1/nbsv-0.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-01 20:49:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simularium",
    "github_project": "nbsv",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "nbsv"
}
        
Elapsed time: 0.23753s