Holoviews: Plots not rendering in JupyterLab (Javascript Error: Cannot set property '1257' of undefined)

Created on 27 Dec 2018  路  13Comments  路  Source: holoviz/holoviews

Just finished setting up everything by following the doc

snipaste_684

Tried a very simple example in Chrome, but nothing seems to render in Jupyterlab

image

Am I missing something?

All 13 comments

HoloViews 1.10.4 is pretty old at this point, could you try updating to 1.11.0 using:

conda install -c pyviz holoviews

# or
pip install holoviews

Unfortunately, the problem exists.
image

Btw, pip can only find 1.10.7 now.

image

Even when you clear the notebook and then reload the page?

I reinstalled the extensions by running the following:

jupyter labextension install @pyviz/jupyterlab_pyviz

It is working now. Thanks!

Btw, nteract also have some weird behaviors. Should I open a new issue?

I think a discussion about nteract is worth having. We should at least see how hard it would be to get that working so an issue would be appreciated.

Thanks for opening https://github.com/ioam/holoviews/issues/3353, I'll close this issue now.

I'm experiencing the same issue ("Javascript Error: Cannot set property '1005' of undefined", where the number changes each time.) I'm on holoviews 1.11.3, bokeh 1.0.4, jupyterlab_bokeh 0.6.3, jupyterlab_pyviz 0.7.0 (see https://gist.github.com/keflavich/a9f23e2f21e3ca9e74e78f9a6e8dafae for the complete MWE + version list). Is there still something wrong with my installation?

I was literally just encountering the same issue, I'll investigate and get back to you.

@keflavich Could you do me a favor, could you go into your browser developer console while in the JupyterLab and print the output of window.PyViz? I think there is a horrible bug in pyviz_comms that results in the variable being accidentally set to any DOM nodes of headers containing the words PyViz or HoloViews.

I'm not too familiar with the dev console; is this deep enough?

{kernels: {鈥, init_slider: 茠, init_dropdown: 茠, comm_manager: JupyterCommManager}
comm_manager
:
JupyterCommManager
__proto__
:
Object
init_dropdown
:
茠 init_dropdown(id, plot_id, dim, vals, value, next_vals, labels, next_dim, dim_idx, dynamic)
arguments
:
(...)
caller
:
(...)
length
:
10
name
:
"init_dropdown"
prototype
:
{constructor: 茠}
__proto__
:
茠 ()
[[FunctionLocation]]
:
widgets.js:133
[[Scopes]]
:
Scopes[2]
init_slider
:
茠 init_slider(id, plot_id, dim, values, next_vals, labels, dynamic, step, value, next_dim, dim_idx, delay)
arguments
:
(...)
caller
:
(...)
length
:
12
name
:
"init_slider"
prototype
:
{constructor: 茠}
__proto__
:
茠 ()
[[FunctionLocation]]
:
widgets.js:36
[[Scopes]]
:
Scopes[2]
kernels
:
__proto__
:
Object
__proto__
:
constructor
:
茠 Object()
hasOwnProperty
:
茠 hasOwnProperty()
isPrototypeOf
:
茠 isPrototypeOf()
propertyIsEnumerable
:
茠 propertyIsEnumerable()
toLocaleString
:
茠 toLocaleString()
toString
:
茠 toString()
valueOf
:
茠 valueOf()
__defineGetter__
:
茠 __defineGetter__()
__defineSetter__
:
茠 __defineSetter__()
__lookupGetter__
:
茠 __lookupGetter__()
__lookupSetter__
:
茠 __lookupSetter__()
get __proto__
:
茠 __proto__()
set __proto__
:
茠 __proto__()

... that formatted badly so here's a screenshot too:
image

That's perfect thanks, looks like we're not seeing the same issue then. While you're in the developer console can you rerun a plot and take a screenshot of the full error stack that shows up in the console?

I reloaded my browser window to get a clean error log (previously I had ~450 errors?), and suddenly the plot appeared. I guess that suggests that this is some browser-related problem that maybe can be solved by refreshing? I'm trying a more complicated example too, but for now, it looks like this problem resolved itself.

Glad to hear it! I recall having the same issue once or twice and it resolving itself. The next time it happens I'll investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericmjl picture ericmjl  路  3Comments

cristi-neagu picture cristi-neagu  路  5Comments

claresloggett picture claresloggett  路  5Comments

asmith26 picture asmith26  路  4Comments

jlstevens picture jlstevens  路  6Comments