Search code examples
pythoneditorinteractive

Open Python interactive session and editor


I am looking for some pieces of advices in order to accomplish a tiny task regarding Python. If someone would ask to provide a pic of a 'started interactive session of Python with your favorite editor with a Python script', what would you show to this person? Should it be a void script? How do you interpreter 'started interactive session'? How about your own favorite editor (I mean that you would suggest for Windows 10)?

Sorry for the triviality of my question,but I have just started with beginners' Python course

Just to make sure I am on the right way, if I have to submit to someone else a started interactive session and your favourite editor with a Python script, will be it sufficient to show the following windows as in the picture?

enter image description here


Solution

  • If you want to do interactive things, you probably just want to use jupyter notebook: https://jupyter.org/install#jupyter-notebook

    You can always just type python at your terminal prompt if you have python installed, this will start an interactive session in your terminal, but jupyter is definitely easier to use once you get it set up.

    Edit: regarding favourite editor, this is very much opinionated but I love sublime text. https://www.sublimetext.com/

    Note that you probably would use one or the other: you would use a text editor to write scripts that could be run in a terminal, for example

    # hello_world.py
    print("Hello, world!")
    

    then in your terminal

    python hello_world.py
    

    whilst you would use a jupyter notebook for example for quick experimentation or for demonstrating usage of your software to others.