openvisuspy
Project description
Instructions
Important:
- use python
3.10
or3.11
. DO NOT usepython312
does not have a good match forlibzmq
- use JupyterLab v3 (NOT v4) because bokeh does not work (see https://github.com/bokeh/jupyter_bokeh/issues/197)
Installation
In Windows:
set PATH=c:\Python310;%PATH%
where python
python.exe -m venv .venv
.venv\Scripts\activate
python.exe -m pip install --upgrade pip
python.exe -m pip install -r requirements.txt
# install the latest version of OpenVisus
python.exe -m pip install --upgrade OpenVisusNoGui openvisuspy
In MacOs/Linux:
python3 -m venv .venv
source .venv/Scripts/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
# install the latest version of OpenVisus
python3 -m pip install --upgrade OpenVisusNoGui openvisuspy
Dashboards
In Windows:
.venv\Scripts\activate
python.exe -m panel serve ./app --dev --args ./dashboards.json
In MacOs/Linux:
source .venv/bin/activate
python.exe -m panel serve ./app --dev --args dashboards.json
Notebooks
In Windows:
.venv\Scripts\activate
jupyter lab ./notebooks
In MacOs/Linux:
source .venv/bin/activate
jupyter lab ./notebooks
Important: if Panel is not working you may have to do:
pskill python
jupyter nbconvert --clear-output --inplace notebooks/test-panel.ipynb
jupyter trust notebooks/test-panel.ipynb
Volume rendering
python test/test-pyvista.py
python test/test-vtkvolume.py
Developers only
Use env variables as needed
export PYTHONPATH=C:\projects\OpenVisus\build\RelWithDebInfo;.\src
export BOKEH_ALLOW_WS_ORIGIN=*
export BOKEH_LOG_LEVEL=debug
export VISUS_CPP_VERBOSE=1
export VISUS_NETSERVICE_VERBOSE=1
export VISUS_VERBOSE_DISKACCESS=0
export VISUS_CACHE=c:/tmp/visus-cache
Deploy binaries
# commit a new tagget version
VERSION=$(python3 ./scripts/new_tag.py)
# GitHub
git commit -a -m "New tag ($VERSION)"
git tag -a ${VERSION} -m "${VERSION}"
git push origin ${VERSION}
git push origin
# PyPi (upload does not work in WSL2, use windows to just to the upload)
rm -f ./dist/* && python3 -m build . --wheel
python3 -m twine upload --username "${PYPI_USERNAME}" --password "${PYPI_PASSWORD}" --non-interactive --verbose --skip-existing --verbose "dist/*.whl"
# Docker
sudo docker build --build-arg="OPENVISUS_VERSION=2.2.133" --build-arg="OPENVISUSPY_VERSION=${VERSION}" --tag nsdf/openvisuspy:${VERSION} ./
sudo docker run -it --rm -p 8888:8888 -v ./notebooks:/home/notebooks nsdf/openvisuspy:${VERSION}
sudo docker push nsdf/openvisuspy:${VERSION}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for openvisuspy-1.0.42-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc2400ced0679eb97d137b48a1d52d9e9fc77c6668d1d8318753941973cc06d7 |
|
MD5 | 302b9545b6269f87e8cadd2df9219220 |
|
BLAKE2b-256 | c0a252faae9a74261088dcb3339aa22d34b19904942bf04b42506ccf75d2f46d |