You can use CogStat in Jupyter Notebook (aka IPython Notebook). See a short tutorial here. If you don't know the Jupyter Notebook, it is a bit like an SPSS output file with the code you can rerun and with your comments. With Jupyter Notebook you can analyze your data in Python, while seeing your code, the results (tables, graphs or even animations) and your comments at the same time in a single document.
When using CogStat with Jupyter Notebook you can enjoy the simple way of running analyses provided by CogStat and repeat the same analysis easily or extend it with other custom Python analysis. It is an ideal tool
- if you want to repeat the same analysis for several data (e.g., you repeat the experiments several times), a bit similar to the SPSS syntax file,
- if you have a complex analysis for which you need some more complex tool, e.g., Python code, and want to make some part of the statistical code more simple with CogStat.
It is easy to write the code if you only use CogStat. Then, if you want to extend your analysis with additional Python code, you can find many tutorials to learn Python for scientific computations.
See a short tutorial on how to use CogStat in Jupyter Notebook.