tonybaloney / instaviz

Instant visualization of Python AST and Code Objects
Apache License 2.0
129 stars 18 forks source link

pip package different from github source code #20

Open CanftIn opened 2 months ago

CanftIn commented 2 months ago

hi, i found pip link is different from github source code, pip is version 0.6.0.

pip show api is:

def show(obj):
    """
    Start a web server and show `obj` in the WebUI
    Assumes `obj` is compiled and has `__code__` attribute.
    :return:
    """
    if hasattr(obj, "__code__"):
        instructions = get_instructions(obj.__code__)
        show_code_object(obj, instructions)
    else:
        print("{0} is not compiled, could not locate __code__ attribute.".format(type(obj)))
        return

there is no port and host param define.