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

panel save not working with last bokeh and panel #727

Closed
xavArtley opened this issue Oct 31, 2019 · 6 comments
Closed

panel save not working with last bokeh and panel #727

xavArtley opened this issue Oct 31, 2019 · 6 comments
Labels
TRIAGE Default label for untriaged issues

Comments

@xavArtley
Copy link
Collaborator

xavArtley commented Oct 31, 2019

after using pan.save('test.html') when I try to reload the file exported I get this error:

bokeh-1.4.0rc2.min.js:83 Uncaught Error: Cannot find module '@bokehjs/models/widgets/widget'
    at require (bokeh-1.4.0rc2.min.js:81)
    at Object._ (test.html:126)
    at require (bokeh-1.4.0rc2.min.js:88)
    at Object._ (test.html:124)
    at require (bokeh-1.4.0rc2.min.js:88)
    at Object._ (test.html:123)
    at require (bokeh-1.4.0rc2.min.js:88)
    at Object.main.register_plugin (bokeh-1.4.0rc2.min.js:115)
    at test.html:117
    at test.html:122
bokeh-1.4.0rc2.min.js:243 Uncaught Error: Model 'panel.models.vtk.VTKPlot' does not exist. This could be due to a widget or a custom model not being registered before first usage.
    at Object.o.Models (bokeh-1.4.0rc2.min.js:243)
    at Function.e._instantiate_object (bokeh-1.4.0rc2.min.js:242)
    at Function.e._instantiate_references_json (bokeh-1.4.0rc2.min.js:242)
    at Function.e.from_json (bokeh-1.4.0rc2.min.js:242)
    at v (bokeh-1.4.0rc2.min.js:240)
    at bokeh-1.4.0rc2.min.js:240
@xavArtley xavArtley added the TRIAGE Default label for untriaged issues label Oct 31, 2019
@philippjfr
Copy link
Member

Can't reproduce this.

@xavArtley
Copy link
Collaborator Author

did you try with custom extension?
Like :

import panel as pn
pn.extension('vtk')

dragon = pn.pane.VTK('https://raw.githubusercontent.com/Kitware/vtk-js/master/Data/StanfordDragon.vtkjs',
                     sizing_mode='stretch_width', height=400)
dragon.save('test.html')

@philippjfr
Copy link
Member

Yes I did.

@philippjfr
Copy link
Member

Oh right, I know what you mean now. Yes, I'm seeing the same thing.

@philippjfr
Copy link
Member

Raised the issue here: bokeh/bokeh#9343

@philippjfr
Copy link
Member

Fixed upstream.

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

No branches or pull requests

2 participants