However, when the page is loaded (i.e. REPL loaded), the default page (first page I see) is the bash terminal instead of the python shell.
How do I make the python shell started by default and force the users to stay in the python shell? I don't want my users to see other files in the repository.
Thanks in advance.
[Added]
Basically, I want my REPL terminal looks like this (see image below) when it's loaded (now I have to type python explicitly to start the interactive shell). Moreover, I don't want users to exit the python shell by typing exit().
[Python] How to run python shell automatically when REPL started
Hi, I have embedded REPL shell to my website.
However, when the page is loaded (i.e. REPL loaded), the default page (first page I see) is the bash terminal instead of the python shell.
How do I make the python shell started by default and force the users to stay in the python shell? I don't want my users to see other files in the repository.
Thanks in advance.
[Added]
Basically, I want my REPL terminal looks like this (see image below) when it's loaded (now I have to type
python
explicitly to start the interactive shell). Moreover, I don't want users toexit
the python shell by typingexit()
.Although I had to git clone the repo then move all its content under the root directory.