Skip to main content

openvisuspy

Project description

Instructions

Useful links:

See https://github.com/sci-visus/OpenVisus

Instructions

Setup:

set PYTHONPATH=C:\projects\OpenVisus\build\RelWithDebInfo;C:\projects\openvisuspy\src

# this is needed for SealStorage (not supported for pure-python openvisuspy)
set AWS_ACCESS_KEY_ID=any
set AWS_SECRET_ACCESS_KEY=any
set AWS_ENDPOINT_URL=https://maritime.sealstorage.io/api/v0/s3

set VISUS_CPP_VERBOSE=1
set VISUS_NETSERVICE_VERBOSE=0

set BOKEH_ALLOW_WS_ORIGIN=*
set BOKEH_LOG_LEVEL=debug

Tests:

# [OK] cpp-bokeh-single 
python -m bokeh serve "examples/dashboards/run.py"  --dev --address localhost --port 8888 --args -cpp --single

# [OK] cpp-bokeh-multi 
python -m bokeh serve "examples/dashboards/run.py"  --dev --address localhost --port 8888 --args -cpp --multi

# [OK] cpp-panel-single 
python -m panel serve "examples/dashboards/run.py"  --dev --address localhost --port 8888 --args -cpp --single

# [OK] cpp-panel-multi 
python -m panel serve "examples/dashboards/run.py"  --dev --address localhost --port 8888 --args -cpp --multi

# [OK] py-bokeh-single 
python -m bokeh serve "examples/dashboards/run.py"  --dev --address localhost --port 8888 --args --py --single

# [OK] py-bokeh-multi 
python -m bokeh serve "examples/dashboards/run.py"  --dev --address localhost --port 8888 --args --py --multi

# [OK] py-panel-single 
python -m panel serve "examples/dashboards/run.py"  --dev --address localhost --port 8888 --args --py --single

# [OK] py-panel-multi 
python -m panel serve "examples/dashboards/run.py"  --dev --address localhost --port 8888 --args --py --multi

# [OK] cpp-jupyter-notebooks
python -m jupyter notebook ./examples/notebooks 

# [OK] jupyter notebooks
set VISUS_BACKEND=py
python -m jupyter notebook ./examples/notebooks 

# [OK] pyscript
python3 examples/server.py --directory ./
# http://localhost:8000/examples/pyscript/index.html  (REMEMBER to resize the window)

Upload wheel

  • update PROJECT_VERSION in pyproject.toml
# 
rm -f dist/*  && python3 -m build .
python3 -m twine upload --username <your-username>  --password <your-password> --skip-existing   "dist/*.whl" 
# check on pyodide REPL `https://pyodide.org/en/stable/console.html` if you can import openvisus

(TODO) JupyterLite

Links

BACKUP

set VISUS_BACKEND=py
python -m panel convert --skip-embed --to pyodide-worker --out "tmp/" --requirements ... --watch "./examples/dashboards/run.py"
python3 examples/pyscript/server.py --directory ./tmp
# http://localhost:8000/run.html 

Project details


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

openvisuspy-0.0.20-py3-none-any.whl (25.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page