Skip to content

Commit

Permalink
Merge pull request #353 from doronz88/refactor/improve_ipython
Browse files Browse the repository at this point in the history
client: Add ipython profile
  • Loading branch information
netanelc305 authored Apr 11, 2024
2 parents a352ced + afc1907 commit fc86701
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rpcclient/rpcclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,11 @@ def interactive(self, additional_namespace: typing.Mapping = None):
c = Config()
c.IPCompleter.use_jedi = False
c.InteractiveShellApp.exec_lines = [
'''IPython.get_ipython().events.register('pre_run_cell', p._ipython_run_cell_hook)'''
'''IPython.get_ipython().events.register('pre_run_cell', p._ipython_run_cell_hook)''',
'''logging.getLogger('asyncio').disabled = True'''
]
c.TerminalInteractiveShell.autoformatter = None
c.BaseIPythonApplication.profile = 'rpcclient'
namespace = globals()
namespace.update({'p': self, 'symbols': self.symbols})
if additional_namespace is not None:
Expand Down

0 comments on commit fc86701

Please sign in to comment.