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

Not able to callback #6

Closed
yashwatwani opened this issue Apr 20, 2020 · 6 comments
Closed

Not able to callback #6

yashwatwani opened this issue Apr 20, 2020 · 6 comments
Labels
good first issue Good for newcomers

Comments

@yashwatwani
Copy link

AttributeError Traceback (most recent call last)
in ()
10
11 # WIDGETS
---> 12 slider = Slider(start=0, end=20, value=20, step=1, title="Cluster #",callback=input_callback_1)
13 keyword = TextInput(title="Search:")
14

/home/ds/.local/lib/python3.6/site-packages/bokeh/models/widgets/sliders.py in init(self, **kwargs)
68 raise ValueError("Slider 'start' and 'end' cannot be equal.")
69
---> 70 super().init(**kwargs)
71
72 title = String(default="", help="""

/home/ds/.local/lib/python3.6/site-packages/bokeh/model.py in init(self, **kwargs)
232 kwargs.pop("id", None)
233
--> 234 super().init(**kwargs)
235 default_theme.apply_to_model(self)
236

/home/ds/.local/lib/python3.6/site-packages/bokeh/core/has_props.py in init(self, **properties)
245
246 for name, value in properties.items():
--> 247 setattr(self, name, value)
248
249 def setattr(self, name, value):

/home/ds/.local/lib/python3.6/site-packages/bokeh/core/has_props.py in setattr(self, name, value)
280
281 raise AttributeError("unexpected attribute '%s' to %s, %s attributes are %s" %
--> 282 (name, self.class.name, text, nice_join(matches)))
283
284 def str(self):

AttributeError: unexpected attribute 'callback' to Slider, similar attributes are js_event_callbacks

@MaksimEkin
Copy link
Owner

MaksimEkin commented Apr 21, 2020

@yashwatwani This looks like a Bokeh versioning problem if you are able to import from lib.call_backs import input_callback, selected_code successfully. What version of Bokeh do you have?

Check the version of Bokeh:

import bokeh
print(bokeh.__version__)
1.3.4

Could you please install the version 1.3.4 and try again.
If using conda:
conda install bokeh=1.3.4

If using pip:
pip install 'bokeh=1.3.4'

Please let us know if this fixes the problem.

Edit: Correction on the Bokeh version (not 2.0.1, but 1.3.4)

@MaksimEkin MaksimEkin added the good first issue Good for newcomers label Apr 23, 2020
@MaksimEkin MaksimEkin pinned this issue Apr 23, 2020
@MaksimEkin
Copy link
Owner

MaksimEkin commented Apr 23, 2020

We were able to reproduce the error by upgrading to Bokeh 2.0.1. Using Bokeh 1.3.4 resolves the error; therefore, closing the issue.

@SoloNick

@Shruthihanu
Copy link

Hi,

I am new to this forum and python programming..

I was trying to run the code in my system, below is the error I get when I run - "from call_backs import input_callback, selected_code"

How do I install call_backs in conda.

ModuleNotFoundError Traceback (most recent call last)
in
----> 1 from call_backs import input_callback, selected_code

ModuleNotFoundError: No module named 'call_backs'

@MaksimEkin
Copy link
Owner

Make sure the lib folder is in the same directory as the Notebook. Error is complaining about call_backs.py.

@Shruthihanu
Copy link

Hi,

Yes, error is on call_backs.... not sure how to install this module.

call_backs

can you guide me.

@SoloNick
Copy link
Collaborator

SoloNick commented Jul 11, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants