Comments (5)
+1
i didn't update ipywidgets, i've just clone this repo into new DSVM and got the same error:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-12-861d7cb8f6e1> in <module>()
----> 1 i = interactive(TargetAnalytics.custom_barplot, df=fixed(df), filename=fixed(filename), col1=w1, Export=w_export)
C:\Anaconda\envs\py35\lib\site-packages\ipywidgets\widgets\interaction.py in __init__(self, _interactive__interact_f, _interactive__options, **kwargs)
192 getcallargs(f, **{n:v for n,v,_ in new_kwargs})
193 # Now build the widgets from the abbreviations.
--> 194 self.kwargs_widgets = self.widgets_from_abbreviations(new_kwargs)
195
196 # This has to be done as an assignment, not using self.children.append,
C:\Anaconda\envs\py35\lib\site-packages\ipywidgets\widgets\interaction.py in widgets_from_abbreviations(self, seq)
292 if not (isinstance(widget, ValueWidget) or isinstance(widget, fixed)):
293 if widget is None:
--> 294 raise ValueError("{!r} cannot be transformed to a widget".format(abbrev))
295 else:
296 raise TypeError("{!r} is not a ValueWidget".format(widget))
ValueError: Button(description='Export', style=ButtonStyle()) cannot be transformed to a widget
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-12-b4e23ca35cec> in <module>()
21 get_ipython().magic('reset_report')
22 get_ipython().magic('add_interaction_code_to_report i = interactive(TargetAnalytics.custom_barplot, df=fixed(df), filename=fixed(filename), col1=w1, Export=w_export)')
---> 23 hbox = widgets.HBox(i.children)
24 display(hbox)
25 hbox.on_displayed(TargetAnalytics.custom_barplot(df=df0, filename=filename, col1=w1.value, Export=w_export))
AttributeError: 'int' object has no attribute 'children'
when running this cell:
md_text = '## Target Variable'
filename = 'tmp/target_variables.csv'
export_filename = 'target_report2.ipynb'
if conf_dict['Target'] in conf_dict['CategoricalColumns']:
w1_value,w2_value,w3_value = '','',''
w1, w2, w3, w4 = None, None, None, None
silentremove(filename)
w1 = widgets.Dropdown(
options=[conf_dict['Target']],
value=conf_dict['Target'],
description='Target Variable:',
)
ReportMagic.var_files = filename
w_export = widgets.Button(description='Export', value='Export')
handle_export_partial = partial(handle_export, w1=w1, w2=w2, w3=w3, export_filename=export_filename, md_text=md_text)
w1.observe(handle_change,'value')
w_export.on_click(handle_export_partial)
%reset_report
%add_interaction_code_to_report i = interactive(TargetAnalytics.custom_barplot, df=fixed(df), \
filename=fixed(filename), col1=w1, Export=w_export)
hbox = widgets.HBox(i.children)
display(hbox)
hbox.on_displayed(TargetAnalytics.custom_barplot(df=df0, filename=filename, col1=w1.value, Export=w_export))
else:
w1_value, w2_value, w3_value = '', '', ''
w1, w2, w3, w4 = None, None, None, None
silentremove(filename)
w1 = widgets.Dropdown(
options=[conf_dict['Target']],
value=conf_dict['Target'],
description='Target Variable:',
)
w_export = widgets.Button(description='Export', value='Export')
handle_export_partial = partial(handle_export, w1=w1, w2=w2, w3=w3, export_filename=export_filename, md_text=md_text)
w1.observe(handle_change,'value')
w_export.on_click(handle_export_partial)
%reset_report
%add_interaction_code_to_report i = interactive(NumericAnalytics.custom_barplot, df=fixed(df), filename=fixed(filename),\
col1=w1, Export=w_export)
hbox = widgets.HBox(ii.children)
display(hbox)
hbox.on_displayed(NumericAnalytics.custom_barplot(df=df, filename=filename, col1=w1.value, Export=w_export))
from azure-tdsp-utilities.
i am having the same issue
from azure-tdsp-utilities.
I am too
Any track?
Thanks
from azure-tdsp-utilities.
as per my comment in the other open issue (#38):
so it looks like all you need to do is downgrade ipywidgets to 4:
i did the following:
pip uninstall ipywidgets
pip install ipywidgets==4
and it worked
I would highly recommend the team developing this tooling to provide a conda dependencies yml file to ensure environment is created with all the right dependencies
from azure-tdsp-utilities.
I've just created a pull request to add a conda environment yml file to address this.
from azure-tdsp-utilities.
Related Issues (20)
- Data Exploration without Target key in YAML file HOT 1
- When Launching IDEAR_MRS from VS2017 -> Error in eval: could not find function "tk_choose.files"
- Error in IDEAR.ipynb ('int' object has no attribute 'children') HOT 12
- Enhancement: Separate Plotting HOT 1
- versions not aligned in knitr HOT 1
- Generate Report Error - Quitting from lines 10-100 (adult.log.spin.Rmd) HOT 1
- Error: object 'cat_columns' not found HOT 3
- IDEAR Updates? HOT 1
- Warning: pandas.core.datetools deprecated HOT 1
- Unable to see the generate final button and also unable to find the intermediate .pynb files generated HOT 2
- Creating the "Export" Button HOT 3
- Doesn't Replace Old Plots
- ValueError: Button(description=u'Export', style=ButtonStyle()) cannot be transformed to a widget HOT 4
- Feature request: update python notebook to work with current versions of relevant packages
- Feature Request: Create a version that is native to spark / databricks environments. HOT 1
- Bug in extracting new date/time variables in the IDEAR.rmd file
- Lifecycle in Data Science HOT 4
- add_conf_code_to_report() got an unexpected keyword argument 'local_ns' HOT 2
- Issue running IDEAR.ipynb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-tdsp-utilities.