Skip to content

Instantly share code, notes, and snippets.

@alexlenail
Created March 8, 2022 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexlenail/0a38ac0041fb6d908f2dd16fd714c04a to your computer and use it in GitHub Desktop.
Save alexlenail/0a38ac0041fb6d908f2dd16fd714c04a to your computer and use it in GitHub Desktop.
# Long running cell
import multiprocessing, time
def network_call():
for i in range(20):
print(i)
time.sleep(1)
multiprocessing.Process(target=network_call).start()
# Another cell
print("Output from another cell")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment