#tools-and-devops
1 messages · Page 28 of 1
...
lol
huh, weird. i just tried that and didnt get any prompt asking me if i wanted to delete or not.
- Use virtualenv directly
Hello
Could anyone please recommend me any decent Python IDE that isn't Jetbrains nor Visual Studio?
visual studio isnt really that much of a decent python IDE
and pycharm is just the best there is
why dont you want pycharm
My computer barely works, and it takes about 5 minutes to just simply open a new document
Yeah, that bad
oh its about computing power
😒
lol
really good IDEs need more computing power so you will either have to accept that or switch to some code editor like visual studio code (not the same as visual studio) or sublime for example
can confirm, runs smoothly on my 10 year old laptop
Speaking of editors and IDEs, has anyone used ide-python with Atom?
As much as PyCharm is a good environment, I'd prefer to keep everything within Atom currently
You could try Spyder @torpid notch
But if your computer is low performance, then an IDE probably won't work well
You're probably better suited with a simple text editor
Any decent ide is going to be a bit of a resource hog, as it has to do some complex analysis to give you the feedback it does
Is there an option or extension for VSCode to highlight overloaded operators?
e.g. Apache Airflow overloads >> to be a pipe operator instead of bitshift
My googling only seems to yield things for various flavors of C
How can I get PyCharm to delete a folder from my Repo when pushing
I want to get rid of venv
so yea
Like...every time you push?
you'll want a .gitignore file for that
how do I do that
and make it get rid of the folder in my next commit
and the folder's contents
a .gitignore file is something you place in your repository which will make git ignore files or folders when you make a commit. i recommend searching up how it works, i'm sure there's plenty of resources online for that.
a simple answer to your question is to put .venv (or whatever your virtual environment is called) in that file, but the file can do more than just basic names, which is why i suggest you read up on it.
I may plan on deleting my repo in the near future as I am using it for 'dev testing' my project but I cant decide tho. like keep it with its previous updates or delete all and publish the final version as a clean, neat one
i do like my github history being colored tho
tints of green etc
could someone fork my project and help me do it if possible?
so I can merge it
@lapis hazel it’s in his gitignore, it’s just already tracked apparently
Hence why I asked if it’s intended as a one time thing or something that’s regular. The former making much more sense than the latter
oh i see
how can I name the commit
so its Version 0.5
Is it commit message?
if yes: Where is commit description?
I tried commit and push
it asked me to merge so I did
now all my commits are gone
but thank god my project is intact
how can I get all my files to be pushed and such
never mind i figured it
but let me ask this:
how can I get .idea, venv and _pycache_ in Localization to be removed and ignored in future updates
woah what software is that?
We already explained arszilla
You gotta get yourself a .gitignore file
Are they ignoring the directories?
I do not know how to do that
thast what I am saying
like that the hell do I do, like how do I categorize it
and make it delete them afterwards
The directories are in there
So now where you are ignoring go to GitHub delete the files there and they should never Show up again
and its contents
I do not know how to delete a folder
thats the issue
there is no delete button
I got git installed but I do not know the commands to do so
You can remove folders in git (they'll still be there) using git rm file/folder
so git rm/venv?
okay
gotta find out how to log on in git
its been a while
since I used the CMD interface
if I delete a folder will it delete its contents aswell?
Yes
I'll dm one sec
@heavy knot do you mean tag
never mind I handled it thanks to @delicate gorge :)
What exactly do I do about these messages running flake8 in pipenv
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead.
C:\Users\Admin\.virtualenvs\UiB-Y92kouL3\lib\site-packages\pycodestyle.py:113: FutureWarning: Possible nested set at position 1
EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
looks like it's a known issue for Pipenv users in particular https://github.com/PyCQA/pycodestyle/issues/728
So i fixed that with pip install -e git+https://gitlab.com/pycqa/flake8@9631dac5#egg=flake8 from that post
Would i need to add that to my pipfile ?
(anything about the PIPENV_IGNORE_VIRTUALENVS=1part?)
hi all. does anyone know. i have the jetbrains toolbox but it cant update itself not plugins. it seems its hanging with an old version i tried uninstalling and reinstalling nothing helped i keep gettingthis error it couldnt find 7zip in package
@long sphinx What platform, what version of the toolbox
latest version, windows 10
like i said i uninstalled and reinstalled teh toolbox but doesnt help
hm i removed the whole installation and removed its directory. now i had to reinstall pycharm and intellij but it worked ;D
cool
how can I add a commit description in PyCharm
there is no such thing like a commit description
once you hit the commit button you will get a window promting you for a commit message (the thing you name commit description) and the files to commit
Github Desktop has it tho
Summary is the commit's name
and Description is what did you do
it is also in ATOM with Git plugin
what they name description is the commit message
if you commit something you can format your commit message in a way to make it look like the commit has a name on github but in general git only has commit messages
I have to do this command: set "PATH=%PATH%;C:\Users\myname\AppData\Local\Programs\Python\Python37-32\Scriptsto get pip to work, is there a way to make it so I don't have to use this command?
save that value in your environment variables in settings
yeah
Control Panel -> System & Security -> System
i got it to work
thanks
I need help
so my github has a few files extra
that being readme etc
but I changed a lot of files locally
what do I Do
merge
^ you've got merge and rebase buttons there
and then either hope everything goes fine or manually fix merge issues
if the 2nd happens pycharm will give you a nice gui to do that
is the code preview scroll bar possible in pycharm?
Not that I know of
I don't think the vanilla can, but looks like there are a couple of plugins
Correct me if I'm wrong
How would I push an existing git to gitlab?
I tried creating a new blank project and pull it -> push mine
warning: redirecting to https://gitlab.com/tagptroll1/info226-client-server-security.git/
To https://gitlab.com/tagptroll1/info226-client-server-security
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://gitlab.com/tagptroll1/info226-client-server-security'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
``` this is my latest attempt
The project is a clone of a repo from uni
Don't pull from the new project
I did that afterwards, i believe
To see if it worked
ok nvm, I think i got it
ay
checkout on a new branch if your local is diverged from the remote master
then pull with rebase origin master
you should have your local on top of the remote
hi what python linter should i use? it seems like there are multiple linters, and multiple linter wrappers
I generally use flake8 just to make sure I'm not doing anything obviously offensive, and then use pylint for advice on style
I say I use it for advice because it's extremely comprehensive and not all of its rules make sense in every situation for every application
but adhering to flake8 is usually always a good idea, just as far as simple formatting goes
thanks, installed flake8 and linted my project
i'm a single dev so styling doesn't matter
considering oneself a single dev is a common type of fallacy. you're never working on your project alone, every future version of yourself that reviews it is going to want to be able to understand what's going on
not that I'm desperate for you to install pylint, just don't fall into the trap of thinking that because you're the only one working on it there's no reason to follow good practices
And if you have multiple personalities then it's definitely several people :p
Guys, anyone here knows buildozer? How do I specify python 2 version? I have python 2.7.15 installed, but buildozer does compile with python 2.7.2. I have tried putting python2==2.7.15 into the requirements in buildozer.spec file. Also tried python==2.7.15. CrystaxNDK with python 3 does not work for me. App crashes after spashscreen with no error in logcat. Same for python 2.
@hushed orbit I use this guide all the time re: git
@hushed orbit http://rogerdudler.github.io/git-guide/
It keeps me sane, in the world of git :)
why am i always getting an error when i try to install any module? http://prntscr.com/kuf26x, when i do pip install pip on the terminal it says that i already have the latest version but on pycharm's preferences it says that i have 10.0.1
is there a way to fix it?
thats when i try to install it on pycharm terminal
the pip in your virtualenv is broken or out of date.
also, run it with just pip, not python -m pip, if you're in a virtualenv
with pip install .. it gets the same error message
when i try to update pip it says that its already up to date
but on pycharm it still says that its outdated http://prntscr.com/kufcqd
because the pycharm terminal is running commands in a virtualenv, and you are not running them in a virtualenv when you're just using a terminal
You should read up on how virtualenvs work
but before i could install packages on pycharm terminal with the pip install ...
thats for example when i do pip install emoji on the terminal http://prntscr.com/kufigt it says that i already have it but when i try to import it on a project it wont wwork
Do you have multiple python versions on your machine? Or are you using a virtual environment?
It's installed on your machine, is it installed in the virtual environment?
http://prntscr.com/kufl1a thats what shows up when i try to install it
@proven mango you are showing two different versions of python, the regular one on the terminal, and a virtual one on the pycharm
?
look at the paths given
They point to different values
one in C:\users\duarte\appdata\ and one in c:\users\duarte\pycharmprojects
it looks like the pycharmprojects envirmont is broken
should i just reinstall it?
Theres functions in pycharm to make new virtual environments but I don't remember how, haven't used that in a while
ok going to search that see if i can make it work
ok i've no idea what to search for xD do you think if i reinstall everything its going to work and i can see the prejects i've already created?
ok finally got it working thank you so much @languid helm @violet belfry @copper compass sorry if i was anoying or somtehing but im new in this and i dont understand a bunch of it
How can I make a gitignore etc in Pycharm
so it ignores venv etc
or better question: I assume its not in a git repo
so how do I make a git repo from this folder/project
I don’t have PyCharm, but what are the options under VCS on the menu bar?
Just make a new file called .gitignore
And write what you want to ignore
There are templates out there
@heavy knot litrally you just make a file called .gitignore and add the directories and files you want to be ignored
One dir per line
Issue is its not even connecting to github
Like there is no current link for my project and github rn
No repo
I want to create it rn but i. pycharm
Is it possible?
how does pycharm enter in the equation?
anyway
you can make that file via pycharm as well
file -> new
No like my main issue is I dont know how to create and commit/push to a new repo with Pycharm
Supposedly Pycharm adds .gitignore itself
Not pushing venv etc
you can do all of that without pycharm
As others here have said, you just make a file named .gitignore with File -> New, then add the files or directories you want ignored to it
Here's an example:
.idea/
.vscode/
.vagrant/
venv/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# Distribution / packaging
env/
build/
dist/
eggs/
.eggs/
sdist/
*.egg-info/
*.egg
I cant figure out how to create a Repo within Pycharm
or link my repo
to push
can someone help?
trying to do checkout but I keep getting this and I dont know what to do
if I press yes same box appears again
then this happens after a few times
Anyone?
Are you using an ssh key?
If so, where is it located?
You need to edit your ssh config
If you're not, just change the URL to https://github.com/Arszilla/GPA-Calculator.git
why don't you just clone the repo with git commands
it'll take you literally 3-4 lines
@heavy knot I think the whole point is to do it with pycharm
@heavy knot advantage isnt a reason not to do something
Completely integrated solutions are cool xd
Having different ways to do things doesn't mean don't learn how to do more than one of them. The answer to "how can I do this in PyCharm" is not "just do it not in PyCharm"
the whole point of an IDE is the "integrated" part
Yay I said somthing right for once
thoughts -- VS code vs Geany for python in terms of accessibility for a beginner?
Anyone know of a Python tool that is like lernajs?..as in package development/management/versioning?
I used Sublime Text before I started using PyCharm
and mine was kitted out with lots of plugins
and it worked alright
Sublime Text mostly is faster than Electron-based editors ye
but it can't compete with PyCharm for features.
not in a million years.
which, of course, comes at a price.
I like pycharm on my desktop but for my laptop it's too clunky
PyCharm is nice on my current desktop
but on my old laptop its super slow and laggy
more overhead, longer startup time, and, uh, actual cash money for a pro license.
I use vscode on laptop
VS Code or vim/emacs are best if you have to use a laptop IMO
why would you ever use vim if almost all actual editors support vim mode
notes pycharm and sublime text to redownload later.
because vim is fast and extensible
you can get the same features in vim as other editors mostly
reasons to code on a laptop:
- on an 8-hour flight and have a deadline in the morning
- currently living on the international space station
haha, yeah
someone earlier was talking about coding on his phone through ssh
for phone Termux is good
I was thinking of coding something in C++ before i decided to move the project to python
and relearn my python in 3.X
maybe we should have that as an #esoteric-python challenge
@languid helm XD XD
write fizzbuzz. no loops. must write all code on a phone.
Atom.
*quickly runs away
Btw... How about proper coding keyboard for android based devices?
A usb one
@clever raven uh i wrote all my code on my laptop now
my desktop is windows and used for pretty much only games
maintaining a non-msvc build system on windows is hard af
dualboot it
dont want to reinstall rn
i will when i upgrade
besides, my laptop has an i7, my desktop is an athlon
Question, what is the correct process of having a project (say running your default python as a starting point), how do i go about creating a pipenv, with a new interpreter
I always end up messing with it for like 10-20 minutes until i magically do something that works
(in pycharm)
I'm using sublime text for python, where can i find autocomplete plugins and how to install it?
The question was about Sublime text, they didn't ask for new tools
not necessarily responding to the person always right above
anyone here good at LaTeX?
I am struggling to write something and I am about to fucking blow my brains out I am getting so angry
!t ask
Asking good questions will yield a much higher chance of a quick response:
• Don't ask to ask your question, just go ahead and tell us your problem.
• Try to solve the problem on your own first, we're not going to write code for you.
• Show us the code you've tried and any errors or unexpected results it's giving
• Keep your patience while we're helping you.
You can find a much more detailed explanation on our website.
fuck off
No
kill yourself
!mods fucking ban me
I dont give a shit
this whole discord is filled with cunts
Maybe you just have to change your attitude at the majority of people
maybe you just have to not be a condescending douchebag
What's so condescending about sending something to you everyone on the server gets when he sends an unanswerable question
This is not a discord channel where questions about LaTeX are commonly asked, so it is not out of the question to ask whether people here are familiar with it enough for me to ask a question
I am not fucking going to a python room and asking "hey does anyone know about python for loops???"
and how the fuck is "is anyone here good at LaTeX?" an unanswerable question
!ban @elder wind clear disregard for server rules and has a clear inability to communicate with helpers in a respectful manner
:ok_hand: permanently banned @elder wind (clear disregard for server rules and has a clear inability to communicate with helpers in a respectful manner).
I am so tied between using sublime text , and VS code
They both have a similar feature set, but VScode has more intergration.
My question; give me advice. If you prefer one of them, tell me why! I'm struggling to make up my mind
VScode slightly better
My needs can be achieved by both
The only features i take advantage of is the debugger for showing variables
And git intwegration
Both things that can be achieved in sublime
sublime is generally faster, unless you stuff it up with tons of plugins
Yeah
what's up @crimson notch
i just did something weird with a scrollbar in pycharm and it started to autoscroll slowly towards the bottom
and now i have no idea how to do it again
anyone know how?
anyone know what is the best css editor
the best css editor obviously does these things:
-
shows visually what the code does and looks like, a preview or w/e you wanna call it
-
colours the code a color based on what the code is doing (no color on non-code stuff ofc)
-
like how when you text, gogoel suggests the next word and stuff, so the css editor suggest the best thing to add
-
css editor auto-suggest the best thematic colours based on the colour you already have in the code
-
when you hover over css code, it tells you in plain english wtf it does
-
anything and everything helpful, obvs that is best
-
everythiing helpful i didnt say cos i dunno anything bout css
-
the css editor should color code wtf is css & wtf is html, and wtf is js or w/e
-
you should be able to point at something on a webpage, and it tells you exactly what is the code of that part of the web page exactly
-
anything that can be automated should be done automatically
-
anything else considered by smart & knowledgable ppl to be best
-
css editor uses ML & AI & DL & RL & NN to consider everything and gives you the most helpful thing cos it is actually smart like a human is smart??
-
css editor auto-fixes everything, you missppell somethig? it auto fix it. you place something in the wrong/incorrect place? it auto-fixes it
-
one button auto-discard everything you didnt need in the code, you add some stuff you didnt need? well it deletes everything you didnt need and you put in the code cos ur dumb
link best css editor and why its the best css editor, so it can be tested to see if it's actually any good
i have no css editor and i dunon where to put the css code to edit cos i have no editor
most of modern editors / IDES do support css
doesn't really make sense to have a sole editor/IDE just for css
so just use your preffered editor / IDE
and install a plugin to support css
or check their features
@mellow cave vscode has some great plugins for that
often the best CSS editor is called Chrome Web Inspector
brackets.io is slow, but i know they were targeting web dev when they first released
@desert otter so which are you recommending and why? you say two things
He's recommending both
Chrome's inspector is for easy live testing
But you write the file in vs code
exactly
Thanks for helping me @stable notch I am new to python and haven't run my project locally
I don't know what a venv is
k. without knowing imports add a blank requirements.txt to see a diffetent error
i dont use them myself but with a venv you can install modules per project
add a blank requirements.txt to my repository and try to deploy again?
helps in making a req.txt with just the needed packages. yea blank or just the discord library. async or rewrite?
-----> Python app detected
-----> Found python-3.6.6, removing
-----> Installing python-2.7.15
-----> Installing pip
-----> Installing requirements with pip
You must give at least one requirement to install (see "pip help install")
-----> Discovering process types
Procfile declares types -> (none)
-----> Compressing...
Done: 28.6M
-----> Launching...
Released v4
deployed to Heroku
at least it runs fully, lets add stuff to requirements.txt; essentially anything youd have to pip install. and just fyi dont post your token directly in the .py
do you know which discord.py version you've built for?
sorry if I'm not understanding, but I don't have a discord.py
oh this again?
@pale hare what did you use to learn how to write your bot? And are you trying to use python2?
How do I prevent it showing things like this as a problem?
You can 1) disable warnings, 2) show warnings as errors, 3) disable this warning (by code W0612), ..... or excise the unused variable.
just avoid creating warnings
How do I disable warnings?
And @mossy crown I can't do that because I need for i in range
its unused, right? use the _ placeholder
So for _ in range?
^
_ is a special case variable, and is treated as if it discards whatever you assign to it.
I’m not a native speaker. Sorry for my english. Please understand.
thx
i dont think python treats a standalone underscore specially except in the interpreter session
@umbral otter Each indent level in Markdown is usually 2 spaces
Thanks
im experiencing a really weird issue
any time i try to paste any text into idle with either ctrl+c, shift+ins or 'paste' from the edit menu it just crashes immediately
wat do?
ah nevermind, it's not any text. it's just some particular unicode character(s?)
what characters?
idle uses tkinter, which supposedly can't handle non-BMP (i.e. greater than U+FFFF) characters
I want to port a complex and badly documented piece of software to python. Are there tools that could help me with that? For example a tool that lists all files that use a specific function
@random breach that'll do it. 🇦 is U+1F1E6
still maybe report a bug, it should filter it out instead of crashing
maybe it's handled at the tk level and not something python can control
@wheat lodge what language is the program in
tkinter itself seems to handle it okayish though
@wheat lodge maybe just use grep, if the function names are reasonable
oh yeah, forgot that grep exists. i'll try it
thanks @sinful zinc i might get on that. bugs.python.org right?
oh my god there are so many
it looks like they're waiting on Tk 9 to fix it
I'm a bit confused as to what's going on, since a regular tkinter Text widget doesn't crash
oh i see, https://bugs.python.org/issue13153#msg207381 it's because idle installs a paste event handler and my test code doesn't, and the argument handling for user-defined handlers is subtly broken
@random breach looks like this is already a known bug and there's not much you can do about it
ah rip
Other than matrix operations and worse loops the MATLAB syntax should not be that much different than Python unless it’s also terrible MATLAB code
If you have a MATLAB instance the profiler should give you a function tree
There’s also a dependency report https://www.mathworks.com/help/matlab/matlab_prog/identify-dependencies.html
thanks will check that out
Does py harm not support arguments for the temrinam?
Currently. Set at /bin/bash --norc
(because py harm doesn't like my power line agnoster theme)
is there any way to ignore problems in vscode? i made some fully functional code, but imported more stuff than i used. 101 problems showed up, and i don't want em
can anyone help me?
I'm not sure exactly what your question is
the terminal crashes
(it's above)
I set terminal in pycharm to the /bin/bash --norc so I can disable my theme which pycharm doesn't like
but then something weird happens where it gives an error like as if I was running bash -- (except that doesn't actually error
it looks like this in terminal that's hwy I want to disable norc
le to know if it's runninig in pycharm terminal to the rc can not enable theme if such (an env var or such?)
@forest bay
Hi! Does anyon know an IDE which is similar to sublime text 3 but can actually run code within it? Thanks
@violet belfry but how do i do that?
@shrewd belfry i use vscode, it's got a built-in interpreter and everything. doesn't look as nice as sublime imo, but the functionality is much better in general
Sublime is not an IDE, and it should have a built in coderunner iirc
Check the hotkeys
and Sublime can be configured to run other languages than just python
vscode can too, afaik
I don't know, search your settings for "lint"
indeed it can
python2 example in sublime: Tools -> Build System -> New Build System
{
"cmd": ["C:/Python27/python2.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
Is terminus free to use forever? looks super, super cool
The one that does SSH only
i think you are thinking of termius
Green logo
The #1 cross-platform terminal with built-in ssh client which works as your own portable server management system in any situation.
Oops sorey
If you had to get a cross platform terminal.... What would you say is best?
Tilux for Linux.... And somthing else for Windows?
What would be good for windows
alacritty is what I use
I use cmder on windows but I'm planning on switching to https://github.com/railsware/upterm
but for windows I just used putty if I wanted SSH...
fuck putty
I only use Windows for my parents
Will be switching to Linux full-time on my university laptop
👌
Termius looks nice
if you insist on cross platform then you probably want upterm
not sure if it's windows ready yet, wasn't last I checked
I mean it sorta works on windows, but it's not great (last I checked)
Happy to accept help :) I don't think any of the current core contributors use Windows so don't expect this to be high priority for them.
me_irl
cool
that explain the lag ahah
whats the deal with pycharm not liking symlinks?
i dropped a symlink of one project folder into another using Link Shell Extension
in pycharm the folder name is red and when you hover it over it a tooltip shows up saying 'Broken Link'
and you cant access it
@random breach If it's a broken link, it's broken, not pointing to a valid place. Red means it's not currently tracked in the git VCS.
then probably just broken
the files open just fine outside of pycharm
so im not really sure what 'broken' means in thsi context
can you screenshot, and paste a stat of the link?
zac@zwafer:~$ stat test
File: test -> ../zac/
im not on windows
I'm on ubuntu...
crap i was going to type i'm not on linux at first then changed my mind to i'm on windows but forgot to remove the not
sorry
im on windows 10
rip
Yet another reason not to use PyCharm 😉
every program has bugs
in my whole time using pycharm i think this is the only bug ive ever encountered
thats pretty good
I have no idea why you'd use symlinks in that context
the problem is probably that your symlink is a relative link though
rather than an absolute one
same here
@copper compass how do i check if it's an absolute or relative symlink?
To me, it has no advantage over VS Code or my beloved vim so the bugs I had during my mere day of using it were enough discouraging me from ever installing it again
most of the issues I've seen with people using pycharm
are, well
people trying to run it on a netbook
or something about as powerful as one
which isn't really a realistic target for a fully integrated development environment
oh, then yeah, do not use links.
never use links.
I'm on a good computer so that wasn't the problem. Even if performance is an important matter. My problems were all documented at the time I had them, even unofficial patch existed
they are a massive hack on windows.
:/
stat also works to detect a symlink. If you have your ls colors -- oh, winblows
yours were probably fixed by now
windows doesnt play well with links
I know one still exists with Robot framework log going crazy 😮
the link works perfectly fine eith regards to everything else
:p*
it's just pycharm being unhappy with it
i can open it in notepad, sublime, vscode
etc
Is that a soft link or a hard link?
"this third party tool that does things in a non-standard way doesn't work well in pycharm"
Well, works perfectly fine in other IDEs
Opera was the only one following standard, as a consequence it was unable to display pages properly because no-one was following standards
Users are always right 😉
ok, this is weird. new complication in the story
i opened a new project
and added new symlinks of -the same files- to it
and it works fine
what???
What do you guys use as a linter.
VSCode defaults to pylint but the errors are more often than not without a description
literally the only difference between them is they're in two different folders.
@languid helm this is my general go-to
so flake8 as general linter, and then run pylint independently every now and then
okay, thank you
I use flake8 too
so
you do have to import
i did import boto3 but i have the site packages
i also can't update pycharm because it says udate via root and i don't want to sudo open it
that's no biggie
so do you have any issue using boto3?
althought having pycharm updated is always good
using 18.2.4
ooh 18.3 with early access
buggy stuff
I see
i think i've accidentally disabled PyCharms style / error checking, anyone know off hand where the setting is to fix it?
settings editor and such
I think maybe he already knows that much
Settings -> Editor -> Code Styles
have you guys ever seen this? https://github.com/ranger/ranger
this is love expressed as code
This the right channel to discuss TeX tools?
off-topic would prrrrrobably be better suited to that
As long as the knowledgeable look into that. Thank you
ALGORYTHMS is this the channel for it?
sup guys how can i view my environment (variables and their values) in VS Code ?
This is a screenshot of R Studio. I just want the top right box in VS Code
is that os.environ?
can anyone link me like some online lesson thing so I can learn python?
i know a bit but its like basic stuff
the python discord staff has collected a bunch of resources, maybe you can find something about learning python here: https://pythondiscord.com/info/resources
I use atom
And?
@random breach you're doing something weird
I'll check that in 15 minutes, brb
@random breach what is args ?
from sys import args?
what's in the dict?
ordinary stuff
string keys mapped to string values
also that would be from system import argv not args
yeah
lol, system. ah irony 😛
I think you redefined list
i didnt.
thats the only place in the entirety of this file that the keyword 'list' is even used
also note that the warning isnt popping up anywhere else
just on this one particular bracket
the code works fine
just pycharm's problem
lol, i just hit enter after the . then backspaced and now it's gone.
oh, nevermind. came back again briefly. then disappeared again.
🤷
@random breach I'm curious what you're doing with LuaFunction and that error
warning / w/e
and this is a lua file generator
im scraping through some documentation and generating some api modules
Re my question about errors and stuff. I toggled everything I could find and reinstalled. Any idea what else could cause error lines and style to not show
@spiral pendant maybe this? https://www.jetbrains.com/help/pycharm/disabling-and-enabling-inspections.html
Possibly. Will check once I get to my office
@random breach I'd like to see it
sure, one sec
Think I ran across that link while googling
It’s almost like my intellisense completely died
I did a full reinstall the other day without importing them
I don’t think so. Unless our sys admin did it
god damn it it's back
whatever lmao
@spiral pendant are you allowed to test local jdk installs?
Ye
the new jdk has a different license
if you are using it commercially be aware of it
the openjdk or the oracle jdk?
oracle one
Lol. I can't
Unless there's a way for mobile
oh
Volume down is Ctrl c
Oh it's working now!
Thank you! This looks awesome, simple but right
Can I open .py files with this?
volume and q might help, and/or switch keyboard
yea as you don't have root. i guess you want .py files on /sdcard?
either way python file.py runs them
open to write... try installing nano and see how that suits
where is the py file? something will be mapped to /sdcard on your phone i'm sure like internal storage
In downloads lol
did you give termux storage permission?
termux-setup-storage if not that should trigger it
i've always used /sdcard but just had a look and that also sets up some symlinks. cd storage/downloads should take you to the downloads folder
exit() to get back to bash
thanks
Guys does the syntastic plugin recquire the vim-flake8 one to be able to correclty use flake8 checker for python
Unless you know and like vim, leave that disabled. Markdown and Bash can pretty useful, R depends on whether you know that language or not
So I'd say Markdown definitely yes, Bash too if you will possibly ever edit Linux shell scripts. The others, depends.
You can always enable/disable them later from the Settings>Plugins anyway
Markdown and bash, but if you do a lot of Markdown, then you should install MarkdownNavigator instead
say i have a situation like this:
def test2():
"""
test2 documentation
"""
print('test2')
def test1():
"""
test1 documentation
"""
print('test1')
test1 = test2
test1()
when i press ctrl+q to bring up quick documentation for test1 i get this
is there a way to make pycharm view test1's documentation rather than test2?
Does anyone use IntelliJ with a python extension?
I know that that's an option for php (instead of using phpstorm)
Do you mean IDEA?
If so, I can't speak for how good that combination is, but I don't see why PyCharm community edition wouldn't suffice
does anyone have experience fixing a bug in visual studio code django templates?
when formatting, it looks like this
before formatting, it looks like this
so {{ video.v_id }} becomes this
{{
video.v_id }}
and this breaks the django template. any ideas on how to get visual studio code to not format like this?
shrinking the whitespace like {{video.v_id}} makes it work but that is not the desired solution
I would need help on vs code to work on specific branches (not master) of my git folder, u know how can i do that?
@rugged adder it doesn't depend on VSCode. VSCode will just edit the files you have on disk and Git will ensure you have the right files on the disk. So just run:
git checkout <your-branch>
end start editing in VSCode. Or if you want new branch:
git checkout -b <your-new-branch>
@dusk zealot oh but i just found the button to do it, thanks
sorry should have said it earlier
Yeah VSCode has some wrapper around Git but all it does it runs this commands for you
anyone update to macOS mojave? run into any issues with your development stuff? like brew?
just curious before I update
No issues when I did it
i think i'll run a time machine backup and try it out 😄
don't have any issues either
hey is anyone able to help set me in the right direction for a rebase?
is it possible to get rich presence for discord when using pycharm (community)? I tried installing the plugin for (apparently) 2017.2+ versions, but wouldnt let me install (i have 2018.1) any ideas?
perfect. was trying to install a rich presence plugin instead (thought that was what I was looking for). Thanks!
Getting this error when I try to run pipenv on a server
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 7, in <module>
from pipenv import cli
ImportError: cannot import name 'cli'
It works fine on sudo but I don’t have access to sudo on the server
how was it installed?
I'm pretty sure it's the case with tools like pipenv that you generally want your own user-specific installation and not something installed by root
oh, apparently pipenv's recommended installation instructions have changed... hmm
@blazing prawn the owner said installed by root.. and is not sure how to get user-specific installs of pipenv
sorry for late reply, got a ton of homework lol
well the beauty of the user specific install is that you get to do it yourself :P
the "pragmatic installation" instructions on the pipenv installation page look like the ones to use
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/virtualenv-16.0.0.dist-info'
@blazing prawn
I get that
install with sudo dont do that
install locally, or use a venv
you get that when you pip install --user pipenv?
because that sure doesn't look like your home directory
if you are getting that with a --user install, there's probably something screwed up about /usr/local's permission
@plucky yew
👍
Hm. Is there a super lite IDE which supports jupyter files?
Are you looking for an actual IDE or just something to author and run notebooks?
JupyterLab installs w/Python and runs in the browser: https://github.com/jupyterlab/jupyterlab
Ela, I am looking for some kind of IDE. So I can keep notebooks in a project of sorts, well organised. Other features like syntax highlighting etc would be nice too
I currently use PyCharm but that one is too heavy. Gorges on memory like crazy
Most modern editors (e.g. VSCode, Sublime Text, Atom, etc.) have extensions that support notebook editing, highlighting, etc. and offer debugging but they're not full IDEs
No personal experience but maybe try spyder @plain saddle
Okay. Thank you both. I guess I have to try each to see which is light and works well for my purpose
guys what is the best ide for gui python programing desktop applications
For some reason VSCode is proving to be much slower than PyCharm
Anyone know what this means? (base) C:\WINDOWS\system32>block should really be the equivalent of 'block' is not recognized as an internal or external command, operable program or batch file.
got it when updating conda
uhhh... it looks like you started typing a sentence into your prompt and hit enter
was not me
I'm looking to hire freelancers (not python unfortunately) for something.
What tools have you used successfully to hire people?
How far does money typically go in making applications?
That kind of question is entirely out of scope of this server
I doubt you're gonna get a useful answer
@copper compass
I understand it not being python is not within scope. Is it acceptable to query some that may be professionals about what tools have worked for them?
The goal is to extend my developer skils to be able to hire out for what I'm unable to do myself.
Yeah, but you asked in an off-topic channel already
this channel is for python development tools
ah.
:P
Well thank you regardless.
Unfortunately, it's inevitable that sometimes we'll hit limits and have to search further. Just not sure how to do that properly.
What language are you looking for @arctic thunder
Does anyone know a good linux terminal tool for copying files between directories quickly and easily?
sorta like how ncdu provides a nice clean browsable ui?
cp?
cp forces me to run one thing at a time in multiple windows
Or you want some clickable side by side folder terminal gui thing?
not clickable, terminal ui, yeah, similar to side by side.
left side, source, right side destination.
So I have an old server backup with 2TB of data I'm not sure is copied out yet, the idea is to compare, copy what I want, destroy everything else.
ponders making a tool
ranger might work too
Python + nurses ;)
god I love scrubs
ahem ncurses
holas to all
holy hell, curses is awesome!
is it python's curses or is ncurses something else?
or is python's curses the binding for ncurses 😛
The latter IIRC
figured.
question for RPM people
so ive got this RPM spec file
%global srcname getmac
Name: python3-%{srcname}
Version: 0.5
Release: 1%{?dist}
Summary: Python module to get the MAC address of local network interfaces and LAN hosts(edited)
License: MIT
URL: https://github.com/GhostofGoes/get-mac
Source0: https://github.com/GhostofGoes/get-mac
BuildArch: noarch
BuildRequires: python3-devel
%description
Pure-python module to get the MAC address of remote hosts or network interfaces. It provides a platform-independent interface to get the MAC addresses of network interfaces on the local system(by interface name) and remote hosts on the local network (by IPv4/IPv6 address or hostname).
%{?python_provide:%python_provide python3-getmac}
%prep
%autosetup -n %{srcname}-%{version}
%build
%py3_build
%install
%py3_install
%check
%{__python3} setup.py test
%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-*.egg-info/
%changelog
for the source mentioned in the specfile then i did
rpmdev-setuptree
tar czf getmac.tar.gz getmac README.md LICENSE
mv getmac.tar.gz ~/rpmbuild/SOURCES/
cp python3-getmac.spec ~/rpmbuild/SPECS/
cd ~/rpmbuild/SPECS/
rpmbuild -v -bs python3-getmac.spec
and down to rpmbuild everything works fine but when i run rpmbuild i get
error: Bad source: /home/nix/rpmbuild/SOURCES/get-mac: No such file or directory
which i cant explain to myself at all as i never mentioned a file named get-mac in the specfile for command
ncurses menus aren't implemented in python. :/
yeah, I"m not sure how useful ncurses is for python if it's not fully implemented
that sucks
(implement it then :P)
@thorn cobalt VSCode
Visual Studio Code
If you set jediEnabled to False in settings, the linting gets much faster
There's a built-in debugger
And the editor is super customizable in general
Oh yeah
Themes for days
Also you can override the "native" windowing and make it all themed even the close buttons
why do you want to change IDE @thorn cobalt ?
sublime is not free..
i use sublime
it is timeconsuming to setup because it is not an IDE, you have to install a lot of packages to get IDE functions
if you like to tinker with stuff, then sublime lets you tinker
VScode is great if you would like to get setup fast 😄
@civic hound does it have discord integration and the ability to run a script in the ide
yes, i run my scripts on the right hand side in the screenshot. Have the script on the left
what do you mean about discord integration?
@thorn cobalt what type of integration would you like to have?
how nice 😄
so i installed python 3.7 but when i try to run python --version it gives me an error and i dont know how to continue or if i even installed it correctly, i read the beginner guide and did that and when i get to the version check i get a traceback error
i also tried to install packages and that didnt work either
@Rius Grimm#4595 What OS are you on?
does anyone else use repl.it?
if so, how do i enable those tips when you hover over a function?
it's always enabled as far as I can tell
you cant really see it but my cursor is over print right now
nothing happens
is it because im using mozilla?
It is working for me on firefox
anyone know how to fix this: accidently managed to put tabs over here
window -> restore default layout is one option
has anyone by chance had success using pygobject bindings in pycharm with autocomplete successfully? supposedly it should support whatever weird stuff pygobject does, but I can't get it to work
lemmie bring up what it's doing so that's less vague
okay, so
in order to use the gtk3 bindings you have to import it like this
it runs fine, but there's no autocomplete for Gtk
supposedly you can generate stubs for them by doing this in pycharm
however that has no effect for me
some people on stackoverflow have said it worked after they increased the amount of memory intellisense can use, but trying that it didn't work either
this wouldn't be so much of an issue but the documentation for pygobject is practically nonexistant
I know you're supposed to extrapolate from the c api references, but that feels like taking shots in the dark and I feel like autocomplete would help tremedously
aight, was able to get it to work
followed this guide, sans the patching fakegir stuff since that's not needed anymore https://gexperts.com/wp/learning-python-gnome-and-gtk3/
I'll leave this here in case anyone else searches for it
but yeah looks like generating stubs for gi stopped working in pycharm at some point
Are there any good repls for Android?
for Android = a Kotlin REPL, or a REPL app on Android for X language ?
A python REPL on android
QPython3
Thank you
python installed in termux. does qpython3 have pip?
seems like it does
termux still seems 'cleaner' to me and with it you can write/upload to pastebin easily
pip is a python module
anyone got an opinion on poetry vs flit to package a library? im leaning towards poetry because it has extra niceties like version
oh it looks like poetry doesnt handle __version__ which is a bummer
One thing is not clear to me regarding virtual envs , after you create 2 different envs for 2 different projects , can you run both projects at the same time, each one running on its owwn environment ?
Or only one environment can be active at a time?
The virtualenv is only local to the shell, so you'd just have to open another session to run a different environment
I can do that with Screen right?
So 1 scrren per envoronment, no matter how many .py I run on that screen
@oblique thistle I prefer tmux
but yeah, you can run multiple environments at a time no problem
environment is basically the configuration of the current terminal session/shell? so like, permisisons, user, access to things to run,environmental variables, etc.
oh that was 8 hours ago. 😛
Am i allowed to talk about stuff like gitlab here?
Sounds fine to me.
git is definitely on topic for tools, and IMHO so should be git repo hosts
Maybe conda is better than installing tensorflow on your own unless you know what you are doing https://www.anaconda.com/blog/developer-blog/tensorflow-in-anaconda/ @blazing prawn
I have heard once before that that's the case
I thought that also used to be part of their installation directions. maybe it's on another page
Sup, I'm working with selenium and I'm having some issues with htmlunit to use SOCKS4 (SOCKS5, HTTP/HTTPS are working fine) proxy.
I found that socksVersion member was around selenium but it dosen't seems to be integrated with python (https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.proxy.html?highlight=socks#selenium.webdriver.common.proxy.Proxy.socksProxy).
If anyone knows what to do, tell me. Also, about other driver I don't have any issues since they got about:config for ff or something similar to setup configuration out of desired capabilities.
curses library is crap
I got a free PyCharm license, any reason to switch from Spyder? Or is VScode the new hype?
VSCode is not an IDE
It's an editor with plugins which act like an IDE
PyCharm is designed for Python and it has way way more features than VSCode extensions, PyCharm features are all built in
it even goes beyond python in some places. web development in pycharm pro is a fucking dream
It's pretty well integrated with bash too right? I mainly do "systems" scripting and mathematical programming
I believe it does integrate with bash but I haven't tried it
I use VSCode and vim, I tried Pycharm but it was too slow. That's a very nice IDE feature-wise though. It's free so you can try, as far as I'm concerned, the richness of the features wasn't worth the slowness, but you might be different
It is quite resource heavy yeah, but then so is VSCode, it's electron
pycharm does have builting bash support
It's Electron, but it's nothing to compared to Atom
Microsoft worked very hard to optimize the code it seems, Monaco is great 😃
If you want a fast editor, vim or Sublime is your best bet
vim ❤
I use both on a day to day basis, can't wish for anything else
I like vscode 🙂
Hi all. Stuck in a pycharm rut here. I pushed a branch to my repo and merged it. I tried to git pull on my master branch and it failed with a merge conflict. I closed the screen and can't figure out how to resolve the merge conflict in pycharm. What would be my next step?
@lyric tulip try this : select the conflicting file in the editor and choose VCS | <your_VCS> | Resolve Conflicts from the main menu.
Hey I am new to git but I noticed right now when I was working on a branch that the new files also created under master. So I switched back to master and deleted the new files and committed to master. I switched back to my new branch and I see that the files there are gone. Is this because I checked out the origin branch from my repo online?
@deep estuary What's the difference between an advanced editor with heavy customization capabilities and an IDE?
Other than what you get out of the box
well, I once tried to argue vim was an IDE and got shouted at so I just assumed there was a difference

An editor is for editing text
an IDE has extra tools etc
like debuggers, formatters, compiler,
source code editor is only a part of IDE, IDE provides multiple functionalities for daily routine
an editor is also part of an ide
editors with plugins can be IDEs
^ this
but the plugins have to come with the editor and be preconfigured
that is why vim isn't an IDE
The question is
Whats the difference between a heavily modifi ed editor and an IDE
Apart from what you get out of the box
what you get out of the box is the difference
and literally the point of an IDE
anyone can stick stuff together and have a workable toolchain
exactly, IDE is just one tool that you would need to install to have most if not all of your work steps already implemented in it
yeah, but not actually called an IDE
it'd have to be like all one package
emacs isn't an IDE, but spacemacs could be considered one
vscode can function just like an ide with plugins
but by default it's just a text editor
well actually I think it's hard to modify the actual UX of VSCode
you could have the features but it might be a pain to work with
Without languange plugins its not extrememly useful
well, it's useful if what you want is a text editor
the other classifier for IDEs is how well each component works together though, for me
if you take pycharm pro for example, everything is within easy reach, plugins can easily extend parts of the editor, add toolbar buttons, panels, graphics, etc
the database support in pro gives you an entire panel on the right for connecting to and managing SQL-based databases
if that was hidden in a menu somewhere, I probably wouldn't call it integrated
I like that feature
I'm surprised you can't just change vscode ui with html/css
Speaking of Pycharm are there any plugins that allows Pipfile being not in the project root?
that seems like
a really odd requirement
what's wrong with it being in the root?
well if you have your sources not in the root of a project this is the place where the problem begins. Since you don't really want to put python requirements to the root, just because your IDE can't handle it differently
well the trick is to not put the sources in the root
just in a single module
and then all non-code stuff goes in the root
that's the general accepted way to do things
yeah, but pycharm can't do it
it makes a lot more sense to have the pipfile in the root because then you don't have to go looking for it
yeah it can
root:
- src < python project goes here
- JenkinsFile
- README.md
- docker-compose-file
- whateverelse
yes
the only way for pycharm to work with it is to put Pipenv file in src
although you rarely actually call that src
yeah just an example
you just call it the name of your module
could be <app> or whatsoever
and then your code is directly within
it should be importable, basically
you'd only ever use the src/modulename layout if you have a setup.py
in which case you don't have a pipfile
so you do eg mymodule/file.py instead of src/mymodule/file.py
sorry I see to not get it, again when you create new virtual env using Pipenv file it will except pipenv file being in the root
yes
you can't select a path to it
which is where it should be
in the root
the root is the correct place for a pipfile
it's enforced because nothing else really makes sense
pipfiles in subdirectories are just bad project layout
pipenv is intended to be used for user-facing applications
you write your app and there's a pipfile in the root
now everyone sees the pipfile and can go, okay, I use pipenv to run this
