This sounds like the weird opposite of a template. Could one do: python → framework → template → html → pyscript (→ js) →python?
If yes, how often?
[I guess it would be a way of cheating to use subprocess](https://javascript.plainenglish.io/how-to-run-python-script-using-node-js-6b351169e916?gi=1d0c2b9ac3cb)
I thought access to localStorage and sessionStorage was a browser thing that JS interacts with. If that's the case, you'd just need a python api to hit those browser data stores.
No, definitely not. The download size for any other libraries you want to use drastically slows the loading of the page. It’s a cool tool that definitely has its uses but it seems like just a gimmick at this point
But modern javascript bundlers include tree shaking which reduce the effect of this is drastically. Only the necessary functions are included in the final bundle.
Unless someone builds some kind of bundler with tree shaking for python the additional libraries will be a significant download burden. Much more so than for javascript.
The same can not be said. Well it can, but they'd be wrong.
JS frameworks do not come out to be anything close to the size of Python and whatever libraries one decides to use.
Numpy is 11MB, Pandas 5MB, OpenCV is 90MB. I can't find any libraries that are the reason you'd want to use Python that are not MBs in size.
EVEN PYTHONS STANDARD LIBRARY IS 30MB UNPACKED
React is 110KB, Vue around 60KB, Angular 2 gets closer to 1MB but still doesn't go above that.
So even a 'buttload' of JS Frameworks kneels in comparison to the size of a useful set of Python libraries. Beeg. Snek.
The very suggestion of that sounds like a crime against humanity
This sounds like the weird opposite of a template. Could one do: python → framework → template → html → pyscript (→ js) →python? If yes, how often? [I guess it would be a way of cheating to use subprocess](https://javascript.plainenglish.io/how-to-run-python-script-using-node-js-6b351169e916?gi=1d0c2b9ac3cb)
Yes. From https://pyscript.net: > Python with JavaScript: Bi-directional communication between Python and Javascript objects and namespaces
From what I’ve heard you can access JavaScript and Python name spaces. I’ve yet to play with this. Someone might have more info on this.
ah I see, same! looking more in to it today! lets see how it goes ;)
I asked the same question. Yes, we are going to hell
i have seen all your comment 😂... don't worry about it... it will be a great framework 
it is going to be a good framework haha
yes, yes you can
I think the real question would be: But can it run crysis?
But can it run ~~crysis~~ doom?
What about Skyrim?
/r/YourJokeButWorse
Here's a sneak peek of /r/YourJokeButWorse using the [top posts](https://np.reddit.com/r/YourJokeButWorse/top/?sort=top&t=all) of all time! \#1: [Bruh](https://i.redd.it/b9eky1xwyc541.jpg) | [87 comments](https://np.reddit.com/r/YourJokeButWorse/comments/eca932/bruh/) \#2: [Yes, that was the implied joke](https://i.redd.it/ecbw0t1ef9t31.jpg) | [46 comments](https://np.reddit.com/r/YourJokeButWorse/comments/djkigt/yes_that_was_the_implied_joke/) \#3: [Explaining the joke yields more upvotes and gold. Every. Single. Time.](https://i.imgur.com/YBvLNTP.jpg) | [145 comments](https://np.reddit.com/r/YourJokeButWorse/comments/e5ee5o/explaining_the_joke_yields_more_upvotes_and_gold/) ---- ^^I'm ^^a ^^bot, ^^beep ^^boop ^^| ^^Downvote ^^to ^^remove ^^| ^^[Contact](https://www.reddit.com/message/compose/?to=sneakpeekbot) ^^| ^^[Info](https://np.reddit.com/r/sneakpeekbot/) ^^| ^^[Opt-out](https://np.reddit.com/r/sneakpeekbot/comments/o8wk1r/blacklist_ix/) ^^| ^^[GitHub](https://github.com/ghnr/sneakpeekbot)
/r/YourJokeButWorse
Do we have an idea what browsers support it? Particularly in the mobile space.
Its everything that supports WASM I believe. So https://caniuse.com/wasm
From what I read, it's only been tested properly on Chrome
I thought access to localStorage and sessionStorage was a browser thing that JS interacts with. If that's the case, you'd just need a python api to hit those browser data stores.
Yes and it is beautiful
For what have you used it so far?
[удалено]
Huh, I tried running a number of the examples in my Chrome browser and only a couple of them worked.
What is the usual use case for you?
ah nothing specific for now, just exploring and trying it out ;)
You guys think this will replace javascript?
No, not even close.
No, definitely not. The download size for any other libraries you want to use drastically slows the loading of the page. It’s a cool tool that definitely has its uses but it seems like just a gimmick at this point
The same could be said for JavaScript. Modern websites load a buttload of js frameworks.
But modern javascript bundlers include tree shaking which reduce the effect of this is drastically. Only the necessary functions are included in the final bundle. Unless someone builds some kind of bundler with tree shaking for python the additional libraries will be a significant download burden. Much more so than for javascript.
The same can not be said. Well it can, but they'd be wrong. JS frameworks do not come out to be anything close to the size of Python and whatever libraries one decides to use. Numpy is 11MB, Pandas 5MB, OpenCV is 90MB. I can't find any libraries that are the reason you'd want to use Python that are not MBs in size. EVEN PYTHONS STANDARD LIBRARY IS 30MB UNPACKED React is 110KB, Vue around 60KB, Angular 2 gets closer to 1MB but still doesn't go above that. So even a 'buttload' of JS Frameworks kneels in comparison to the size of a useful set of Python libraries. Beeg. Snek.