Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return the interactive namespace for use in third-party libraries #62

Merged
merged 1 commit into from
Sep 23, 2014

Conversation

florentx
Copy link
Member

An alternative proposal to integrate with IPython and other libraries.
This should be enough to support IPython usage, as described in issue #51.

Then you could probably setup your IPython environment with:

import erppeek
import IPython

def main():
    global_vars = erppeek.main(interact=False)
    if global_vars:
        IPython.start_ipython(user_ns=global_vars, argv=[])

main()

I prefer this implementation because it does not rely explicitly on IPython. It is more generic.

@florentx florentx modified the milestone: 1.6 Sep 22, 2014
florentx added a commit that referenced this pull request Sep 23, 2014
return the interactive namespace for use in third-party libraries
@florentx florentx merged commit 277d93b into master Sep 23, 2014
@florentx florentx deleted the skip-interact branch November 12, 2014 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant