Skip to content

ipywidgets fail in Jupyter notebook in Docker CNTK image version 2.2 #2

@seank-com

Description

@seank-com

This repros using both 2.2-gpu-python3.5-cuda8.0-cudnn6.0 and 2.2-cpu-python3.5

Repro steps

  1. Launch the container ( to see the run without error change 2.2 to 2.1 )
$ docker run -it --init --rm -p 80:80 microsoft/cntk:2.2-cpu-python3.5 bash
  1. From the container run the following command
source /cntk/activate-cntk && jupyter-notebook --no-browser --port=80 --ip=* --notebook-dir=/cntk/Tutorials --allow-root
  1. Create a new notebook page and paste and run the following code
import ipywidgets as widgets

widgets.Dropdown(
  options=['one','two','three'],
  description='Choice:',
  disabled=False,
)
  1. According to the issue on Jupyter running the following before running 3 should fix the issue (but it doesn't)
jupyter nbextension enable --py --sys-prefix widgetsnbextension

Expected

image

Saw instead

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions