From a2ca5229a09402fb01e30c6682b1a07ed0dd9a7b Mon Sep 17 00:00:00 2001 From: Aashish Panta <55815492+aashishpanta0@users.noreply.github.com> Date: Sun, 11 Aug 2024 18:29:03 -0600 Subject: [PATCH] create launch script for dashboard --- hands-on/session III/setup.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hands-on/session III/setup.sh diff --git a/hands-on/session III/setup.sh b/hands-on/session III/setup.sh new file mode 100644 index 0000000..dccd3bc --- /dev/null +++ b/hands-on/session III/setup.sh @@ -0,0 +1,14 @@ +PORT=8989 +git clone --single-branch -b test_region_extraction https://github.com/sci-visus/openvisuspy.git +cd openvisuspy +git checkout b2c63396ea3c7f2ab32efa3bbe464dd2918543d6 +python -m venv .venv +source .venv/bin/activate +python -m pip install --verbose --no-cache --no-warn-script-location boto3 colorcet fsspec numpy imageio pympler==1.0.1 urllib3 pillow xarray xmltodict plotly requests scikit-image scipy seaborn tifffile pandas tqdm matplotlib zarr altair cartopy dash fastparquet folium geodatasets geopandas geoviews lxml numexpr scikit-learn sqlalchemy statsmodels vega_datasets xlrd yfinance pyarrow pydeck h5py hdf5plugin netcdf4 nexpy nexusformat nbgitpuller intake ipysheet ipywidgets bokeh ipywidgets-bokeh panel holoviews hvplot datashader vtk pyvista trame trame-vtk trame-vuetify notebook "jupyterlab==3.6.6" jupyter_bokeh jupyter-server-proxy jupyterlab-system-monitor "pyviz_comms>=2.0.0,<3.0.0" "jupyterlab-pygments>=0.2.0,<0.3.0" +python -m pip install OpenVisus +export VISUS_CACHE="/tmp/visus-cache/nasa3" +export BOKEH_ALLOW_WS_ORIGIN="*" +export BOKEH_RESOURCES="cdn" +export PYTHONPATH=$PWD/src + +panel serve ./src/openvisuspy/dashboards --allow-websocket-origin='*' --address=0.0.0.0 --port $PORT --args config.json