[IPython-User] IPython widget Dict not syncing

I’m having trouble passing dictionaries from the Python side to the JS side.

For some reason I can get a List to sync from the python side to the javascript side like so:

Py: commands = List([], sync=True)

Js: var commands = this.model.get("commands”);

But the same doesn’t seem to work with Dict

Py: style = Dict({}, sync=True)

I’m pretty sure I’m using JSON compatible values and I’m changing the top level reference to get traitlets to notice that the value has changed. I wouldn’t rule out that I’m doing something else dumb, however.

For fun I just changed the code to pass a dictionary wrapped in a list and it worked. Any idea what is wrong? Thanks!