nbvv


Namenbvv JSON
Version 1.6.2 PyPI version JSON
download
home_page
SummaryInteractive volumetric voxel viewing
upload_time2023-06-02 23:26:11
maintainer
docs_urlNone
author
requires_python
licenseAllen Institute Software License – This software license is the 2-clause BSD license plus clause a third clause that prohibits redistribution and use for commercial purposes without further permission. Copyright © 2020. Allen Institute. 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. Redistributions and use for commercial purposes are not permitted without the Allen Institute’s written permission. For purposes of this license, commercial purposes are the incorporation of the Allen Institute's software into anything for which you will charge fees or other compensation or use of the software to perform a commercial service for a third party. Contact terms@alleninstitute.org for commercial licensing opportunities. 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 volume rendering widgets
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Volume Viewer Jupyter Notebook Extension

Embeds the Allen Institute web-based 3d viewer in Jupyter notebooks

---

## Description

Most 3D viewers are far too heavyweight to use for quick visualization tasks when experimenting with tractably-sized (analyzing, checking, ...) 3D volumetric datasets. nbvv is a multichannel volume viewer for interactive data exploration in jupyter. This is a jupyter widget that provides volumetric rendering given a multiple channel zstack as a numpy array.

Envisioned user group is anyone who wants a robust and quick way to interactively interrogate volumetric data as part of their workflows; domain which motivated development is multi-channel volumetric light/fluorescence microscopy datasets. The viewer is optimized for volume data that has finer xy resolution than z resolution.

## Installation

To install from source:
You will need to make sure nodejs and npm are installed on your system.
One way to do this is using `nvm`, for example:

```
nvm install 14.17.0
nvm use 14.17.0
```

Make sure you have jupyterlab, jupyter notebook and nbextensions installed (not necessary in every environment):

```
pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install --user
```

Install nbvv in one of these ways:

- Option 1: Install from PyPi
  ```
  pip install nbvv
  jupyter nbextension install --py nbvv --sys-prefix
  jupyter nbextension enable nbvv --py --sys-prefix
  ```
- Option 2: Run `build.sh` from this repo
- Option 3: Step-by-step, from source:
  ```
  pip install -e .
  jupyter nbextension install --py --overwrite --symlink --sys-prefix nbvv
  jupyter nbextension enable --py --sys-prefix nbvv
  jupyter labextension develop . --overwrite
  ```

## Documentation

