Python Development in Spacemacs
9:14
Git in Spacemacs/Emacs with Magit
8:26
Пікірлер
@farty555
@farty555 3 күн бұрын
This is an excellent way to introduce someone like me to a language like julia. Thank you for making this ♥️
@Bruh-sp2bj
@Bruh-sp2bj 16 күн бұрын
Python can technically makenmultiple threads but functionally only one of those run at a time because of the gil so im not sure what youre trying to get at here
@JackofSome
@JackofSome 16 күн бұрын
That's... exactly what the video is about. A shockingly large number of python devs do not know this and think all python threads are green. People also tend not to know that a bunch of FFI based libraries will release the GIL during function calls. This fact can become an advantage.
@TheSpotPlot
@TheSpotPlot 19 күн бұрын
Thank you for the awesome video! I am creating my own reinforcement learning snake game, but I am able to run it on my phone. I will train my snake, while my phone is on charge, while I sleep. The grid size is quite large, so I will see what happens, over time, and eventually show my results on KZfaq.
@Popart-xh2fd
@Popart-xh2fd Ай бұрын
On Linux it's a piece of cake, on Windows it's impossible!
@shikanokonokokoshitantan
@shikanokonokokoshitantan Ай бұрын
Why pronounce dir as "dire" and not "dear" 😭
@JackofSome
@JackofSome Ай бұрын
Oh dear, what a dire situation.
@skr1208
@skr1208 Ай бұрын
Was I the co-worker 😂
@rr4919
@rr4919 Ай бұрын
It looks the same as nvim. What advantages of emacs?
@tejeshwar.p
@tejeshwar.p Ай бұрын
Is my understanding correct? Python threads perform tasks concurrently by using single processor core without parallelism. With Python multiprocessing we can spawn multiple processes with different interpreters on different cores and achieve parallelism.
@JackofSome
@JackofSome Ай бұрын
No. Python threads are also running in parallel but are artificially locked to running one at a time. In some cases you can get rid of this lock. With python 3.12 this is about to become a lot simpler
@blue_name_warrior
@blue_name_warrior Ай бұрын
# %% but nothing happened?
@riccardozappitelli450
@riccardozappitelli450 2 ай бұрын
Watching this now is just painful
@gregmarquez8222
@gregmarquez8222 2 ай бұрын
Great video! I'm trying to teach myself Neural Networks and AI, and one of my future projects will be a "snake" playing AI based on a NN. I now have experience with basic multi-layer NNs for classifying images, etc.. What would you recommend as a "next step" to go from classifiers to NN that can play snake, etc., and some learning resources for this? I realize that this video is 4 years old, but just in case you are monitoring the comments, I thought I'd ask. Thanks!
@seawardspy-jl4hz
@seawardspy-jl4hz 2 ай бұрын
Anyone else have trouble with PB11 not generating the Python module? Win11 Visual Studio 2022
@talkingbirb2808
@talkingbirb2808 3 ай бұрын
update: interactive mode does not generate svg images now and it is advised to use %matplotlib widget or something similar instead
@JOHNSMITH-ve3rq
@JOHNSMITH-ve3rq 3 ай бұрын
astonishingly efficient pedagogy here. Props man! Thanks!!
@user-eh4bh4no2t
@user-eh4bh4no2t 3 ай бұрын
can you help me install python on termux without an error, when i install it i get this error message E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (2)
@lion123-nh6jb
@lion123-nh6jb 4 ай бұрын
how can I use pybind11 as python-package? If I install it via conda/pip, what is then the path in find_package command in CMake?
@ChrisCox-wv7oo
@ChrisCox-wv7oo 4 ай бұрын
I didn't know about Ctrl t with fzf, I usually do **<tab> for the same functionality. Ctrl t is the way to go though. Thanks!
@helgemunkjacobsen8452
@helgemunkjacobsen8452 4 ай бұрын
The reason why you haven't met anyone else that uses Redis Simple Cache might be because they just use the Python standard library `functools.lru_cache()`?
@TheGoatsy
@TheGoatsy 4 ай бұрын
I actually never used this to my benefit as well, but why should someone use this instead of a .ipynb file?
@JackofSome
@JackofSome 4 ай бұрын
Text files are arguably more portable and are definitely easier to version control. Ultimately it's all preference though
@NikoKun
@NikoKun 4 ай бұрын
I took my own weird route to playing around with this idea.. First, I wrote a more classic rules based bot to play snake, with it's own recursive function to check future choices for dead ends. It's not perfect, but it can often play the game well enough, to fill half the available space with snake before dying to more difficult to avoid dead-ends. I then used that bot to record 10,000 of it's highest scoring games frame by frame, a couple million frames in total, also recording each action it took per frame. Then I fed all that data into a basic neural network, and ran a few hundred training epochs. So far I've gotten the neural network to play the game alright, but only about as good as my bot. heh
@epic10l2gaming6
@epic10l2gaming6 4 ай бұрын
1:00 when did you ever do smth computationaly intensive in python? i guess never.... meanwhile me trying to figure out how to run through 2^32 combinations of numbers using python :/
@JackofSome
@JackofSome 4 ай бұрын
Don't. Pure Python is the wrong language for it. Use numba or cython for a familiar feel. Or learn to use mypyc. Or use a completely different language.
@unflexian
@unflexian 5 ай бұрын
mate you're a jupyter magician
@jawadmansoor6064
@jawadmansoor6064 5 ай бұрын
that is beautiful background colour on websites. how did you get it?
@1q1q1q1q1q1q1qw
@1q1q1q1q1q1q1qw 5 ай бұрын
thus it also work for object oriented code class functions . or only for simple calculations.
@JackofSome
@JackofSome 5 ай бұрын
Newer versions of numba have ways to compile classes
@1q1q1q1q1q1q1qw
@1q1q1q1q1q1q1qw 5 ай бұрын
@@JackofSome thx :)
@1q1q1q1q1q1q1qw
@1q1q1q1q1q1q1qw 5 ай бұрын
I often have the problem that my functions take objects as input and act on them. I need to build an additional wrapper to encapsulate simple calculations that can be optimized that's somehow annoying.
@deeplazydev
@deeplazydev 6 ай бұрын
Amazing video!
@anotherdeadguy
@anotherdeadguy 6 ай бұрын
can you make a video on how to customize the terminal like yours?
@diogoledermann7393
@diogoledermann7393 6 ай бұрын
Great vid 👍
@idirhouari3878
@idirhouari3878 6 ай бұрын
I usually watch videos in x2 speed, however here I had to put it in 0.5x speed 🤣 I'm discovering both C++ and pybind11 so although it is hard to follow everything yet your explanation is pretty cool as it sums up most of the functionalities available in a short time, I now understand better where I need to start ! thank you
@sreenath1987
@sreenath1987 7 ай бұрын
Awesome video. Small nit though… in the second time test… imread comes after start time. Wouldn’t that increase the time taken!?
@Bbdu75yg
@Bbdu75yg 8 ай бұрын
Amazing ❤
@_0xUr_
@_0xUr_ 8 ай бұрын
I'm 20 but I know it since python 2 days
@JackofSome
@JackofSome 8 ай бұрын
Good for you
@user-bk2pt5ny9h
@user-bk2pt5ny9h 8 ай бұрын
Been trying to install bardapi on termux for two days... Gonna try this
@noctesomnium
@noctesomnium 8 ай бұрын
is there any way to make intellisense to analyse the python module imported?
@girlswithgames
@girlswithgames 8 ай бұрын
just run python twice 8)
@phonglai86
@phonglai86 9 ай бұрын
I don't know how to write a Makefile for this :((
@user-ht7gg8xs3u
@user-ht7gg8xs3u 9 ай бұрын
This is a lifesaver! I'm used to Matlab and recently picked up Python. It's great to check what I'm doing. Thank you!
@hopehype6467
@hopehype6467 9 ай бұрын
I would love a more in depth tutorial for the 3d display you're showing please
@vanischesmall
@vanischesmall 9 ай бұрын
how to make terminal like his? its awesome
@abrarmasumabir3809
@abrarmasumabir3809 10 ай бұрын
What font are you using?
@user-if2rh5ur5x
@user-if2rh5ur5x 10 ай бұрын
love u man , this is aws!!!! Very well explained
@syoudipta
@syoudipta 11 ай бұрын
After being skeptical about this library for a while, I've gotten used to it. I've watched many tutorials and read many articles and documentation. After weeks of determination to learn this technique properly,... I have become, comfortably Numba. 🤟
@juanwoodcock5217
@juanwoodcock5217 11 ай бұрын
Very nice video. +1 like and subscription
@user-kg4oj1fv2w
@user-kg4oj1fv2w 11 ай бұрын
Omg bro can type faster than I think
@dank8981
@dank8981 11 ай бұрын
Straight to the point and super clear!
@anshumankumar3503
@anshumankumar3503 11 ай бұрын
I think it would be helpful to add what kind of tasks can be multi-threaded in Python, since for certain computational tasks, without numba, the GIL would block multiple threads and make processing single-threaded.
@fakt7814
@fakt7814 Жыл бұрын
Today I encountered exactly that problem and then I remembered this video. Thank you.
@Cdaprod
@Cdaprod Жыл бұрын
Nice!
@meem_hub1
@meem_hub1 Жыл бұрын
is it work only local network 😂 can't log over the internet 😢
@yash1152
@yash1152 Жыл бұрын
1:53 yep, discovered this accidently myself some months ago. its nice.