Coder Social home page Coder Social logo

python_epiphanies's Introduction

Python Epiphanies

This is the example code that accompanies Python Epiphanies by Stuart Williams (0636920039815).

Click the Download Zip button to the right to download example code.

Visit the catalog page here.

See an error? Report it here, or simply fork and send us a pull request.

python_epiphanies's People

Contributors

aseronick 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

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

python_epiphanies's Issues

ipynb - Notebook only good with 16GB plus memory

I would hardly load. Then do nothing after it loaded. I used 4GB. The Notebook, on a higher memory computer it worked fine. On 4GB it CHUGGED hard, but worked in nteract notebook. Large notebooks should be broken into chapters if the creator really meant them to be used.

trace_function decorator doesn't properly show the arguments

As presented, the trace_function

def trace_function(f):
    """Add tracing before and after a function"""
    def new_f(*args):
        """The decorated function."""
        print('Called {}({!r})'.format(f, *args))
        result = f(*args)
        print('Returning', result)
        return result
    return new_f

if __name__ == '__main__':
    def add(a, b):
        return a + b

    traced_add = trace_function(add)
    traced_add(2, 3)

only prints the first argument:

Called <function add at 0x7fe633b77950>(2)
Returning 5

By changing the first print line to look like:

        print('Called {}{!r}'.format(f, args))

then it will print all of the arguments:

Called <function add at 0x7f509a9c7950>(2, 3)
Returning 5

ipython notebook doesn't load in wakari

I'm beginning your o'reilly safaribooks video course, and downloaded the ipython notebook from this
repository. Since I currently don't have an ipython notebook installation on my local machine, I thought
I'd use the notebook on the free level of wakari.

After uploading the notebook to wakari, and opening it, an alert window opens 'Error loading notebook -- bad request` occurs.

Any idea why this might be happening or how to fix this?

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.