Python Development in Spacemacs

  Рет қаралды 31,250

Jack of Some

Jack of Some

Күн бұрын

Пікірлер: 47
@earltan739
@earltan739 4 жыл бұрын
Thanks jack, love your content. Please make more videos on spacemacs, also please make a video for ipynb
@baaaaayesian
@baaaaayesian 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 3 жыл бұрын
It is so good, thank you very much!!!!
@glennoberlander
@glennoberlander 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)
@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.
@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.
@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 :)
@MrMangkokoo
@MrMangkokoo 4 жыл бұрын
do you experience lagging/stuttering with lsp? cz mine does to the point where it's unusable for me ;(
@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...
@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?
@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!
@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.
@Sahilbc-wj8qk
@Sahilbc-wj8qk 4 жыл бұрын
Not working as when i open work-on it does not show any working env name i created
@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 👍
@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!
@吴鹏-s1d
@吴鹏-s1d 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
@吴鹏-s1d
@吴鹏-s1d 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?
@吴鹏-s1d
@吴鹏-s1d 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
@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 KZbin 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)
@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 :)
@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
@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 👍
Make Python code 1000x Faster with Numba
20:33
Jack of Some
Рет қаралды 446 М.
Spacemacs Navigation Superpowers (ft. Channel Update)
16:18
Jack of Some
Рет қаралды 11 М.
Человек паук уже не тот
00:32
Miracle
Рет қаралды 4,2 МЛН
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 1,9 МЛН
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
What Are The Benefits Of Emacs Over Vim?
29:44
DistroTube
Рет қаралды 179 М.
Org mode and Spacemacs: The Absolute Minimum you need to know
21:16
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 370 М.
Interview with an Emacs Enthusiast in 2023 [Colorized]
8:50
Programmers are also human
Рет қаралды 1,2 МЛН
Spacemacs: Installation, Configuration, and Navigation Tutorial
24:26
Python is NOT Single Threaded (and how to bypass the GIL)
10:23
Jack of Some
Рет қаралды 110 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 77 М.
Supercharge your Emacs / Spacemacs / Doom with Yasnippets!
12:06
Jack of Some
Рет қаралды 18 М.
Configuring Emacs on My New Laptop
2:00:09
Tsoding Daily
Рет қаралды 84 М.
Can VSCode be a reasonable Spacemacs alternative? (VSpaceCode)
10:13
Человек паук уже не тот
00:32
Miracle
Рет қаралды 4,2 МЛН