Coder Social home page Coder Social logo

Comments (3)

Hoxbro avatar Hoxbro commented on May 28, 2024

Button also break it: pn.widgets.Button(name="Button").servable()

ValueError: ClassSelector parameter 'ReactiveHTMLMetaclass.object' value must be an instance of Viewable, not False.

Traceback (most recent call last):
  File "/home/shh/miniconda3/envs/holoviz/lib/python3.12/site-packages/bokeh/application/handlers/code_runner.py", line 229, in run
    exec(self._code, module.__dict__)
  File "/home/shh/Development/holoviz/example_download_widgets.py", line 16, in <module>
    pn.widgets.Button(name="Button").servable()
  File "/home/shh/projects/holoviz/repos/panel/panel/viewable.py", line 399, in servable
    self.server_doc(title=title, location=location) # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/shh/projects/holoviz/repos/panel/panel/viewable.py", line 1038, in server_doc
    wrapper = self._design._wrapper(self)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/shh/projects/holoviz/repos/panel/panel/theme/fast.py", line 261, in _wrapper
    return FastWrapper(design=None, object=model, style=self.theme.style)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/shh/projects/holoviz/repos/panel/panel/reactive.py", line 1610, in __init__
    super().__init__(**params)
  File "/home/shh/projects/holoviz/repos/panel/panel/reactive.py", line 555, in __init__
    super().__init__(**params)
  File "/home/shh/projects/holoviz/repos/panel/panel/reactive.py", line 117, in __init__
    super().__init__(**params)
  File "/home/shh/projects/holoviz/repos/panel/panel/viewable.py", line 704, in __init__
    super().__init__(**params)
  File "/home/shh/projects/holoviz/repos/panel/panel/viewable.py", line 543, in __init__
    super().__init__(**params)
  File "/home/shh/projects/holoviz/repos/panel/panel/viewable.py", line 304, in __init__
    super().__init__(**params)
  File "/home/shh/projects/holoviz/repos/param/param/parameterized.py", line 4177, in __init__
    refs, deps = self.param._setup_params(**params)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/shh/projects/holoviz/repos/param/param/parameterized.py", line 1683, in override_initialization
    ret = fn(self_, *args, **kw)
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/shh/projects/holoviz/repos/param/param/parameterized.py", line 1972, in _setup_params
    setattr(self, name, resolved)
  File "/home/shh/projects/holoviz/repos/param/param/parameterized.py", line 528, in _f
    return f(self, obj, val)
           ^^^^^^^^^^^^^^^^^
  File "/home/shh/projects/holoviz/repos/param/param/parameterized.py", line 1495, in __set__
    self._validate(val)
  File "/home/shh/projects/holoviz/repos/param/param/parameters.py", line 2182, in _validate
    self._validate_class_(val, self.class_, self.is_instance)
  File "/home/shh/projects/holoviz/repos/param/param/parameters.py", line 2193, in _validate_class_
    raise ValueError(
ValueError: ClassSelector parameter 'ReactiveHTMLMetaclass.object' value must be an instance of Viewable, not False.

from panel.

Hoxbro avatar Hoxbro commented on May 28, 2024

Did you also test the second case?

from panel.

philippjfr avatar philippjfr commented on May 28, 2024

No, but it works.

from panel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.