run python script from command line and then enter interactive mode -


is there way run python module command line ( -m option, imports , runs module ), , enter interactive mode?

i need similar "cmd /k command".

i tested -i option, didn't work; i'm not sure seems redirects in_stream input.

you need put -i before -m.

the -m option interface option; terminates option list , subsequent arguments end in sys.argv module's main function. (link doc)


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -