Opened 12 years ago

Closed 12 years ago

#403 closed defect (fixed)

Add ipython support to ./bin/gmg shell

Reported by: Christopher Allan Webber Owned by: hugomatic
Priority: major Milestone: 0.3.0
Component: component1 Keywords:
Cc: Parent Tickets:


It would be great if we could launch ipython optionally like:

  ./bin/gmg shell --ipython

There's some code in werkzeug's codebase that looks like it does this the right way.

        if ipython:
                    from IPython.frontend.terminal.embed import InteractiveShellEmbed
                    sh = InteractiveShellEmbed(banner1=banner)
                except ImportError:
                    from IPython.Shell import IPShellEmbed
                    sh = IPShellEmbed(banner=banner)
            except ImportError:
                sh(global_ns={}, local_ns=namespace)
        from code import interact
        interact(banner, local=namespace)

If we borrow a significant chunk of this code, we should annotate correctly:

Change History (2)

comment:1 by Christopher Allan Webber, 12 years ago

Owner: changed from somebody to hugomatic
Status: newassigned

comment:2 by Christopher Allan Webber, 12 years ago

Resolution: fixed
Status: assignedclosed

This is merged actually! Thanks Hugo!

Note: See TracTickets for help on using tickets.