11ty TSX Choices Preact
4:50
Ай бұрын
11ty TSX Choices React
7:07
Ай бұрын
PyScript Collective Prototype
4:41
Arcade - Animation
5:36
7 жыл бұрын
Arcade - Drawing Text
2:09
7 жыл бұрын
Arcade - Set Background Color
2:39
7 жыл бұрын
Arcade - Render
0:50
7 жыл бұрын
Arcade - Project Setup
1:21
7 жыл бұрын
Arcade - PyCharm Setup
1:49
7 жыл бұрын
Arcade - Python Setup
0:50
7 жыл бұрын
Arcade - Main Block
1:08
7 жыл бұрын
Arcade - Open Window
1:44
7 жыл бұрын
Arcade - Setup
3:36
7 жыл бұрын
WebStorm Angular2 Chrome Debugging
2:12
Пікірлер
@fpigeonjr
@fpigeonjr 2 ай бұрын
Hi Paul, enjoyed your talk at the 11ty Conference. I am new to 11ty and was concerned that I couldn't build components with JSX but then saw your talk and was happy to see you can get a rich developer experience w/ TS, ~~vite~~tsx, vitest, etc. Thanks for sharing. btw, which IDE are you using? Looks very nice.
@RobertGroves
@RobertGroves 4 ай бұрын
Thanks for this video. Now that it's about 3 months later, how much more comfortable with hatch are you-what are your likes/dislikes? I'm trying to wrap my head around it currently.
@pcl1923
@pcl1923 5 ай бұрын
Nice video if you want a quick overview of Hatch. Thanks!
@tanya1707
@tanya1707 9 ай бұрын
Hi , where can I find the project link ? Any GitHub link ?
@IRedMonkey
@IRedMonkey 10 ай бұрын
no es para nada práctico ni comodo usar usa librería
@lucadellasciucca967
@lucadellasciucca967 10 ай бұрын
Doble line space is not in python You didn t exaplin how this works without calling the function and what is delta_time (you didn t define it or passed it into any function call).
@Gordonfreems
@Gordonfreems 10 ай бұрын
I’m such a fan of Textual and Rich the code is so clean it gives me goosebumps
@programware
@programware Жыл бұрын
Thanks for the video! It helped me a lot.
@BathingAfrican
@BathingAfrican Жыл бұрын
do more on dis plz thnx amen
@Bunnokazooie
@Bunnokazooie Жыл бұрын
Great channel! Thanks for sharing
@pauleveritt201
@pauleveritt201 Жыл бұрын
Thanks for watching!
@Butlinsgvn6
@Butlinsgvn6 Жыл бұрын
Found you through HN. This is a great idea for a series! Love the chance to see how to dig into new tools quickly and practically
@pauleveritt201
@pauleveritt201 Жыл бұрын
Thanks! The formula means I don't dive in too deep. But is it too shallow to be useful?
@imaurer
@imaurer Жыл бұрын
Nice video Paul! Textual is cool. The first 5 minute idea is a great approach.
@pauleveritt201
@pauleveritt201 Жыл бұрын
Thanks Ian. I've done a few others. I generally alternate between web and Python. Try to hit things that aren't yet super popular but should be. Next two: Vitest then Datasette Lite.
@aaronbell5964
@aaronbell5964 Жыл бұрын
ρɾσɱσʂɱ
@user-lu3pl6xm1q
@user-lu3pl6xm1q 2 жыл бұрын
sadly we can't use it with pandas even if we write this <py-env> - pandas </py-env> before pyscript tag
@alexf0815
@alexf0815 2 жыл бұрын
Yeah, that's super cool
@wattmeter
@wattmeter 2 жыл бұрын
Very cool!
@alexf0815
@alexf0815 2 жыл бұрын
This is super interesting. To be honest, I didn’t get all on the first watch, but I will go through your video intensely, until I understand it in whole, as this is exactly, what I looked for. Thank you.
@wade1271
@wade1271 2 жыл бұрын
🔥 [̲̅p][̲̅r][̲̅o][̲̅m][̲̅o][̲̅s][̲̅m]
@ThankYouESM
@ThankYouESM 2 жыл бұрын
I didn't suspect it would need so much code in believing each syntax would get translated from Python syntax to the nearest JavaScript syntax and about to create my own Py2JS... if I could first find a side-by-side comparison of every syntax.
@pauleveritt201
@pauleveritt201 2 жыл бұрын
If your goal is to allow writing Python directly in HTML, then you'll need something like web components. Also, PyScript is quite young. It's possible that creating these web components will be a lot easier in the future. If your goal is to transpile Python to JS, there are several good options already.
@ThankYouESM
@ThankYouESM 2 жыл бұрын
@@pauleveritt201 Thanks for all the info.
@ThankYouESM
@ThankYouESM 2 жыл бұрын
Can it do graphical animation?
@pauleveritt201
@pauleveritt201 2 жыл бұрын
Indeed it can, one of the demos I showed integrates with a JS visualization library.
@mikeckennedy
@mikeckennedy 2 жыл бұрын
Nice work Paul!
@j.p.brochu8592
@j.p.brochu8592 2 жыл бұрын
After you get the pyscript source and install it, can we say that everything runs locally (without internet connection)?
@pauleveritt201
@pauleveritt201 2 жыл бұрын
Not at the moment, as it by default does this: github.com/pyscript/pyscript/blob/main/pyscriptjs/src/components/pyconfig.ts#L186 But if you could same-origin it, you probably could put a <py-config> in your document that pointed to that source.
@johnhanley2431
@johnhanley2431 2 жыл бұрын
Very interesting video. Please create part 2.
@pauleveritt201
@pauleveritt201 2 жыл бұрын
Thanks. Even better, let's collaborate on it.
@emailformosa
@emailformosa 2 жыл бұрын
Thank you. Your `likes` and `views` after two months is criminal. Here’s some `comments` interaction to boost the algorithm.
@RbladerOS
@RbladerOS 2 жыл бұрын
Nice video! Thank you. It seems `Widget` inherits from `MessagePump` by the way, just like `App`, which confused me at first. I think every MessagePump object can send/receive messages and pass them on, and then the App's MessagePump can be quickly accessed via the ContextVar you mentioned. But I'll have to look into it again.
@magnuscarlsson6785
@magnuscarlsson6785 2 жыл бұрын
Thanks for showing this! I've been meaning to look into how autodoc_typehints have evolved since I started with sphinx and napoleon but haven't got around to it, and now I know. The autodoc_typehints seems ready for production. 👍
@sachinkun21
@sachinkun21 2 жыл бұрын
Thanks for sharing this Everett and Mukul. Looking forward to watching and learn from this
@ComradeCorwin
@ComradeCorwin 2 жыл бұрын
I am such a newbie... I was watching this because I had become obsessed with finding a terminal TUI library and I was honestly a bit surprised it existed. However, I find myself completely out of my depth with the technical language and jargon. Honestly, the jealously I feel will only spur me on to learn more, so not all bad. Not that I need much encouragement. I love what I've been taught thus far and cannot wait to gain more experience with time. Anyway, short story over. Thank you for making videos like this. It is nice to know that there are people who enjoy coding in Python as much as I do and I cannot wait to be on your level some day!
@zeppelin0110
@zeppelin0110 2 жыл бұрын
Great library. I just wish Tiangolo had also uploaded a sample codebase. But I suppose copying & pasting sample code works, too. That's what I've been doing.
@ankeu.a.wallace
@ankeu.a.wallace 2 жыл бұрын
Thank you !!! ;-) Awesome!!!!
@whostolehonno
@whostolehonno 2 жыл бұрын
That was fun!
@zechcodes7830
@zechcodes7830 2 жыл бұрын
Great video! Very neat to see how an interesting thing like reactivity is being done on a popular project. Thanks!
@pauleveritt201
@pauleveritt201 2 жыл бұрын
Yep, I agree. There are some Python reactive libraries -- big packages, small packages. But this is the first I've seen where it is wedded to an application using it (i.e. bundled.)
@pwrlift
@pwrlift 2 жыл бұрын
hi, do u know how to make enums with sqlmodel?
@mrvkino
@mrvkino 2 жыл бұрын
Really fun to listen to you highlight cool and elegant way someone solved an issue. It keeps me on the look out for anti-pattern in my code.
@EbenezerDon
@EbenezerDon 2 жыл бұрын
I enjoyed the inside look. Going to check this out
@pybob
@pybob 2 жыл бұрын
Nice video, thanks Paul, super exciting project, will use it today :)
@chinuonchaitanya8340
@chinuonchaitanya8340 5 жыл бұрын
plz make more video on arcade..as their is no such tut on arcade avilable on net....plzz help us
@RudyTN
@RudyTN 5 жыл бұрын
nooo, its the last vid. I was just getting into arcade and this was soo good!
@chinuonchaitanya8340
@chinuonchaitanya8340 5 жыл бұрын
yup.. :(
@looppy3357
@looppy3357 5 жыл бұрын
28:31 hi, for some reason it says "Parameter "delta_time" value is not used."
@pauleveritt201
@pauleveritt201 5 жыл бұрын
Yes, Arcade provides that value to the method. My example game didn't need it. The IDE gave a soft warning to remind about it. The Python runs fine.
@looppy3357
@looppy3357 5 жыл бұрын
@@pauleveritt201 thank you! i changed def animate to def update which fixed the problem.
@looppy3357
@looppy3357 5 жыл бұрын
@@pauleveritt201 hi, what should I do if I want the sprite to walk on its own instead of being controlled by the cursor?
@pauleveritt201
@pauleveritt201 5 жыл бұрын
@@looppy3357 Several examples here: arcade.academy/examples/index.html#sprite-player-movement In general, your sprite class tracks its own center_x and center_y values which you modify with an update method.
@toevoluindo7773
@toevoluindo7773 6 жыл бұрын
help me plis, OSError: exception: access violation reading 0x0A0FA9D8 I'm having this problem. It makes me not able to play
@pauleveritt201
@pauleveritt201 6 жыл бұрын
What operating system, version of Arcade, and version of Python? Can you paste the full traceback so I can see which line it was executing?
@toevoluindo7773
@toevoluindo7773 6 жыл бұрын
windows 7, version of Arcade 1.3.4, and version of python is 3.7.0. line 316, in draw glDrawArrays(mode, starts[0], sizes[0]) OSError: exception: access violation reading 0x098D0DC8
@toevoluindo7773
@toevoluindo7773 6 жыл бұрын
import random import arcade as arcade import os class MyGame(arcade.Window): def __init__(self, widht, height, title): super().__init__(widht, height, title) arcade.set_background_color(arcade.color.AMAZON) self.score = 0 self.all_sprites_list = arcade.SpriteList() self.player_sprite = arcade.Sprite('images/character.png', 0.5) self.player_sprite.center_x = 50 self.player_sprite.center_y = 50 self.all_sprites_list.append(self.player_sprite) self.coin_list = arcade.SpriteList() for i in range(50): coin = arcade.Sprite('images/coin.png', 0.02) coin.center_x = random.randrange(600) coin.center_y = random.randrange(600) self.all_sprites_list.append(coin) self.coin_list.append(coin) def on_draw(self): arcade.start_render() output = f'Score: {self.score:02d}' arcade.draw_text(output, 10, 580, arcade.color.WHITE) self.all_sprites_list.draw() def animate(self, delta_time): self.score += 1 self.all_sprites_list.update() hit_list = arcade.check_for_collision_with_list( self.player_sprite, self.coin_list ) for coin in hit_list: coin.kill() self.score += 1 def on_mouse_motion(self, x, y, dx, dy): self.player_sprite.center_x = x self.player_sprite.center_y = y def main(): MyGame(800, 600, 'Jogo 2') arcade.run() if __name__ == '__main__': main()
@pauleveritt201
@pauleveritt201 6 жыл бұрын
Can you also give the traceback error text?
@toevoluindo7773
@toevoluindo7773 6 жыл бұрын
Is this? Traceback (most recent call last): File "C:/Users/Ivaldo/Desktop/ivaldo/02-Documentos/Faculdade/2018.1/01-I.P Daliton/arcade_tutorial/game2.py", line 59, in <module> main() File "C:/Users/Ivaldo/Desktop/ivaldo/02-Documentos/Faculdade/2018.1/01-I.P Daliton/arcade_tutorial/game2.py", line 55, in main arcade.run() File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\arcade\window_commands.py", line 191, in run pyglet.app.run() File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\app\__init__.py", line 138, in run event_loop.run() File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\app\base.py", line 142, in run self._run() File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\app\base.py", line 154, in _run timeout = self.idle() File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\app\base.py", line 281, in idle window.dispatch_event('on_draw') File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\window\__init__.py", line 1232, in dispatch_event if EventDispatcher.dispatch_event(self, *args) != False: File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\event.py", line 367, in dispatch_event if getattr(self, event_type)(*args): File "C:/Users/Ivaldo/Desktop/ivaldo/02-Documentos/Faculdade/2018.1/01-I.P Daliton/arcade_tutorial/game2.py", line 31, in on_draw arcade.draw_text(output, 10, 580, arcade.color.WHITE) File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\arcade\draw_commands.py", line 1771, in draw_text label.draw() File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\text\layout.py", line 897, in draw self._batch.draw() File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\graphics\__init__.py", line 560, in draw func() File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\graphics\__init__.py", line 492, in <lambda> (lambda d, m: lambda: d.draw(m))(domain, mode)) File "C:\Users\Ivaldo\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 316, in draw glDrawArrays(mode, starts[0], sizes[0]) OSError: exception: access violation reading 0x09A70678
@Mosrod
@Mosrod 6 жыл бұрын
What is the plugin for the key shortcut projection?
@pauleveritt201
@pauleveritt201 6 жыл бұрын
Presentation Assistant
@most_unwanted_316i
@most_unwanted_316i 6 жыл бұрын
Hello this is my code but the animation doesnt seem to work. Score remains 00. Any suggestions? import arcade as arcade class MyGame(arcade.Window): def __init__(self,width,height,title): super().__init__(width,height,title,True) arcade.set_background_color(arcade.color.AMAZON) self.score=0 def on_draw(self): arcade.start_render() output=f'Score: {self.score:02}' arcade.draw_text(output , 100 , 100 , arcade.color.AERO_BLUE , 12 , 2000) def animate(self,delta_time): self.score +=1 def main(): MyGame(600,600,'My Game') arcade.run() if __name__ == '__main__': main()
@pauleveritt201
@pauleveritt201 6 жыл бұрын
Yes, alas, Arcade recently changed the animate method to "update". I should tell him to leave a backwards-compatability shim in place.
@ihorpavlyk7461
@ihorpavlyk7461 7 жыл бұрын
Paul, thanks a lot.
@bobpps
@bobpps 7 жыл бұрын
Большое спасибо!
@threshholdzero
@threshholdzero 8 жыл бұрын
I tried this with WebStorm 2016.1.3 with a project created with angular-cli, using angular 2 rc1. Should it also work with projects created with angular-cli? I start the project with npm start from the npm toolbar (exact same way as in the video). I created a javascript debug configuration as in the video. I set some breakpoints in the code. One of them is at a console.log(...) line, and that text is also logged, so the execution goes there. When I start debuging using the js debug configuration, Chrome is started. In WebStorm's Debugger tab I can see "Connected to JetBrains Chrome Extension". Also in Chrome if I hower my mouse over the black JB icon in the top right side it says: "Connected to WebStorm 2016.1.3". So this seems to be fine. However it does not stop at any breakpoints. What could be the poblem. Using Linux Mint 17.3 (Ubuntu 14.04 based) 64 bit. Chrome is also the latest, Version 51.0.2704.84 (64-bit). For Java I use OpenJDK 7: $ java -version java version "1.7.0_101" OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
@pauleveritt201
@pauleveritt201 8 жыл бұрын
Next week I'm going to work on a more official screencast using the latest-greatest everything.
@threshholdzero
@threshholdzero 8 жыл бұрын
I think I found the trick! I need to place the breakpoint into the .js files (under dist\app under our project, not sure if that is the standard place) transpiled from the .ts files. Then, when the breakpoint is hit, the IDE shows the .ts file, I can see the variables (e.g. this), I can step the execution in the .ts file, etc., so from a quick try the only problem so far seems to be that the debugger does not stop at the breakpoints inserted to the .ts files.
@satishpokala247
@satishpokala247 8 жыл бұрын
Hey Thanks For Nice Explanation. I have added the extension but while debugging it says Frame is not available. I have added debug points too, And it is connected with extension. Can you help me on this.
@pauleveritt201
@pauleveritt201 8 жыл бұрын
+Satish Pokala The part at 39 seconds into the video, where I say "this is important"...did you set the port the same on both sides (the Chrome extension and the WebStorm preference)?
@satishpokala247
@satishpokala247 8 жыл бұрын
+Paul Everitt In chrome Extension I am using 63342 and In webstrom javascript debugger URL parameter I am using localhost:8888/ where my app is running. Am I doing anything wrong here. Thanks
@pauleveritt201
@pauleveritt201 8 жыл бұрын
+Satish Pokala The port number needs to match WebStorm Preferences -> Build, Execution, Deployment -> Debugger, Built-in server port
@satishpokala247
@satishpokala247 8 жыл бұрын
+Paul Everitt Yes they both are same 63342 and It says Connected to JetBrains Chrome Extension, But It is not stopping at my break point. any help on this. And even my browser says that "JetBrains IDE support" is debugging this browser.
@pauleveritt201
@pauleveritt201 8 жыл бұрын
+Satish Pokala I was replying to your point about the frame not being available. That said, I believe the bug tracker shows there are some bugs right now in the Live Edit support.
@houssemzaier
@houssemzaier 8 жыл бұрын
Hi, I 've just tried to do the same thing with IntelliJ-Idea but it would not stop at break points... any idea to solve this problem? thanks
@pauleveritt201
@pauleveritt201 8 жыл бұрын
+HOUSSEM ZAIER Sorry, can't think of anything. Are you in a JavaScript Debugger run configuration?
@houssemzaier
@houssemzaier 8 жыл бұрын
Paul Everitt yes sir, I have just followed you, but I have chosen the angular seed app from github as a starter project. Well it may possibly come from my IntelliJ IDE version, and they will correct this bug , as I hope... Paul I have a question please: I want to developer Angular2 app and put it in the browser without localserver (just like in plnkr) but I am using Springboot as a backEnd , so I have a folder where I should put my static web files there...) I have been doing that with Angular 1.x but today I felt in love with TypeScript and I want to continu wokring on it. So do have any idea how to use TypeScript with Angular2 without using an NPM server ... I thought that we can transform our typeScript files into JS files for the production mode but I can't get what I am looking for... Can you help me to solve this problem... please And thanks in advance
@pauleveritt201
@pauleveritt201 8 жыл бұрын
+HOUSSEM ZAIER The npm servers give the benefit of automatically transpiling your TypeScript and reloading your browser (using browserSync) whenever you do an edit.
@houssemzaier
@houssemzaier 8 жыл бұрын
Paul Everitt what about exporting typescript files to js files so i can run them in the browser without using a server , this should be in the production mode
@threshholdzero
@threshholdzero 8 жыл бұрын
You can try inserting the breakpoints to the transpiled .js files. That way they were hit, and still I could continue the debugging in the .ts files. Worked at least with WebStorm 2016.1.3. Hope this helps!
@irvinge4641
@irvinge4641 8 жыл бұрын
Thanks :D this is awesome
@jasonportnoy7866
@jasonportnoy7866 8 жыл бұрын
awesome!