Modern Python Projects Transcripts
Chapter: Writing code
Lecture: ptpython

Login or purchase this course to watch this video and the rest of the course contents.
0:00 And finally, we also have ptpython,
0:03 just like bpython. It has the essential features,
0:05 like syntax highlighting, multiline editing,
0:08 auto completion and so on. But it also has some cool features,
0:12 so let's give it a try.
0:20 For example, it does syntax validation as your type,
0:23 and it won't let you execute code that contains invalid syntax.
0:28 You can also run shell commands or switch between vim and imax key binding modes,
0:34 and even has those simple menus where you can configure it or ransome special commands.
0:39 So, for example, if we press F3,
0:41 we go to the history menu,
0:43 and from here we can run some commands from this or from private sessions.
0:47 So we use space toggle, which lines we want to run.
0:53 So ptpython is yet another interesting alternative to the standard python REPL.