Giter Site home page Giter Site logo

zerocurve / ipyparaview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvidia/ipyparaview

0.0 1.0 0.0 196 KB

iPython widget for server-side ParaView rendering in Jupyter.

License: Apache License 2.0

Shell 2.26% Python 33.77% JavaScript 16.23% Jupyter Notebook 46.08% Dockerfile 1.66%

ipyparaview's Introduction

iPyParaView

Learn more at: https://developer.nvidia.com/gtc/2020/video/s22111

A widget for interactive server-side ParaView rendering.

Examples

Example notebooks are avaible in the notebooks folder. They are designed to give a broad overview of how to use ipyparaview. New users will probably have the best luck jumping in to the Hello_Jupyter-ParaView.ipynb notebook, which demonstrates basic usage and setting up the ParaView display. The Iso-Surfaces_with_RTX.ipynb notebook demonstrates more advanced usage, with more extensive manipulation of the render state and interactive control. The Dask-MPI_Volume_Render.ipynb notebook demonstrates how to use multi-node rendering by running PVRenderActors on a Dask-MPI cluster.

Installation

There are two ways to install ipyparaview, both of which rely on pip. The lightweight method is to point pip at the GitHub repo, and then enable the notebook extension (note: this will not enable the extension for Jupyter lab). The more fully-featured method is to download a copy of the source code and install from the local version. We typically run inside of a conda environment (see conda setup step in instructions for the full-feature install with conda)

Lightweight quick install
$ pip install git+https://github.com/Kitware/ipyparaview.git
$ jupyter nbextension enable --py --sys-prefix ipyparaview

From within a conda environment:

$ conda env create -f environment.yml
$ conda activate ipy_pv_dev
$ ./rebuild.sh
Fully-featured local source installation
$ git clone https://github.com/NVIDIA/ipyparaview.git
$ cd ipyparaview
$ ./build.sh
Fully-featured local source installation (with conda)
$ git clone https://github.com/Kitware/ipyparaview.git
$ cd ipyparaview
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix ipyparaview
$ jupyter nbextension enable --py --sys-prefix ipyparaview
$ jupyter labextension install js

Running

Within a conda environment

$ conda activate ipy_pv_dev
$ export LD_LIBRARY_PATH=$PVPATH/lib/
$ export PYTHONPATH=$PVPATH/lib/python3.7/site-packages/
$ jupyter notebook

Or from a Docker container, create an image by:

$ docker build -t ipp_base -f base.dockerfile .
$ docker build -t ipp .

Then run that container by:

$ docker run -p 8888:8888 ipp

Demos

Our conda environment installs all required dependencies for our demos.

conda activate ipy_pv_dev
export PYTHONPATH=$PVPATH/lib/python3.7/site-packages/ # or `conda install paraview`
cd notebooks/
jupyter notebook

ipyparaview's People

Contributors

nleaf-nv avatar nickleaf avatar rietmann-nv avatar banesullivan avatar mathiashnv avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.