Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad Str Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpAdd Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr If CompareNotEq NameLoad NameLoad body Expr Call NameLoad BinOpMod Str NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults NameLoad body Expr Call NameLoad If NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad Str Assign NameStore TupleLoad NameLoad NameLoad Expr ListComp Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore ListLoad Str Str Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr
N/A __future__ print_function N/A os N/A hashlib N/A json N/A shutil N/A tempfile N/A sys N/A tarfile N/A N/A urllib.request urlretrieve N/A N/A N/A ImportError N/A urllib urlretrieve N/A invoke N/A NOTEBOOK_VERSION 4.1.0 N/A NOTEBOOK_CHECKSUM b597437ba33538221008e21fea71cd01eda9da1515ca3963d7c74e44f4b03d90 N/A APP_ROOT N/A N/A N/A os path dirname __file__ N/A NPM_BIN N/A N/A N/A os path join APP_ROOT node_modules .bin N/A NOTEBOOK_STATIC_PATH N/A N/A N/A os path join APP_ROOT N/A notebook-%s NOTEBOOK_VERSION notebook static test N/A N/A N/A N/A N/A N/A N/A invoke run nosetests -v N/A N/A invoke task bower N/A N/A N/A N/A N/A N/A N/A invoke run N/A N/A N/A N/A cd {}/nbviewer/static && format APP_ROOT N/A N/A  {}/bower install format NPM_BIN  --config.interactive=false --allow-root N/A N/A invoke task notebook_static N/A N/A N/A N/A N/A N/A N/A N/A os path exists NOTEBOOK_STATIC_PATH N/A N/A N/A fname N/A notebook-%s.tar.gz NOTEBOOK_VERSION N/A nb_tgz N/A N/A N/A os path join APP_ROOT fname N/A nb_url N/A https://pypi.python.org/packages/source/n/notebook/ fname N/A N/A N/A N/A N/A os path exists nb_tgz N/A N/A N/A print N/A Downloading %s -> %s N/A nb_url nb_tgz N/A N/A urlretrieve nb_url nb_tgz N/A N/A open nb_tgz rb f N/A N/A checksum N/A N/A N/A N/A hashlib sha256 N/A N/A f read hexdigest N/A N/A checksum NOTEBOOK_CHECKSUM N/A N/A N/A print N/A Notebook tarball checksum mismatch (%s) nb_url file N/A sys stderr N/A N/A print N/A Expected: %s NOTEBOOK_CHECKSUM file N/A sys stderr N/A N/A print N/A Got: %s checksum file N/A sys stderr N/A N/A N/A sys exit 1 N/A N/A N/A invoke run N/A N/A tar -xzf '{}' format nb_tgz N/A N/A invoke task less N/A N/A debug N/A False N/A N/A N/A notebook_static N/A debug N/A N/A extra --source-map N/A N/A extra  --clean-css='--s1 --advanced --compatibility=ie8' N/A tmpl N/A N/A N/A N/A cd {}/nbviewer/static/less  format APP_ROOT N/A N/A  && {}/lessc format NPM_BIN  {1}  --include-path={2} --autoprefix='> 1%' {0}.less ../build/{0}.css N/A args N/A extra NOTEBOOK_STATIC_PATH N/A N/A N/A N/A invoke run N/A N/A tmpl format less_file args N/A less_file N/A styles notebook slides N/A N/A invoke task screenshots N/A N/A root dest N/A http://localhost:5000/ ./screenshots N/A N/A dest N/A N/A N/A os path abspath dest N/A script N/A N/A 
        root = "{root}"

        urls = ({{name, url}} for name, url of {{
            home: ""
            dir: "github/ipython/ipython/tree/3.x/examples/"
            user: "github/ipython/"
            gists: "gist/fperez/"
            notebook: "github/ipython/ipython/blob/3.x/examples/Notebook/Notebook%20Basics.ipynb"}})

        screens = ({{name, w, h}} for name, [w, h] of {{
            smartphone_portrait: [320, 480]
            smartphone_landscape: [480, 320]
            tablet_portrait: [768, 1024]
            tablet_landscape: [1024, 768]
            desktop_standard: [1280, 1024]
            desktop_1080p: [1920, 1080]
        }})
        
        casper.start root

        casper.each screens, (_, screen) ->
            @then ->
                @viewport screen.w, screen.h, ->
            _.each urls, (_, page) ->
                @thenOpen root + page.url, ->
                    @wait 1000
                @then ->
                    @echo "#{{page.name}} #{{screen.name}}"
                    @capture "{dest}/#{{page.name}}-#{{screen.name}}.png"

        casper.run()
     format root root dest dest N/A tmpdir N/A N/A tempfile mkdtemp N/A tmpfile N/A N/A N/A os path join tmpdir screenshots.coffee N/A N/A open tmpfile w+ f N/A N/A N/A N/A f write script N/A N/A N/A invoke run N/A N/A casperjs test {script} format script tmpfile N/A N/A N/A shutil rmtree tmpdir N/A N/A invoke task