Skip to content

Commit 443ee34

Browse files
committed
removed __main__
1 parent 535ba08 commit 443ee34

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

ipython_memory_usage.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,3 @@ def pre_run_cell():
109109
ipython_memory_usage_thread = threading.Thread(target=during_execution_memory_sampler)
110110
ipython_memory_usage_thread.daemon = True
111111
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

Comments
 (0)