Skip to content

Python extenstion revised - #625

Closed
ScrTwPm wants to merge 15 commits into
PenguinMod:mainfrom
ScrTwPm:main
Closed

Python extenstion revised#625
ScrTwPm wants to merge 15 commits into
PenguinMod:mainfrom
ScrTwPm:main

Conversation

@ScrTwPm

@ScrTwPm ScrTwPm commented Aug 20, 2026

Copy link
Copy Markdown

This is an updated request and i have a few things to tell you following the pull request #624 which you closed before i woke up today.

  1. I forgot to add the credits section when i overwrote my old extension with a new revision. I added them back. (lo siento)'
  2. Did you read the documentation before using the extension? Always read the instructions before using something. Know what you are doing.
  3. The input block doesn't do anything unless the Python output is showing and you don't click away from it. I CLEARLY stated these two things in the documentation.
  4. The blue blocks only work when they are under the "When python code starts" extension. If you don't like that, click the "set strict editing to [off] block. I CLEARLY stated this in the documentation. (did you even read it?)
  5. You should know that you can't run straight up python code in a browser without first connecting to an online api, which your guidelines say don't do.
  6. github is an open-source platform where you are allowed to copy other people's code and use it.
  7. Please let me respond to your comments before closing the request. I didn't even see it before it was gone.
  8. The expandable blocks are from CST1229 on his personal gallery
  9. The reason that the blue blocks don't work outside of the "When python code starts" script

If you want to close this don't do it until tommorow. If this breaks one of the uploading guidelines, please make that clear.

Stop reading here

Are you still reading? That means you think there is some important text to follow, which there is not.

ScrTwPm added 15 commits August 18, 2026 13:38
Added comprehensive documentation for running Python scripts using block coding, including details on blocks, strict editing, output display, variables, lists, controls, functions, classes, strings, math, operators, time, and random functionalities.
Added a new Python block coding extension with documentation.
Updated the description of the Python block coding feature to include additional context about mirroring Python code in Penguinmod.
Corrected spelling of 'true' in boolean explanations.
Added an alert function 'abtinp' to provide information about input prompts in the Python environment.
Added notes crediting CST1229 and Sharkool for contributions.
@sakurabuilder

sakurabuilder Bot commented Aug 20, 2026

Copy link
Copy Markdown

❌ Preview build failed


added 61 packages, and audited 62 packages in 5s

6 packages are looking for funding
  run `npm fund` for details

11 vulnerabilities (1 low, 2 moderate, 8 high)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> penguinmod-extensionsgallery@0.0.1 build
> vite build

vite v6.3.5 building SSR bundle for production...
transforming...
✓ 54 modules transformed.

