Modify ↓
Ticket #921 (closed enhancement: fixed)
use ipython in bcfg2-info debug mode
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawl5-bwrxN_3riwrFWHgfESsuK8Bn6HsQ2M | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.1.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | Cc: |
Description
Here is a patch that tries to load ipython when interactive debug is started. If ipython is not installed, it falls back to the standard shell.
Sol wanted bpython. The code for that will be something like:
from bpython import cli cli.main(args=[])
He'll need to look up what argument main() needs to include locals().
If bpython also gets added, then there will need to be a way to specify which is preferred. I originally thought it could try ipython and fallback to bpython and then fallback to python, but that wouldn't be fair to Sol. So, I will leave the UI design decision for someone else.
Attachments
Change History
Changed 13 years ago by https://www.google.com/accounts/o8/id?id=AItOawl5-bwrxN_3riwrFWHgfESsuK8Bn6HsQ2M
- Attachment bcfg2-info.diff added
comment:1 Changed 13 years ago by solj
- Status changed from new to closed
- Resolution set to fixed
- Milestone changed from Bcfg2 1.2.0 Release to Bcfg2 1.1.0 Release
Added in [d6b3084cbc96307c44ebfd734f88d2692a85c6c7] (SVN r6034). Thanks for the patch!
Note: See
TracTickets for help on using
tickets.
initial patch