Тёмный
No video :(

Python Development in Spacemacs 

Jack of Some
Подписаться 30 тыс.
Просмотров 31 тыс.
50% 1

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 47   
@TheRealPrunebutt
@TheRealPrunebutt 3 года назад
Timestamps: 1:00 - Virtualenvwrapper 2:04 - Additional packages for working in Spacemacs 2:43 - Configuring Spacemacs 3:20 - Company-complete 4:25 - Jumping to the definitions of a variable or class 4:56 - Linting 6:16 - Yapify (Autoformatting) 7:01 - Executing scripts inside of emacs 7:32 - Code completion with LSP 8:20 - Forcing a code completion backend
@earltan739
@earltan739 4 года назад
Thanks jack, love your content. Please make more videos on spacemacs, also please make a video for ipynb
@jiyanjonasschneider4851
@jiyanjonasschneider4851 4 года назад
I absolutely love your videos! Looking forward to every single one
@ananon5771
@ananon5771 4 года назад
nice and informative,hope you get dap working soon though on your main machine
@xXneorlinXx
@xXneorlinXx 4 года назад
dap-mode works for me out if the box in, like, 70% of time. But those other 30% are hell. It either won't work or simply crash in the middle. Definitely needs more work :)
@bemotic
@bemotic 2 года назад
It is so good, thank you very much!!!!
@amineacademy1544
@amineacademy1544 3 года назад
my 6th or 7th sub in 8 years
@derkling
@derkling 4 года назад
Great video! I also notice your desktop setup, looks like you are using i3 as WM replacement for XFce. That's my setup too and I find it very convenient. Do you have a video where you show how to get it?
@JackofSome
@JackofSome 4 года назад
Not yet but I'm thinking about making one.
@PraecorLoth970
@PraecorLoth970 4 года назад
Hey, thanks for these videos! I'm loving to learn about spacemacs. If you could do one video about latex and auctex I would be very happy. Also, what's holding me onto pycharm is its debugging features. How does spacemacs compare in that regard?
@JackofSome
@JackofSome 4 года назад
It's possible to do in Emacs (see dap-mode) but I couldn't get it to work for this video. I personally stick with ipdb so hadn't tried dap until I made the video. If I get it working in the future I'll make a video about it. Thanks for watching :)
@muhammadzulfaqarazmi5964
@muhammadzulfaqarazmi5964 4 года назад
Great content, I used the lsp mode when configuring the C++ and it is great. Off-chance, will you do a video about configuring ROS in Spacemacs?
@glennoberlander5005
@glennoberlander5005 2 года назад
Did you ever figure out how to get dap-mode going? Also, I think this video could use an update, considering how prevalent LSP's have become. I don't think pyls is used much anymore (but I could be wrong)
@dlf5232
@dlf5232 4 года назад
spacemacs works fine with conda backend using the condo layer. I don't know if that was true when this video was made. It only works with the develop branch though.
@geez6666
@geez6666 4 года назад
Yes DAP mode setup is pain. After setting a breaking point using dap-breaking point-add I'm not sure how to proceed and run the script so that it gets picked up the the debug environment.
@user-bj3jk5gd1s
@user-bj3jk5gd1s 3 года назад
hi, when I type M-x: company-complete, it shows-> company not enabled, could anyone help me?
@JackofSome
@JackofSome 3 года назад
M-x company-mode Ideally you want to enable it in your config file. For spacemacs I think that's the autocomplete layer
@user-bj3jk5gd1s
@user-bj3jk5gd1s 3 года назад
@@JackofSome I just do step by step with the vedio after git clone the spacemacs.d,maybe I should do something not mentioned in the vedio?
@user-bj3jk5gd1s
@user-bj3jk5gd1s 3 года назад
@@JackofSome I have solved it, but a new problem come: I must run an Inferior Python and import the same lib, then the auto-completion worked of this lib in the .py file
@RichardThomas341
@RichardThomas341 4 года назад
Thanks for this. Would you list everything that you installed, please? It would be very helpful. Thank you!
@JackofSome
@JackofSome 4 года назад
flake8 isort yapf python-language-server
@RichardThomas341
@RichardThomas341 4 года назад
@@JackofSome Thank you, appreciate it!
@xStefaKO
@xStefaKO 3 года назад
Is this all the configuration I need? I am on Windows 10, Python 3.9.2 interpreter installed globally and using spacemacs, everything enabled in the layers(python+lsp), I make a virtual env. with python -m venv environment-name, activate it, install the dependencies I need, for example, let's say I use Pyright as a language server(which I currently am trying to do), I install npm and using npm I install the Pyright(as it's instructed in the spacemacs docs), after am done with all the dependency installations, I open up spacemacs, TRY to switch to the virtual environment using pyvenv-workon and it spits out JSON-readtable-error 80, nothing else in the error buffer so alright, what the hell, maybe it still works... I open up a project, it RECOGNIZES the environment I activated(down there on the modeline, it spells out its name), but it doesn't see a language server? I assume using built in venv is similar to this, but I don't know what I'm doing wrong...
@GopakumarS
@GopakumarS 4 года назад
Everyone says nothing beats emacs. Auto complete is a basic feature for any ide. And you say it will break some times/ may not work in Some scenarios and you need manually enable it. Why would someone take this much effort to install and configure emacs. Why can’t we just use VS code, atom, something. Those are light weight and easy to configure.
@JackofSome
@JackofSome 4 года назад
I'm fastest in Spacemacs. I've tried all the other tools for a long time and I'm fastest in Spacemacs. Some times it's finicky to configure, yes. But the time lost there pales in comparison to the time gained elsewhere. At the end of the day, use what you're most comfortable with. For me that's Spacemacs :)
@guiAI
@guiAI 4 года назад
Hey, maybe im being the biggest noob but i dont have the 'company-complete' command, maybe im doing something wrong? Im using SPC + SPC to go to M-x and when i write comp... nothing pops up, or nothing relevant or similar to what you proposed, help please :'[ UPDATE: so i uncommented auto-completion from the dotfile and now the command company-complete appears BUUT if i try to run it, it says that company-complete is not enabled HALPP Another UPDATE: I fixed it, its kinda wonky, it doesnt look as good as yours but ill be workin on how to improve it, anyway, thanks
@JackofSome
@JackofSome 4 года назад
Oh boy. Sorry I ignore Windows so hard in my videos but I don't think my old heart could take trying to make things work in Windows. I salute your initiative sir 👍
@Sahilbc-wj8qk
@Sahilbc-wj8qk 4 года назад
Not working as when i open work-on it does not show any working env name i created
@picosdrivethru
@picosdrivethru 4 года назад
so how do you deal with data processing scripts that produce a lot of output? write to disk and open file?
@JackofSome
@JackofSome 4 года назад
Either that or switch back to using a terminal
@picosdrivethru
@picosdrivethru 4 года назад
@@JackofSome ah okay. I'm on a windows machine due to some dependencies, so this is going to be interesting :) thanks for the videos!
@MrMangkokoo
@MrMangkokoo 4 года назад
do you experience lagging/stuttering with lsp? cz mine does to the point where it's unusable for me ;(
@arnav7000
@arnav7000 4 года назад
Do a video on Ruby on Rails development on spacemacs
@JackofSome
@JackofSome 4 года назад
That would require me to first learn Ruby and Rails 👀
@arnav7000
@arnav7000 4 года назад
@@JackofSome no problem bro take ur time 👍
@dalanicolai
@dalanicolai 4 года назад
Do you set your WORKON_HOME environment variable in the user-init section of your .spacemacs file? Because even though I define the variable in my .bash_profile file spacemacs complains - at least on my system where I run the emacsclient at startup with systemd - that WORKON_HOME is not defined. Or do you use a more elegant solution?
@JackofSome
@JackofSome 4 года назад
I've actually never had to deal with it. Does it work ok if you launch it from a terminal?
@thatoneuser8600
@thatoneuser8600 4 года назад
@@JackofSome Same problem here, after pressing " " and going to pyvenv-workon nothing happens and at the very bottom the text reads "Can't find a workon home directory, set $WORKON_HOME". It does work when launching emacs from the terminal while using the env as a source, so thank you for the help!
@JackofSome
@JackofSome 4 года назад
I see. I think you can explicitly set an environment variable in your Spacemacs init as a last resort. This is getting a little in the "not quite solvable in the RU-vid comments section" territory. I wonder if it's time for the discord server to come into existence
@thatoneuser8600
@thatoneuser8600 4 года назад
Jack of Some sorry I didn't mention this earlier, just to let you know I never tried setting the WORKON-HOME variable, mine is just blank
@thatoneuser8600
@thatoneuser8600 4 года назад
​@@JackofSome I found out that you can activate virtualenvs in spacemacs instead of doing it in the terminal, it's just pyvenv-activate in M-x and then you goto the env directory of your choice. @dalanicolai This article helped me set-up pyvenv workon properly - realpython.com/python-virtual-environments-a-primer/ (scroll down to the "Managing Virtual Environments With virtualenvwrapper" section)
@4kstreamer44
@4kstreamer44 2 года назад
would you care to make a new guide with the new and hip pipenv?
@JackofSome
@JackofSome 2 года назад
I unfortunately don't use pipenv and no longer use Spacemacs otherwise I would
@4kstreamer44
@4kstreamer44 2 года назад
@@JackofSome No problem! What do you use now?
@JackofSome
@JackofSome 2 года назад
My own immitation of Spacemacs. Started from a blank emacs config and slowly built it up until it was to my liking.
@4kstreamer44
@4kstreamer44 2 года назад
@@JackofSome sounds really interesting
Далее
Make Python code 1000x Faster with Numba
20:33
Просмотров 442 тыс.
Spacemacs Navigation Superpowers (ft. Channel Update)
16:18
Virtualized Emacs as an IDE
33:21
Просмотров 29 тыс.
Emacs - Choose the right distribution
51:11
Просмотров 7 тыс.
Python Configuration for Emacs 29
18:59
Просмотров 7 тыс.
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 935 тыс.
Emacs as a Python IDE
47:35
Просмотров 90 тыс.
C/C++ in Spacemacs
40:23
Просмотров 45 тыс.
The Greenwich Meridian is in the wrong place
25:07
Просмотров 794 тыс.