InsightSoftwareConsortium / InsightSoftwareConsortium/itkwidgets

Viewer widget not visible in Jupyter Notebook on CodeOcean

Open
#650 1 comment 0 reactions 1 assignee Claimed by @bnmajor View on GitHub
Dominant language
Python
Stars
624
Forks
83
PR merge metrics
No merged PRs in 30d

Description

## Overview

`itkwidgets.view` produces output but does not show the expected 3D image.

## Steps to reproduce

1. In a clean environment, `pip install itk itkwidgets[notebook]==1.0a23`
2. Run `Hello3DWorld.ipynb`

## Expected Behavior

`itkwidgets.view` depicts 3D volume rendering

## Observed Behavior

![itkwidgets-no-view-codeocean](https://user-images.githubusercontent.com/40648863/236910136-0c59b5c7-3106-4f8c-bdc4-9cf6e7b55ad5.png)

## Environment

Python 3.8.5
ITK v5.3.0
itkwidgets 1.0a23
Ubuntu 20.04

Docker image: registry.codeocean.allenneuraldynamics.org/codeocean/jupyterlab:3.0.9-miniconda4.9.2-python3.8-ubuntu20.04

## Other Notes

Behavior is observed in a clean environment run via CodeOcean reproducible platform.

Is this maybe an environment issue, and if so what are some things that could be going wrong or some possible steps to resolve? I think I've observed this issue in my local setup before but am uncertain what steps I took to resolve it. Once a resolution is identified, could it be added to an FAQ section in documentation?

EDIT: Note that the ImJoy extension seems to load successfully

![imjoy-loaded](https://user-images.githubusercontent.com/40648863/236914441-b6993b3e-cd16-4a5f-b510-5668db04709f.png)

The local browser console shows the errors below. The "refused to execute script" error appears regardless of whether `itkwidgets` is installed when the notebook launches.

![console-errors](https://user-images.githubusercontent.com/40648863/236913777-7648048d-5202-4f99-b9fe-89217b32175a.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.