Python Forum
How to programmatically stop a program in Jupyter Notebook?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to programmatically stop a program in Jupyter Notebook?
#8
I get what you are saying, but structured programming languages such as Java, C++, and Python have avoided the "goto" statement of earlier languages. Reduces the spaghetti code.

As was mentioned, Jupyter (named for Julia, Python, and R, the 3 languages it was designed for) is designed for more interactive code execution - write a snippet, debug it, move to the next snippet, with each snippet taking care of a task. Great for data exploration. Takes some thought to organize the snippets so it breaks where you want, not so great for programmatic flow control like "skip the next 2 cells and start there". For that you are better off with one of the other IDEs, such as VS Code, Spyder, PyCharm, etc.

So it is choosing your tool. I just did a data analysis looking at mask and social distancing compliance in different populations. Did that in Jupyter Lab. I also have a project using Markov chains and that I am doing in VS Code. VS Code has introduced the ability to do notebooks so may look at that later, but bottom line is no one tool is best for everything.
Reply


Messages In This Thread
RE: How to programmatically stop a program in Jupyter Notebook? - by jefsummers - Aug-10-2021, 12:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 241 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  how come i can't stop program Shi_Shi_Shi_Shi 4 743 Nov-16-2023, 06:20 PM
Last Post: deanhystad
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 1,380 Nov-15-2023, 06:56 PM
Last Post: jst
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 941 Oct-29-2023, 12:40 PM
Last Post: Mark17
Question How create programmatically variables ? SpongeB0B 6 1,614 Aug-19-2023, 05:10 AM
Last Post: SpongeB0B
Thumbs Up Python 3 Jupyter notebook ternary plot data nicholas 0 1,061 Jan-21-2023, 05:01 PM
Last Post: nicholas
  Create Excel Line Chart Programmatically dee 3 1,274 Dec-30-2022, 08:44 PM
Last Post: dee
  Graphs from Jupyter notebook to word Scott 0 995 Nov-28-2022, 06:16 AM
Last Post: Scott
  Opening an empty Jupyter notebook in VSCODE Krischu 3 1,999 Mar-09-2022, 01:57 PM
Last Post: Larz60+
  How to do line continuation in Jupyter Notebook? Mark17 4 5,701 Sep-22-2021, 04:22 PM
Last Post: ibreeden

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020