We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 535ba08 commit 443ee34Copy full SHA for 443ee34
ipython_memory_usage.py
@@ -109,14 +109,3 @@ def pre_run_cell():
109
ipython_memory_usage_thread = threading.Thread(target=during_execution_memory_sampler)
110
ipython_memory_usage_thread.daemon = True
111
ipython_memory_usage_thread.start()
112
-
113
114
-if __name__ == "__main__":
115
- if 'In' not in dir():
116
- script_name = os.path.split(__file__)[1]
117
- raise ValueError("You must run this from IPython interactively using"
118
- " e.g. '%run -i {}'".format(script_name))
119
120
- ip = get_ipython()
121
- # http://ipython.org/ipython-doc/dev/api/generated/IPython.core.events.html
122
- start_watching_memory(ip)
0 commit comments