ChHarding / TouchTerrain_for_CAGEO

Touch Terrain: A python app to create 3D printable terrain models (STL/OBJ) from only elevation data (via Google Earth Engine) or from a local geotiff. Has been used for CNC terrain models. Runs as a web app (http://touchterrain.org), as .py file (standalone.py) or as jupyter notebook. Docker image: https://github.com/ChHarding/TouchTerrain_jupyter_docker
http://touchterrain.geol.iastate.edu
181 stars 44 forks source link

Preview .STL file in notebook while running in Docker #88

Open 86cucv opened 5 months ago

86cucv commented 5 months ago

In the notebook TouchTerrain_jupyter_for_starters.ipynb it mentions the following in the Preview the model section:

Dec. 8, 2022: This may not work when run inside Docker ...

I found that all a user needs to do is run the following commands within the docker container before launching the notebook:

jupyter nbextension install --py --user k3d
jupyter nbextension enable --py --user k3d

Source: https://github.com/K3D-tools/K3D-jupyter/issues/324#issuecomment-1004784211

ChHarding commented 4 months ago

Very cool! Thank you!

On Feb 3, 2024, at 09:14, 86cucv @.**@.>> wrote:

In the notebook TouchTerrain_jupyter_for_starters.ipynb it mentions the following in the Preview the model section:

Dec. 8, 2022: This may not work when run inside Docker ...

I found that all a user needs to do is run the following commands within the docker container before launching the notebook:

jupyter nbextension install --py --user k3d jupyter nbextension enable --py --user k3d

Source: K3D-tools/K3D-jupyter#324 (comment)https://github.com/K3D-tools/K3D-jupyter/issues/324#issuecomment-1004784211

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_for_CAGEO/issues/88, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5I5Z3OYFJHVRJXYLPDYRZH45AVCNFSM6AAAAABCYDFICSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTMNJSHAYDCMQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

ChHarding commented 4 months ago

Hi,

I just added the jupyer 3D extension install and enable to TouchTerrain_jupyter_for_starters.ipynb. I also tried to make this work for the Colab, which I think is the most common way for docker newbs to run the standalone version, but I’ve not gotten this to work. I ask K3D-jupyter https://github.com/K3D-tools/K3D-jupyter/issues/324#issuecomment-1932642817 and go some feedback but there’s still an issue and for that I didn’t get an answer :( I think it has to do with ipywidgets which I’m not at all familiar with. Are you by any chance familiar with it and could have a look at what I have so far? If so, I’ll send you my colab notebook.

Cheers

Chris

On Feb 3, 2024, at 09:14, 86cucv @.**@.>> wrote:

In the notebook TouchTerrain_jupyter_for_starters.ipynb it mentions the following in the Preview the model section:

Dec. 8, 2022: This may not work when run inside Docker ...

I found that all a user needs to do is run the following commands within the docker container before launching the notebook:

jupyter nbextension install --py --user k3d jupyter nbextension enable --py --user k3d

Source: K3D-tools/K3D-jupyter#324 (comment)https://github.com/K3D-tools/K3D-jupyter/issues/324#issuecomment-1004784211

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_for_CAGEO/issues/88, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5I5Z3OYFJHVRJXYLPDYRZH45AVCNFSM6AAAAABCYDFICSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTMNJSHAYDCMQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu