Closed tpow closed 2 years ago
With (soon to be released) Masonite 4, the tinker
command has been improved !
You should run it with -i
option after having installed IPython
.
Then you will have :
About PYTHONSTARTUP
variable, I did not know this one before. I will take a look at it and try to add it in Masonite 4 version 😉
Thanks @girardinsamuel, it is nice know that the tinker command is being enhanced. I am personally happy with the standard python shell, but that may be due in part to my python startup file.
Yes, because IPython
come with a lot of features such as colored output, auto-reloading, and much more.
The Craft tinker command is handy, but does not process my typical python startup file so the experience is somewhat lacking compared to the usual python interactive shell. It would be nice if it supported the PYTHONSTARTUP variable like the regular shell (possibly with an option to disable it).
Below is a quick stab at adding this support (and also including readline support and tab completion at a minimum similar to the regular shell.)