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

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

Open
c02y opened this issue Apr 11, 2020 · 2 comments
Open

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

c02y opened this issue Apr 11, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@c02y
Copy link

@c02y c02y commented Apr 11, 2020

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?

@supakeen supakeen added this to the release-0.20 milestone Apr 11, 2020
@supakeen
Copy link
Member

@supakeen supakeen commented Apr 11, 2020

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.

@thomasballinger
Copy link
Member

@thomasballinger thomasballinger commented Apr 13, 2020

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

@supakeen supakeen self-assigned this Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.