This is an old revision of the document!
There are many python distributions, many python versions (2.7.xx
, 3.nn
) and… many ways to use python:
python
interpreter or the ipython
interpreter > python Python 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 09:07:38) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> "python interpreter in a terminal".upper() 'PYTHON INTERPRETER IN A TERMINAL' >>> > ipython Python 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 09:07:38) Type 'copyright', 'credits' or 'license' for more information IPython 7.3.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: "ipython interpreter in a terminal".upper() Out[1]: 'IPYTHON INTERPRETER IN A TERMINAL' In [2]: Do you really want to exit ([y]/n)? y
Using an ipython notebook means that:
.ppynb
file) and share it, and it will display both the commands you have used and the output/results of your commandUsing an ipython notebooks implies the following steps:
jupyter notebook
, but only do this if you want to work locally on your desktop/laptop! See the next section for working on a remote computerjupyter notebook
command will start the notebook server, and it will automatically start a web browser on the same computer. That's OK on your local computer, but on a remote server, the browser will probably seem to be slow (and out of date) and will use unnecessary resources of the server. This will be frustrating for you and the other users of the server^C^C
(2x CTRL-C
). Otherwise the server and the python processes started by the server will keep on using resources on the computer
[ PMIP3 Wiki Home ] - [ Help! ] - [ Wiki syntax ]