[~] Refactor
This commit is contained in:
parent
f318272703
commit
c0636f8f46
@ -1,4 +1,18 @@
|
||||
c.InteractiveShellApp.exec_lines = ['%autoreload 2',]
|
||||
c.InteractiveShellApp.exec_lines = [
|
||||
'%autoreload 2',
|
||||
r'''
|
||||
def ipython_update_shortcuts():
|
||||
import IPython
|
||||
t1 = IPython.get_ipython()
|
||||
t2 = t1.pt_app
|
||||
t3 = [o for o in t2.key_bindings.bindings if 'f2' in repr(o).lower()]
|
||||
assert len(t3) == 1
|
||||
t4 = t3[0]
|
||||
t2.key_bindings.remove(t4.handler)
|
||||
t2.key_bindings.add('i')(t4.handler)
|
||||
''',
|
||||
'ipython_update_shortcuts()',
|
||||
]
|
||||
c.InteractiveShellApp.extensions = ['autoreload']
|
||||
c.InteractiveShell.history_length = 100 * 1000 * 1000
|
||||
c.InteractiveShell.history_load_length = 100 * 1000 * 1000
|
||||
|
Loading…
Reference in New Issue
Block a user