npm notice
npm notice New major version of npm available! 10.8.2 -> 12.0.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.0.2
npm notice To update run: npm install -g npm@12.0.2
npm notice
1:59:52 AM [vite-plugin-svelte] src/routes/+page.svelte:503:4 Unused CSS selector ".extension-list-filters-label"
https://svelte.dev/e/css_unused_selector
501:         display: initial;
502:     }
503:     .extension-list-filters-label {
                                      ^
504:         display: block;
505:         margin-top: 8px;
✗ Build failed in 724ms
error during build:
src/lib/Documentation/pages.js (46:7): Identifier "DateFormatV2" has already been declared
file: /app/src/lib/Documentation/pages.js:46:7

44: 
45: // Run Python
46: import DateFormatV2 from "./RunPython.md?raw";
           ^
47: 
48: export default {

    at getRollupError (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:401:41)
    at error (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:397:42)
    at Module.error (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:16915:16)
    at Module.addImport (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:17482:22)
    at ImportDeclaration.initialise (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:12978:28)
    at convertNode (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:16313:10)
    at convertNodeList (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:16323:38)
    at Array.program (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:16173:21)
    at convertNode (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:16312:28)
    at convertProgram (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:15553:12)

Failed on 06dff2a

@jwklong

jwklong commented Aug 20, 2026

Copy link
Copy Markdown
Member

fyi pyodide is a perfect implementation of python for webassembly and can run python in the browser fine

@ScrTwPm ScrTwPm changed the title Python extenstion Python extenstion revised Aug 20, 2026
@ScrTwPm

ScrTwPm commented Aug 20, 2026

Copy link
Copy Markdown
Author

There are three reasons why i didn't use pyloide:
1: Pyloide is not block based. You have to know how to type python to use it.
2. An extension for that already exists on Dinomod
3. I wanted to mirror python in PenguinMod because i love penguinmod and i bet others do to and this add aditional capabilities to it. If someone just wanted to type python they could just download it.

I want to know two things from you:

  1. Does this resolve the issues of the previous request?
  2. Do you not want python on Penguinmod? If you dont I will not continue to ask you and waste your time

You can go to Dinosaurmod to see the Pyloide extension. I'm not making another one of these.

@ScrTwPm

ScrTwPm commented Aug 20, 2026

Copy link
Copy Markdown
Author

just know im not trying to fight with you. i just thought it would be really nice to make a python mirror extension to expand the scope of Penguinmod's capabilites.

@RedMan13

Copy link
Copy Markdown
Contributor

There are three reasons why i didn't use pyloide:

  1. Pyloide is not block based. You have to know how to type python to use it.
  2. An extension for that already exists on Dinomod
  3. I wanted to mirror python in PenguinMod because i love penguinmod and i bet others do to and this add aditional capabilities to it. If someone just wanted to type python they could just download it.

i dont believe thats why it was suggested. currently the extension does not run any python, its just the existing blocks in the editor reprogrammed with a handful of extra math functions.

  1. exactly the problem explained later
  2. this is not dynomod, by all relevant concerns it does not exist and shouldnt be a reason
  3. no? there is no extension that lets you run writen python in penguinmod

I want to know two things from you:

  1. Does this resolve the issues of the previous request?
  2. Do you not want python on Penguinmod? If you dont I will not continue to ask you and waste your time
  1. not that i nor jwk can tell, i will make a complete review if the extension changes to use writen python. but currently theres a rather general consensus that this isnt really good at all if its not letting you write real python. since once you make it into blocks its indistinguishable from, if not identical to, the existing builtin blocks and extensions.
  2. we dont care, we just want good code that is labeled correctly in the gallery.

@ScrTwPm

ScrTwPm commented Aug 21, 2026

Copy link
Copy Markdown
Author

so it would be better off if all it did was let you run typed python
Earlier pull requests were labeled as similar to mistium's python extension. What is the difference? this isn't mistwarp. : speaking of the pythonpm extension PR #380

The point is to allow people who may not have a full knowledge of python to play around with it and build scripts without having to type real python.
This extension doesn't rely on internet connection like pyloide does. In the guidelines you stated that the extensions cant rely on internet without saying so, and mine doesn't need that
I stated that the extension mirrors python already.
It has similar features to blocks in the editor like python has some similarities to javascript.

@ScrTwPm

ScrTwPm commented Aug 21, 2026

Copy link
Copy Markdown
Author

Talk about this extension being useless, what does the black mold and smoke alarm extensions do? And as for the cats extensions? why are those on the gallery? they do nothing useful. Please explain that.

@RedMan13

Copy link
Copy Markdown
Contributor

so it would be better off if all it did was let you run typed python

yea

Earlier pull requests were labeled as similar to mistium's python extension. What is the difference? this isn't mistwarp.

no? not only is that just not really true as i am aware, that isnt relevant? since your argument was "it exists in x so it doesnt need to be in y", even though x (dynomod) isnt actually relevant or accessible from y (penguinmod)

This extension doesn't rely on internet connection like pyloide does. In the guidelines you stated that the extensions cant rely on internet without saying so, and mine doesn't need that

you can get around that on your own, and iirc theres precedent from other lang in pm extensions for that to just not be relevant when unavoidable

I stated that the extension mirrors python already.
It has similar features to blocks in the editor like python has some similarities to javascript.

and thats the problem, it just copies things that python happens to have. which most of already existed, and what minuscule amount was left would have been suited better to being added to the actual penguinmod expansions or main blocks.

Talk about this extension being useless, what does the black mold and smoke alarm extensions do? And as for the cats extensions? why are those on the gallery? they do nothing useful. Please explain that.

those are joke extensions, this is not. those also do add unique features, giving them actual use even if maybe not really import, whereas this does not, its just the existing features in a weird color and with less descript block text

@JeremyGamer13

Copy link
Copy Markdown
Member

Talk about this extension being useless, what does the black mold and smoke alarm extensions do? And as for the cats extensions? why are those on the gallery? they do nothing useful. Please explain that.

Those are extensions which are intentional jokes, and we have enough real extensions on the gallery to make up for having a few silly ones. This extension just seems unnecessary and misleading for 99% of the userbase.

@ScrTwPm ScrTwPm closed this Aug 21, 2026
@ScrTwPm

ScrTwPm commented Aug 21, 2026

Copy link
Copy Markdown
Author

great joke. to tell people who spend time and effort making thousand-line extensions that their hard work is dumb and useless and proceeding to add the most uselless extensions of all time to the gallery. and im not the only one to whom you have done this. so i wont fight with you any longer.

@ScrTwPm ScrTwPm reopened this Aug 21, 2026
@ScrTwPm

ScrTwPm commented Aug 21, 2026

Copy link
Copy Markdown
Author

great joke. to tell people who spend time and effort making thousand-line extensions that their hard work is dumb and useless and proceeding to add the most uselless extensions of all time to the gallery. and im not the only one to whom you have done this. so i wont fight with you any longer.

@ScrTwPm ScrTwPm closed this Aug 21, 2026
@JeremyGamer13

Copy link
Copy Markdown
Member

That's not what we said. Considering the previous passive-aggressive remarks from you, im not interested in continuing this any further either

@PenguinMod PenguinMod locked as too heated and limited conversation to collaborators Aug 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants