Python Tutorial: Difference between revisions

From Master of Neuroscience Wiki
Line 62: Line 62:


=== Python: Special topics ===
=== Python: Special topics ===
* [[pickle: save and load Python objects]]
* [[The Python Standard Library​|The Python Standard Library]]​
* [[Dataclass]]
* [[Organizing parameters: dataclasses and dataconf]]
* [[ProcessPoolExecutor: A fast way to implement multiprocessing]]
* [[Logging]]
* [[Python Scopes and Namespaces]]
* [[Collection of distinct hashable objects -- set and frozenset]]

Revision as of 15:27, 15 October 2025

How to Python in computational neuroscience, data mining, and more

Flow chart

Workflow

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

Python: Special topics