Extended documentation is not available yet. When completed it will be made available at: [allen-cell-animated.github.io/nbvv](https://allen-cell-animated.github.io/nbvv/index.html).

## Quick Start

try the demo notebook:

```
jupyter notebook examples/demo.ipynb
```

or likewise with jupyterlab:

```
jupyter lab examples/demo.ipynb
```

In a Jupyter notebook, load or create volume data in a numpy array.
The data should be of shape (Z,Y,X) or (C,Z,Y,X) for multi-channel data.
Display the numpy data using

```
import nbvv
nbvv.volshow(mynumpydata, spacing=(1.0, 1.0, 4.0), channel_names=my_list_of_channel_name_strings)
```

`volshow` also provides an optional `viewer_height` parameter if you want to make the viewer larger in the notebook. Default is 500 and values should be specified in CSS pixels.

## Development

See [CONTRIBUTING.md](CONTRIBUTING.md) for information related to developing the code.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "nbvv",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "ipython,jupyter,volume rendering,widgets",
    "author": "",
    "author_email": "AICS <danielt@alleninstitute.org>",
    "download_url": "https://files.pythonhosted.org/packages/d8/53/71d91c03324aa76a999a065f4bd8270493115ded025808c2b6b83b83962e/nbvv-1.6.2.tar.gz",
    "platform": null,
    "description": "# Volume Viewer Jupyter Notebook Extension\n\nEmbeds the Allen Institute web-based 3d viewer in Jupyter notebooks\n\n---\n\n## Description\n\nMost 3D viewers are far too heavyweight to use for quick visualization tasks when experimenting with tractably-sized (analyzing, checking, ...) 3D volumetric datasets. nbvv is a multichannel volume viewer for interactive data exploration in jupyter. This is a jupyter widget that provides volumetric rendering given a multiple channel zstack as a numpy array.\n\nEnvisioned user group is anyone who wants a robust and quick way to interactively interrogate volumetric data as part of their workflows; domain which motivated development is multi-channel volumetric light/fluorescence microscopy datasets. The viewer is optimized for volume data that has finer xy resolution than z resolution.\n\n## Installation\n\nTo install from source:\nYou will need to make sure nodejs and npm are installed on your system.\nOne way to do this is using `nvm`, for example:\n\n```\nnvm install 14.17.0\nnvm use 14.17.0\n```\n\nMake sure you have jupyterlab, jupyter notebook and nbextensions installed (not necessary in every environment):\n\n```\npip install jupyter_contrib_nbextensions && jupyter contrib nbextension install --user\n```\n\nInstall nbvv in one of these ways:\n\n- Option 1: Install from PyPi\n  ```\n  pip install nbvv\n  jupyter nbextension install --py nbvv --sys-prefix\n  jupyter nbextension enable nbvv --py --sys-prefix\n  ```\n- Option 2: Run `build.sh` from this repo\n- Option 3: Step-by-step, from source:\n  ```\n  pip install -e .\n  jupyter nbextension install --py --overwrite --symlink --sys-prefix nbvv\n  jupyter nbextension enable --py --sys-prefix nbvv\n  jupyter labextension develop . --overwrite\n  ```\n\n## Documentation\n\nExtended documentation is not available yet. When completed it will be made available at: [allen-cell-animated.github.io/nbvv](https://allen-cell-animated.github.io/nbvv/index.html).\n\n## Quick Start\n\ntry the demo notebook:\n\n```\njupyter notebook examples/demo.ipynb\n```\n\nor likewise with jupyterlab:\n\n```\njupyter lab examples/demo.ipynb\n```\n\nIn a Jupyter notebook, load or create volume data in a numpy array.\nThe data should be of shape (Z,Y,X) or (C,Z,Y,X) for multi-channel data.\nDisplay the numpy data using\n\n```\nimport nbvv\nnbvv.volshow(mynumpydata, spacing=(1.0, 1.0, 4.0), channel_names=my_list_of_channel_name_strings)\n```\n\n`volshow` also provides an optional `viewer_height` parameter if you want to make the viewer larger in the notebook. Default is 500 and values should be specified in CSS pixels.\n\n## Development\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for information related to developing the code.\n",
    "bugtrack_url": null,
    "license": "Allen Institute Software License \u2013 This software license is the 2-clause BSD license plus clause a third clause that prohibits redistribution and use for commercial purposes without further permission.  Copyright \u00a9 2020. Allen Institute.  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. Redistributions and use for commercial purposes are not permitted without the Allen Institute\u2019s written permission. For purposes of this license, commercial purposes are the incorporation of the Allen Institute's software into anything for which you will charge fees or other compensation or use of the software to perform a commercial service for a third party. Contact terms@alleninstitute.org for commercial licensing opportunities.  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": "Interactive volumetric voxel viewing",
    "version": "1.6.2",
    "project_urls": {
        "Homepage": "https://github.com/allen-cell-animated/nbvv"
    },
    "split_keywords": [
        "ipython",
        "jupyter",
        "volume rendering",
        "widgets"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dfff5d829cd7dfdb8a0178ff0e6ddf7b11ed3aff88e15fda0da979394a1b79df",
                "md5": "58778687521d7f6ca9365e0103e2cdc4",
                "sha256": "bc20c3d64ef6746a843b0dc6f670e8b872762852a2b9f896a81a6af9e3f80c1a"
            },
            "downloads": -1,
            "filename": "nbvv-1.6.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "58778687521d7f6ca9365e0103e2cdc4",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 8512,
            "upload_time": "2023-06-02T23:26:09",
            "upload_time_iso_8601": "2023-06-02T23:26:09.219665Z",
            "url": "https://files.pythonhosted.org/packages/df/ff/5d829cd7dfdb8a0178ff0e6ddf7b11ed3aff88e15fda0da979394a1b79df/nbvv-1.6.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d85371d91c03324aa76a999a065f4bd8270493115ded025808c2b6b83b83962e",
                "md5": "f90714d14dba4bbc573de99ccf2eea0f",
                "sha256": "37feedf86578f63203dc971850a613da8fce3cf1a4159133701868c0560bce35"
            },
            "downloads": -1,
            "filename": "nbvv-1.6.2.tar.gz",
            "has_sig": false,
            "md5_digest": "f90714d14dba4bbc573de99ccf2eea0f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 47770003,
            "upload_time": "2023-06-02T23:26:11",
            "upload_time_iso_8601": "2023-06-02T23:26:11.959136Z",
            "url": "https://files.pythonhosted.org/packages/d8/53/71d91c03324aa76a999a065f4bd8270493115ded025808c2b6b83b83962e/nbvv-1.6.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-02 23:26:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "allen-cell-animated",
    "github_project": "nbvv",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nbvv"
}
        
Elapsed time: 0.23231s