Discuss Scratch

MagicCrayon9342
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

I've utilized pyscript to run my python shell PCLISH inside the browser.

Here it is!

It works 100%, though some features for the non-web version were cut out before release to make it stable and working.

Last edited by MagicCrayon9342 (June 23, 2022 15:15:46)

MagicCrayon9342
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).


Most of it works, but some commands are non-functional because of the way user input is handled.
Redstone1080
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

MagicCrayon9342
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

Redstone1080 wrote:

Something is wrong on your end. What Linux distro are you running.
Redstone1080
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

MagicCrayon9342 wrote:

Redstone1080 wrote:

Something is wrong on your end. What Linux distro are you running.
I'm using a Mac and the web version.

Last edited by Redstone1080 (June 23, 2022 16:01:27)

MagicCrayon9342
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

Redstone1080 wrote:

MagicCrayon9342 wrote:

Redstone1080 wrote:

Something is wrong on your end. What Linux distro are you running.
I'm using a Mac and the web version.
You're on Mac, I don't know how Mac works, can't help. Google it!
mybearworld
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

This loads, then asks for user input indefinetely, and when I press cancel, it does this:
mybearworld
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

mybearworld wrote:

(#7)
This loads, then asks for user input indefinetely, and when I press cancel, it does this:
Bump?
MagicCrayon9342
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

mybearworld wrote:

mybearworld wrote:

(#7)
This loads, then asks for user input indefinetely, and when I press cancel, it does this:
Bump?
The input box is where you input commands, type help.
mybearworld
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

MagicCrayon9342 wrote:

(#9)

mybearworld wrote:

mybearworld wrote:

(#7)
This loads, then asks for user input indefinetely, and when I press cancel, it does this:
Bump?
The input box is where you input commands, type help.
I typed help, and nothing happened still.

The website loads indefinetely asking for input WHILE loading. “Help” doesn't stop loading.
After pressing cancel, it stops loading, and this appears:
MagicCrayon9342
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

mybearworld wrote:

MagicCrayon9342 wrote:

(#9)

mybearworld wrote:

mybearworld wrote:

(#7)
This loads, then asks for user input indefinetely, and when I press cancel, it does this:
Bump?
The input box is where you input commands, type help.
I typed help, and nothing happened still.

The website loads indefinetely asking for input WHILE loading. “Help” doesn't stop loading.
After pressing cancel, it stops loading, and this appears:
You are NEVER supposed to close the input box, that's the “shell” portion of the shell.
mybearworld
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

MagicCrayon9342 wrote:

You are NEVER supposed to close the input box, that's the “shell” portion of the shell.
But it just loads! The shell doesn't APPEAR until I close the input box!

Last edited by mybearworld (June 25, 2022 22:06:30)

MagicCrayon9342
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

mybearworld wrote:

MagicCrayon9342 wrote:

You are NEVER supposed to close the input box, that's the “shell” portion of the shell.
But it just loads! The shell doesn't APPEAR until I close the input box!
Do you have all the required python libraries installed? You're supposed to get that box, you type commands there. I will check edge support later, it's unlikely.

Last edited by MagicCrayon9342 (June 25, 2022 22:07:42)

mybearworld
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

MagicCrayon9342 wrote:

(#13)

mybearworld wrote:

MagicCrayon9342 wrote:

You are NEVER supposed to close the input box, that's the “shell” portion of the shell.
But it just loads! The shell doesn't APPEAR until I close the input box!
Do you have all the required python libraries installed? You're supposed to get that box, you type commands there. I will check edge support later, it's unlikely.
I'm using this online…
MagicCrayon9342
Scratcher
1000+ posts

[Python] A command-line shell, in your browser! (Sandboxed for the most part).

mybearworld wrote:

MagicCrayon9342 wrote:

(#13)

mybearworld wrote:

MagicCrayon9342 wrote:

You are NEVER supposed to close the input box, that's the “shell” portion of the shell.
But it just loads! The shell doesn't APPEAR until I close the input box!
Do you have all the required python libraries installed? You're supposed to get that box, you type commands there. I will check edge support later, it's unlikely.
I'm using this online…
I don't have edge installed on any of my machines at the moment (not even the Windows ones, and yes machine(s)), hold on.

Powered by DjangoBB