Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI/Standalone Issue #765

Open
davramov opened this issue Jan 4, 2025 · 2 comments
Open

CLI/Standalone Issue #765

davramov opened this issue Jan 4, 2025 · 2 comments

Comments

@davramov
Copy link

davramov commented Jan 4, 2025

I have been attempting to use the command line (CLI) implementation to open an ngff-zarr folder and view the volume visualization in a standalone webpage. While the regular Jupyter widget works just fine, after multiple attempts I have not been able to get the standalone version to work.

I created a new conda environment with Python==3.10, and I installed itkwidgets using the commands in the documentation:

pip install 'itkwidgets[cli]>=1.0a49'
playwright install --with-deps chromium

I ran the cells in EnvironmentCheck.ipynb to verify the dependencies. I tried launching with iTerm2, the VSCode terminal, and the regular Mac terminal. In each case, I could neither get the terminal viewer to appear nor a URL to connect to the web browser.

Please let me know if you need any additional information, or if there is another method I can try to run in standalone mode. Thanks!

@PaulHax
Copy link
Collaborator

PaulHax commented Jan 6, 2025

Alternative clunky approach:

  • Start a HTTP file server (with CORS enabled) serving your NGFF-ZARR directory
  • Then point the JavaScript viewer app at the server with the image URL paramter like this https://kitware.github.io/itk-vtk-viewer/app?rotate=false&image=http://localhost:8082/test-data/my-image.zarr

I have not tested CLI mode in a while. Python packages may have changed which broke things, among other possible issues. Would be great if you had the time to look into it.

@davramov
Copy link
Author

davramov commented Jan 6, 2025

Thanks for the help, I was able to get it running using your approach. If I find time I can look into getting the standalone version to work locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants