Coder Social home page Coder Social logo

ipython-plotly's Introduction

ipython-plotly's People

Contributors

andreydimitrov avatar bllchmbrs avatar chriddyp avatar etpinard avatar jackparmer avatar jasmainak avatar jorgesantostr avatar merenlin avatar mkcor avatar moorepants avatar msund avatar nipunbatra avatar ostegm avatar rasbt avatar rmdk avatar saeedamen avatar theengineear avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ipython-plotly's Issues

Formatting on Apache Spark Notebook - Contributor Fix

Hey @etpinard there's some strange formatting on the Apache spark notebook, the size of the embedded image was different than my notebook, making the text overlap. I'm going to get a fix up and create a pull request with the info. Just wanted to give you a heads up.

License

@jackparmer mentioned to me that these notebooks were published under a CCBy-like license. There is no license file in the repository and the published versions do not have a license.

Can we add a license to both?

Publish.py Checks for H1 and errors if you try and publish a notebook without h1 tags

(IPython-plotly)> make publish nb=apachespark                                                                      ~/AeroFS/Dev/IPython-plotly(master✗)@airbears2-10-142-137-24.AirBears2.1918.Berkeley.EDU
WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
.../IPython-plotly/_makescripts/publish.py in <module>()
    199
    200 if __name__ == "__main__":
--> 201     main()

..../IPython-plotly/_makescripts/publish.py in main()
    172
    173         # Update body
--> 174         remove_title(body)
    175         update_anchors(body)
    176         add_lightbox(body)

...IPython-plotly/_makescripts/publish.py in remove_title(body)
     38 def remove_title(body):
     39     H1 = body.findAll('h1')  # TODO check 'h2' also?
---> 40     H1[0].extract()
     41
     42

IndexError: list index out of range
>.../IPython-plotly/_makescripts/publish.py(40)remove_title()
     39     H1 = body.findAll('h1')  # TODO check 'h2' also?
---> 40     H1[0].extract()
     41

ipdb> ls
*** NameError: name 'ls' is not defined
ipdb> H1
[]
ipdb>
KeyboardInterrupt
> .../IPython-plotly/_makescripts/publish.py(40)remove_title()
     39     H1 = body.findAll('h1')  # TODO check 'h2' also?
---> 40     H1[0].extract()
     41

TODOs

  • Update to IPython 3.0

config

  • Handle non-pip dependencies in notebook config.json
  • Add thumbnail image for each notebook

make run

  • Use pip freeze (and some package) to keep track of package versions used
  • Have per-notebook requirements.txt files
  • Setup a virtualenv with those requirements
  • Use runipy to run notebook from the command line Try IPython 3.0's nbconvert to notebook

make publish

  • better handle http -> https

make sync

  • add a check script to ensure that every config.json and references.json field is filled in

KeyError: 'Complaint Type' in Pandas Widget - Time Series, Search, and Filtering

Hi,

I am trying to run the "Pandas Widget - Time Series, Search, and Filtering" ipython notebook.

I get the following error: KeyError: 'Complaint Type'

More detailed information:

KeyError Traceback (most recent call last)
in ()
1 column_headers_dropdown = widgets.DropdownWidget()
2 column_headers_dropdown.values = {column: column for column in df.columns}
----> 3 column_headers_dropdown.value = 'Complaint Type'
4 column_headers_dropdown.description = 'Select which column to graph (e.g. Tree)'
5

/usr/local/lib/python2.7/dist-packages/IPython/utils/traitlets.pyc in set(self, obj, value)
443 # we explicitly compare silent to True just in case the equality
444 # comparison above returns something other than True/False
--> 445 obj._notify_trait(self.name, old_value, new_value)
446
447 def _validate(self, obj, value):

/usr/local/lib/python2.7/dist-packages/IPython/html/widgets/widget.pyc in _notify_trait(self, name, old_value, new_value)
371 # registered validation to be processed prior to allowing the widget
372 # machinery to handle the state.
--> 373 LoggingConfigurable._notify_trait(self, name, old_value, new_value)
374
375 # Send the state after the user registered callbacks for trait changes

/usr/local/lib/python2.7/dist-packages/IPython/utils/traitlets.pyc in _notify_trait(self, name, old_value, new_value)
600 c(name, new_value)
601 elif nargs + offset == 3:
--> 602 c(name, old_value, new_value)
603 else:
604 raise TraitError('a trait changed callback '

/usr/local/lib/python2.7/dist-packages/IPython/html/widgets/widget_selection.pyc in _value_changed(self, name, old, new)
120 # undo the change, and raise KeyError
121 self.value = old
--> 122 raise KeyError(new)
123 finally:
124 self.value_lock.release()

KeyError: 'Complaint Type'

Thanks a lot

Add IPython Notebook v4 Format Support

You're going to loath me 😒 for this but it throws errors when I try and compile v4 notebooks for contribution.

Think you referenced this is #4 at least in terms of IPython 3.

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.