hmason / datastorytelling

NYU ITP data storytelling
83 stars 44 forks source link

Bridges and Tunels example need pylab import #1

Open bdkauff opened 11 years ago

bdkauff commented 11 years ago

Most code-blocks/statements referencing an external library (mlab, matplot) in the example notebook wouldn't run without an import of pylab. I created a cell at the top with the following

 from pylab import *

which fixed it. Not sure if anyone else is having this problem...

hmason commented 11 years ago

Good to note! This requirement has to be explicit depending on your ipython notebook setup.

bdkauff commented 11 years ago

Got it. Can it be changed in ipython notebook settings?

Ben

On Tue, Sep 10, 2013 at 10:56 PM, Hilary Mason notifications@github.comwrote:

Good to note! This requirement has to be explicit depending on your ipython notebook setup.

— Reply to this email directly or view it on GitHubhttps://github.com/hmason/datastorytelling/issues/1#issuecomment-24210101 .

617.407.1006

bdkauff commented 11 years ago

My fix in fact did nothing! The actual fix is running the .ipynb file with the pylab inline ending as such:

-ipython notebook Lesson0_bridges_and_tunnels --pylab=inline

Sorry for the confusion!