Programming in Python and Applications in Materials Science: Ján Minár
Programming in Python and Applications in Materials Science: Ján Minár
Email: jmminar@gmail.com
(evtl. jan.minar@hm.edu)
Outline 1: Necessary (maybe boring)
Python
Introduction
Installation
– components
– simple input&output
Python Intro – variables, mathematical operators
– basic types
– strings
– import libraries
– while, if, for etc…
– files i/o
– lists, tuples, dictionaries
– functions
– objects
– mathematics in python
lecture 1
Outline 2: Useful for data science
Mathematica
NumPy
SciPy
Matlab
Alternative
Matplotlib
SymPy
ASE:
Material science
Simulation package
lecture 1
Instalation
Instalation of interpreter
lecture 1
How to run python?
Interpreter
– idle (included in python installation – Write code with your favorite text
from python.org) Editor (not word!)
(I can help you with Linux without problem, maybe I can help you with Windows,
I can not help you with macOs)
We will use:
IDE: spyder
lecture 1
ipython
lecture 1
Ipython: I need help! help(), ? and ??
lecture 1
Ipython: I need help! ? and ??
lecture 1
TAB-autocomplete, Wildcards
lecture 1
ipython
lecture 1
Ipython qtconsole : enhanced terminal
lecture 1
Jupyter: interactive notebook
lecture 1
jupyter
lecture 1
How to start
lecture 1
lecture 1
IDE: spyder
● Spyder is a MATLAB-like IDE for scientific computing with python. It has the many
advantages of a traditional IDE environment, for example that everything from code
editing, execution and debugging is carried out in a single environment, and work on
different calculations can be organized as projects in the IDE environment.
lecture 1
Homework
lecture 1