W
W
Worddoc2017-10-20 01:05:48
Python
Worddoc, 2017-10-20 01:05:48

How to write and immediately test python code without console and shell?

Hello.
I'm starting to learn Python and a very important question immediately pops up: how to do without the console and Shell to run python scripts? Is there any mechanism that would hook up to the IDE and, after saving the file, would run the code and display it in a convenient place (inside the editor / in the browser)? I still can’t imagine how people test python code more seriously than hello world)
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ideo, 2017-10-20
@Worddoc

Install Anaconda3 and use jupyter notebook.

A
Anton Khromov, 2017-10-20
@JetBaget

What do you mean by "test"? Print the output of your code?
In a good way, it is worth writing tests (for example, using the unittest library), and how you organize the test run is up to you.
If you just need to run the code before saving, what's stopping you from doing it manually?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question