Python Tutorial
From Master of Neuroscience Wiki
How to Python in computational neuroscience, data mining, and more
Flow chart
- Basic Structure of a Computer
- Representation of Numbers in the Computer
- Systematic Programming
- Flow chart symbols
- Examples
- Flow chart for baking bread
Workflow
- Python installation
- VS Code installation
- VS Code configuration
- VS Code Microsoft Tutorials
- VS Code Python Interactive window
- VS Code Markdown
- VS Code Debugging
- VS Code Working remotely via ssh
Important VS Code notes:
- You can mark segments of source node with your mouse (or keyboard) and use the TAB key to increase the level of the indentation or use SHIFT + TAB do decrease the indentation level.
- Linux: CTRL + SHIFT + 7 toggles between comment and normal source code.
- The function key F2 allows you to change variable and function names. VS Code goes through all the node in your Project directory and changes all occurrences of the function or variable name accordingly. The same is true if you change a file name in a project directory.
Python: The Basics of the basics
- Overview
- Hello, Python
- Style Rulez
- Programming Recommendations
- Basic Math Operations
- Truth Value Testing
- Formatted String Literals
- Flow Control Overview
- Sequence Types
- Mapping Types
- Dict
- Functions
- Type annotations
- Files
- JSON and dict for parameter files
- Creating order via sub-directories: os.makedirs
- Finding files in a directory: glob
- Class
- Exceptions (try / except)
- Importing Modules
- Built-in Functions
- Built-in Keywords