Visitar URL original
How can I load extern py file inside bpython session · Issue #804 · bpython/bpython · GitHub
Skip to content

How can I load extern py file inside bpython session #804

Description

@c02y

I can use bpython -p test.py to load the test.py file into the bpython session then use the functions in the file, but how can I load the external python file into the current bpython session like %load /path/test/py of ipython?

Activity

  1. added this to the release-0.20 milestone on Apr 11, 2020
  2. supakeen commented on Apr 11, 2020

    @supakeen
    Member

    We don't have a direct feature to do this right now though it seems like it would be a good idea to add one. I'll take a look.

  3. thomasballinger commented on Apr 13, 2020

    @thomasballinger
    Member

    See also bpython -i test.py, which is similar to the behavior you're looking for (although in the middle of a session)

  4. self-assigned this
    on Jul 12, 2020
  5. removed their assignment
    on Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions