DTAIEB / Thoughtful-Data-Science

Sample Code for Thoughtful Data Science book
Apache License 2.0
15 stars 10 forks source link

Chapter 3 notebooks pdf error #1

Open paulopes opened 5 years ago

paulopes commented 5 years ago

When using the Chapter 3 notebooks: GitHub Sample Application - Part 2.ipynb GitHub Sample Application - Part 3.ipynb GitHub Sample Application - Part 3.ipynb

The cell containing:

display(load_commit_activity("ibm-watson-data-lab","pixiedust")["pdf"])

Results in this error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-3e8155c0f313> in <module>()
----> 1 load_commit_activity('ibm-watson-data-lab','pixiedust',cell_id='1dd3de3332e142b9a1161b1d2a537648',nostore_pixiedust='true',aggregation='SUM',chartsize='100',handlerId='lineChart',keyFields='week',logx='false',logy='false',rendererId='bokeh',rowCount='500',valueFields='total',nostore_cw='1098',nostore_vh='978',showchrome='true',org_params='nostore_pixiedust',nostore_bokeh='false')

TypeError: load_commit_activity() got an unexpected keyword argument 'cell_id'

The solution is to split that statement like this:

pdf = load_commit_activity("ibm-watson-data-lab","pixiedust")["pdf"]
display(pdf)
brickfrog commented 5 years ago

This doesn't seem to work for me, now I'm getting " gridplot() got an unexpected keyword argument 'nrows'"

if I switch to matplotlib, I get:

x must be a label or position

DTAIEB commented 5 years ago

@BrickFrog The "gridplot() got an unexpected keyword argument 'nrows'" issue is unrelated and was recently introduced by the latest version of bokeh, which changed the signature of an API used by PixieDust. This issue was fixed in PixieDust 1.1.15. Please update and try again.