#tools-and-devops

1 messages · Page 28 of 1

hushed orbit
#

Asked if i wanted to delete the current env

#

and recreate it

random breach
#

ah darn. i thought that installs a new one all the time

#

neat neat

hushed orbit
#

had to edit the pipfile tho

#

so read 3.7

#

else the check would always fail

random breach
#

...

#

lol

#

huh, weird. i just tried that and didnt get any prompt asking me if i wanted to delete or not.

forest bay
#
  1. Use virtualenv directly
torpid notch
#

Hello

#

Could anyone please recommend me any decent Python IDE that isn't Jetbrains nor Visual Studio?

delicate gorge
#

visual studio isnt really that much of a decent python IDE

#

and pycharm is just the best there is

#

why dont you want pycharm

torpid notch
#

My computer barely works, and it takes about 5 minutes to just simply open a new document

#

Yeah, that bad

delicate gorge
#

oh its about computing power

torpid notch
#

😒

delicate gorge
#

im used to that from school

#

welp

torpid notch
#

lol

delicate gorge
#

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

torpid notch
#

Alright

#

I'll try sublime

#

Thank you

mossy crown
#

sublime is fast

#

and light

lapis hazel
#

can confirm, runs smoothly on my 10 year old laptop

umbral merlin
#

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

forest bay
#

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

violet belfry
#

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

heavy knot
#

How can I get PyCharm to delete a folder from my Repo when pushing

#

I want to get rid of venv

#

so yea

violet belfry
#

Like...every time you push?

lapis hazel
#

you'll want a .gitignore file for that

heavy knot
#

how do I do that

#

and make it get rid of the folder in my next commit

#

and the folder's contents

lapis hazel
#

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.

heavy knot
#

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

violet belfry
#

@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

lapis hazel
#

oh i see

heavy knot
#

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

young valve
#

woah what software is that?

heavy knot
#

PyCharm

#

using Atom One Dark theme from Material Theme

delicate gorge
#

We already explained arszilla

young valve
#

oh wow ok.

#

Awesome.

delicate gorge
#

You gotta get yourself a .gitignore file

heavy knot
#

I do have one

delicate gorge
#

Are they ignoring the directories?

heavy knot
#

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

delicate gorge
#

The directories are in there

heavy knot
#

(on repo)

#

venv folder is still there

delicate gorge
#

So now where you are ignoring go to GitHub delete the files there and they should never Show up again

heavy knot
#

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

delicate gorge
#

You can remove folders in git (they'll still be there) using git rm file/folder

heavy knot
#

so git rm/venv?

delicate gorge
#

No

#

Just git rm venv

heavy knot
#

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?

delicate gorge
#

Yes

heavy knot
#

I'll dm one sec

brazen cedar
#

@heavy knot do you mean tag

heavy knot
#

never mind I handled it thanks to @delicate gorge :)

hushed orbit
#

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'[[({] | []}),;:]')
blazing prawn
hushed orbit
#

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?)

long sphinx
#

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

forest bay
#

@long sphinx What platform, what version of the toolbox

long sphinx
#

latest version, windows 10

#

like i said i uninstalled and reinstalled teh toolbox but doesnt help

forest bay
#

What's the exact error?

#

What have you found so far in searching for it?

long sphinx
#

hm i removed the whole installation and removed its directory. now i had to reinstall pycharm and intellij but it worked ;D

forest bay
#

cool

heavy knot
#

how can I add a commit description in PyCharm

delicate gorge
#

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

heavy knot
#

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

delicate gorge
#

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

molten fern
#

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?

mossy crown
#

save that value in your environment variables in settings

molten fern
#

how do I do that?

#

(what do I set for the new enviorment variable?)

#

@mossy crown

mossy crown
#

you add the Scripts directory to your path

#

I take it you're on windows 10?

molten fern
#

yeah

mossy crown
#

Control Panel -> System & Security -> System

molten fern
#

i got it to work

mossy crown
#

somewhere on the left should be a text menu with an advanced option

#

oh

molten fern
#

thanks

heavy knot
#

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

delicate gorge
#

merge

blazing prawn
#

^ you've got merge and rebase buttons there

delicate gorge
#

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

hushed orbit
heavy knot
#

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

hushed orbit
#

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

violet belfry
#

Don't pull from the new project

hushed orbit
#

I did that afterwards, i believe

#

To see if it worked

#

ok nvm, I think i got it

#

ay

modern thorn
#

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

heavy knot
#

hi what python linter should i use? it seems like there are multiple linters, and multiple linter wrappers

blazing prawn
#

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

heavy knot
#

thanks, installed flake8 and linted my project

#

i'm a single dev so styling doesn't matter

blazing prawn
#

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

forest bay
#

And if you have multiple personalities then it's definitely several people :p

hardy dirge
#

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.

zealous tiger
#

@hushed orbit I use this guide all the time re: git

#

It keeps me sane, in the world of git :)

proven mango
#

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

Lightshot

Captured with Lightshot

#

is there a way to fix it?

#

thats when i try to install it on pycharm terminal

copper compass
#

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

proven mango
#

with pip install .. it gets the same error message

#

when i try to update pip it says that its already up to date

copper compass
#

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

proven mango
#

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

Lightshot

Captured with Lightshot

violet belfry
#

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?

proven mango
languid helm
#

@proven mango you are showing two different versions of python, the regular one on the terminal, and a virtual one on the pycharm

proven mango
#

?

languid helm
#

look at the paths given

#

They point to different values

#

one in C:\users\duarte\appdata\ and one in c:\users\duarte\pycharmprojects

proven mango
#

so how could i install it on the pycharmprojects?

#

is that what I am suppost to do?

languid helm
#

it looks like the pycharmprojects envirmont is broken

proven mango
#

should i just reinstall it?

languid helm
#

Theres functions in pycharm to make new virtual environments but I don't remember how, haven't used that in a while

proven mango
#

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

heavy knot
#

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

violet belfry
#

I don’t have PyCharm, but what are the options under VCS on the menu bar?

heavy knot
#

these are under VCS

#

@violet belfry

heavy knot
#

Just make a new file called .gitignore

#

And write what you want to ignore

#

There are templates out there

barren iron
#

@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

heavy knot
#

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

heavy knot
#

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

heavy knot
#

you can do all of that without pycharm

forest bay
#

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
heavy knot
#

I cant figure out how to create a Repo within Pycharm

#

or link my repo

#

to push

#

can someone help?

heavy knot
#

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

heavy knot
#

Anyone?

forest bay
#

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

heavy knot
#

why don't you just clone the repo with git commands

#

it'll take you literally 3-4 lines

barren iron
#

@heavy knot I think the whole point is to do it with pycharm

heavy knot
#

I don't see any advantage doing so

#

¯_(ツ)_/¯

barren iron
#

@heavy knot advantage isnt a reason not to do something

#

Completely integrated solutions are cool xd

violet belfry
#

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

barren iron
#

Yay I said somthing right for once

novel steppe
#

thoughts -- VS code vs Geany for python in terms of accessibility for a beginner?

flat sundial
#

Anyone know of a Python tool that is like lernajs?..as in package development/management/versioning?

clever raven
#

I used Sublime Text before I started using PyCharm

#

and mine was kitted out with lots of plugins

#

and it worked alright

shut island
#

Sublime Text mostly is faster than Electron-based editors ye

clever raven
#

but it can't compete with PyCharm for features.

#

not in a million years.

#

which, of course, comes at a price.

languid helm
#

I like pycharm on my desktop but for my laptop it's too clunky

shut island
#

PyCharm is nice on my current desktop
but on my old laptop its super slow and laggy

clever raven
#

more overhead, longer startup time, and, uh, actual cash money for a pro license.

languid helm
#

I use vscode on laptop

clever raven
#

coding on a laptop is an antipattern anyway

#

best avoided altogether

shut island
#

VS Code or vim/emacs are best if you have to use a laptop IMO

languid helm
#

why would you ever use vim if almost all actual editors support vim mode

earnest dagger
#

notes pycharm and sublime text to redownload later.

shut island
#

because vim is fast and extensible

#

you can get the same features in vim as other editors mostly

clever raven
#

reasons to code on a laptop:

  1. on an 8-hour flight and have a deadline in the morning
  2. currently living on the international space station
earnest dagger
#

I was googling IDEs for mobile phones a few days ago...

#

apparently they exist.

clever raven
#

haha, yeah

languid helm
#

someone earlier was talking about coding on his phone through ssh

shut island
#

for phone Termux is good

earnest dagger
#

I was thinking of coding something in C++ before i decided to move the project to python

#

and relearn my python in 3.X

clever raven
earnest dagger
#

@languid helm XD XD

clever raven
#

write fizzbuzz. no loops. must write all code on a phone.

heavy knot
#

Atom.

#

*quickly runs away

#

Btw... How about proper coding keyboard for android based devices?

languid helm
#

A usb one

mossy crown
#

@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

clever raven
#

dualboot it

mossy crown
#

dont want to reinstall rn

#

i will when i upgrade

#

besides, my laptop has an i7, my desktop is an athlon

hushed orbit
#

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)

slender ibex
#

I'm using sublime text for python, where can i find autocomplete plugins and how to install it?

kind bough
#

vs code

#

wsl

#

zsh, pycharm okhandbutflipped

maiden ember
#

The question was about Sublime text, they didn't ask for new tools

kind bough
#

not necessarily responding to the person always right above

elder wind
#

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

delicate gorge
#

!t ask

rancid schoonerBOT
#
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.

elder wind
#

fuck off

delicate gorge
#

No

elder wind
#

kill yourself

#

!mods fucking ban me

#

I dont give a shit

#

this whole discord is filled with cunts

delicate gorge
#

Maybe you just have to change your attitude at the majority of people

elder wind
#

maybe you just have to not be a condescending douchebag

delicate gorge
#

What's so condescending about sending something to you everyone on the server gets when he sends an unanswerable question

elder wind
#

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

heavy knot
#

!ban @elder wind clear disregard for server rules and has a clear inability to communicate with helpers in a respectful manner

rancid schoonerBOT
#

:ok_hand: permanently banned @elder wind (clear disregard for server rules and has a clear inability to communicate with helpers in a respectful manner).

barren iron
#

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

shut island
#

VScode slightly better

mossy crown
#

no

#

it depends on your needs

#

VSc is an IDE, but ST is mainly just an editor

barren iron
#

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

mossy crown
#

sublime is generally faster, unless you stuff it up with tons of plugins

barren iron
#

Yeah

heavy knot
#

what's up @crimson notch

random breach
#

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?

mellow cave
#

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

heavy knot
#

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

desert otter
#

@mellow cave vscode has some great plugins for that

#

often the best CSS editor is called Chrome Web Inspector

mossy crown
#

brackets.io is slow, but i know they were targeting web dev when they first released

mellow cave
#

@desert otter so which are you recommending and why? you say two things

copper compass
#

He's recommending both

#

Chrome's inspector is for easy live testing

#

But you write the file in vs code

desert otter
#

exactly

umbral otter
#

how many spaces per indent in a markdown file?

#

i've heard 4 spaces and 2 spaces

pale hare
#

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

stable notch
#

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

pale hare
#

add a blank requirements.txt to my repository and try to deploy again?

stable notch
#

helps in making a req.txt with just the needed packages. yea blank or just the discord library. async or rewrite?

pale hare
#

-----> 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

stable notch
#

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?

pale hare
#

sorry if I'm not understanding, but I don't have a discord.py

mossy crown
#

oh this again?

#

@pale hare what did you use to learn how to write your bot? And are you trying to use python2?

quaint saffron
plush wadi
#

You can 1) disable warnings, 2) show warnings as errors, 3) disable this warning (by code W0612), ..... or excise the unused variable.

mossy crown
#

just avoid creating warnings

quaint saffron
#

How do I disable warnings?

#

And @mossy crown I can't do that because I need for i in range

mossy crown
#

its unused, right? use the _ placeholder

quaint saffron
#

So for _ in range?

mossy crown
#

yea

#

pylint should ignore that

plush wadi
#

^
_ is a special case variable, and is treated as if it discards whatever you assign to it.

quaint saffron
#

thx

mossy crown
#

i dont think python treats a standalone underscore specially except in the interpreter session

violet belfry
#

@umbral otter Each indent level in Markdown is usually 2 spaces

umbral otter
#

Thanks

random breach
#

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?)

sinful zinc
#

what characters?

#

idle uses tkinter, which supposedly can't handle non-BMP (i.e. greater than U+FFFF) characters

random breach
#

first snippet there does it consistently

#

that one 🇦

wheat lodge
#

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

sinful zinc
#

@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

wheat lodge
#

@sinful zinc Matlab

#

matlab is a fucked up language

sinful zinc
#

tkinter itself seems to handle it okayish though

#

@wheat lodge maybe just use grep, if the function names are reasonable

wheat lodge
#

oh yeah, forgot that grep exists. i'll try it

random breach
#

oh my god there are so many

sinful zinc
#

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

#

@random breach looks like this is already a known bug and there's not much you can do about it

random breach
#

ah rip

violet belfry
#

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

wheat lodge
#

thanks will check that out

heavy knot
#

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)

livid schooner
#

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

violet belfry
#

Disable the linter

#

Or configure it to ignore problems you don’t want checked

heavy knot
#

can anyone help me?

forest bay
#

I'm not sure exactly what your question is

heavy knot
#

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

shrewd belfry
#

Hi! Does anyon know an IDE which is similar to sublime text 3 but can actually run code within it? Thanks

livid schooner
#

@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

hushed orbit
#

Sublime is not an IDE, and it should have a built in coderunner iirc

#

Check the hotkeys

dawn stump
#

and Sublime can be configured to run other languages than just python

livid schooner
#

vscode can too, afaik

violet belfry
#

I don't know, search your settings for "lint"

dawn stump
#

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"
}
barren iron
#

Is terminus free to use forever? looks super, super cool

deep estuary
#

@barren iron terminus as in typescript terminus?

#

the terminal?

barren iron
#

The one that does SSH only

deep estuary
#

i think you are thinking of termius

barren iron
#

Green logo

deep estuary
#
barren iron
#

Oops sorey

deep estuary
#

it is free dependent on what you want it for

barren iron
#

If you had to get a cross platform terminal.... What would you say is best?

deep estuary
#

i wouldn't

#

easy as that

#

not everything can be cross platform

barren iron
#

Tilux for Linux.... And somthing else for Windows?

deep estuary
#

yes

#

well not tilux

barren iron
#

What would be good for windows

deep estuary
#

alacritty is what I use

dawn stump
deep estuary
#

but for windows I just used putty if I wanted SSH...

dawn stump
#

fuck putty

deep estuary
#

don't use windows anymore though

#

when i last used it WSL was not even a thing

barren iron
#

I only use Windows for my parents

#

Will be switching to Linux full-time on my university laptop

#

👌

dawn stump
#

Termius looks nice

deep estuary
#

if you insist on cross platform then you probably want upterm

dawn stump
#

not sure if it's windows ready yet, wasn't last I checked

deep estuary
#

oh isn't it

#

i assumed it'd be cross platform because electron rip

dawn stump
#

I mean it sorta works on windows, but it's not great (last I checked)

deep estuary
#
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

dawn stump
#

:D

#

oh wow termius is written in python

barren iron
#

cool

heavy knot
#

that explain the lag ahah

late kiln
#

Good morning

#

I was looking for some ideas/help with a project and approaches.

random breach
#

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

arctic thunder
#

@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.

random breach
#

im not using a git repo

#

this is an offline project

arctic thunder
#

then probably just broken

random breach
#

the files open just fine outside of pycharm

#

so im not really sure what 'broken' means in thsi context

arctic thunder
#

can you screenshot, and paste a stat of the link?

random breach
#

there's no link.

#

oh you mean symbolic link

#

how would i get the stat of it?

arctic thunder
#
zac@zwafer:~$ stat test
  File: test -> ../zac/
random breach
#

im not on windows

arctic thunder
#

I'm on ubuntu...

random breach
#

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

arctic thunder
#

:/ seems to be a bug

random breach
#

rip

heavy knot
#

Yet another reason not to use PyCharm 😉

random breach
#

every program has bugs

#

in my whole time using pycharm i think this is the only bug ive ever encountered

#

thats pretty good

copper compass
#

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

heavy knot
#

Then you're lucky, I threw PyCharm put after 1 day of use

#

Out*

copper compass
#

PyCharm is excellent imo

#

I couldn't work without it at this point

arctic thunder
#

same here

random breach
#

@copper compass how do i check if it's an absolute or relative symlink?

copper compass
#

@random breach use the file command

#

or ls -ln

random breach
#

ty

#

ok one sec

heavy knot
#

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

copper compass
#

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

random breach
#

oh im on window

#

s

#

no ls or file.

copper compass
#

oh, then yeah, do not use links.

random breach
#

oh wait maybe i can do it in wdl.

#

wsl*

copper compass
#

never use links.

heavy knot
#

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

copper compass
#

they are a massive hack on windows.

random breach
#

:/

copper compass
#

well, I don't have any real problems

#

like meta said, all software has issues

mossy crown
#

stat also works to detect a symlink. If you have your ls colors -- oh, winblows

copper compass
#

yours were probably fixed by now

mossy crown
#

windows doesnt play well with links

heavy knot
#

I know one still exists with Robot framework log going crazy 😮

random breach
#

the link works perfectly fine eith regards to everything else

heavy knot
#

:p*

random breach
#

it's just pycharm being unhappy with it

#

i can open it in notepad, sublime, vscode

#

etc

heavy knot
#

Is that a soft link or a hard link?

copper compass
#

"this third party tool that does things in a non-standard way doesn't work well in pycharm"

heavy knot
#

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 😉

mossy crown
#

no

#

users are never right

heavy knot
#

If you want your software to sell, you gotta be compliant :p

#

BRB

random breach
#

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???

languid helm
#

What do you guys use as a linter.
VSCode defaults to pylint but the errors are more often than not without a description

random breach
#

literally the only difference between them is they're in two different folders.

mossy crown
#

@languid helm i use python as a linter

#

if it errors, i fix it

blazing prawn
#

so flake8 as general linter, and then run pylint independently every now and then

languid helm
#

okay, thank you

heavy knot
#

I use flake8 too

heavy knot
#

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

spiral pendant
#

i think i've accidentally disabled PyCharms style / error checking, anyone know off hand where the setting is to fix it?

arctic thunder
#

settings editor and such

blazing prawn
#

I think maybe he already knows that much

arctic thunder
#

Settings -> Editor -> Code Styles

golden wraith
#

this is love expressed as code

plain saddle
#

This the right channel to discuss TeX tools?

blazing prawn
#

off-topic would prrrrrobably be better suited to that

plain saddle
#

As long as the knowledgeable look into that. Thank you

heavy knot
#

ALGORYTHMS is this the channel for it?

clear grail
#

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

stable notch
#

is that os.environ?

trim inlet
#

can anyone link me like some online lesson thing so I can learn python?

#

i know a bit but its like basic stuff

dawn stump
random breach
#

go home pycharm you drunk

inland steppe
#

I use atom

delicate gorge
#

And?

arctic thunder
#

@random breach you're doing something weird

random breach
#

@arctic thunder

arctic thunder
#

I'll check that in 15 minutes, brb

#

@random breach what is args ?

#

from sys import args?

random breach
#

no

#

just a dict

arctic thunder
#

what's in the dict?

random breach
#

ordinary stuff

#

string keys mapped to string values

#

also that would be from system import argv not args

arctic thunder
#

yeah

random breach
#

lol, system. ah irony 😛

arctic thunder
#

I think you redefined list

random breach
#

i didnt.

arctic thunder
#

class 'list' does not define getitem

#

so, I think it's redefined

random breach
#

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.

#

🤷

mossy crown
#

@random breach I'm curious what you're doing with LuaFunction and that error

random breach
#

there's no error

#

the code works perfectly

#

it's just pycharm being weird

mossy crown
#

warning / w/e

random breach
#

and this is a lua file generator

#

im scraping through some documentation and generating some api modules

spiral pendant
#

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

random breach
spiral pendant
#

Possibly. Will check once I get to my office

mossy crown
#

@random breach I'd like to see it

random breach
#

sure, one sec

spiral pendant
#

Think I ran across that link while googling

#

It’s almost like my intellisense completely died

random breach
#

did you try

#

resetting all your preferences?

#

after a backup of course

spiral pendant
#

I did a full reinstall the other day without importing them

random breach
#

hmm

#

any jdk updates/changes?

spiral pendant
#

I don’t think so. Unless our sys admin did it

random breach
#

god damn it it's back

#

whatever lmao

#

@spiral pendant are you allowed to test local jdk installs?

spiral pendant
#

Ye

languid helm
#

the new jdk has a different license

#

if you are using it commercially be aware of it

delicate gorge
#

the openjdk or the oracle jdk?

languid helm
#

oracle one

vague fern
#

Heyoo

#

It did nothing at all

#

Has the > sign before everything now though

stable notch
#

oh i think you started a bash function there

#

ctrl+c if you can

vague fern
#

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?

stable notch
#

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

vague fern
#

Mine doesn't have SD card support :/

#

I tried python (name of file).py with no luck

stable notch
#

where is the py file? something will be mapped to /sdcard on your phone i'm sure like internal storage

vague fern
#

In downloads lol

stable notch
#

did you give termux storage permission?
termux-setup-storage if not that should trigger it

vague fern
#

I did not lol

#

It worked!

stable notch
#

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

vague fern
#

I'll try that, thank you so much for all the help

#

Says invalid syntax "/"

stable notch
#

exit() to get back to bash

vague fern
#

thanks

heavy knot
#

Guys does the syntastic plugin recquire the vim-flake8 one to be able to correclty use flake8 checker for python

stoic quiver
#

any actually useful

lost rock
#

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

forest bay
#

Markdown and bash, but if you do a lot of Markdown, then you should install MarkdownNavigator instead

random breach
#

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?

heavy knot
#

Does anyone use IntelliJ with a python extension?

#

I know that that's an option for php (instead of using phpstorm)

tawny temple
#

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

umbral otter
#

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

rugged adder
#

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?

dusk zealot
#

@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>
rugged adder
#

@dusk zealot oh but i just found the button to do it, thanks

#

sorry should have said it earlier

dusk zealot
#

Yeah VSCode has some wrapper around Git but all it does it runs this commands for you

rugged adder
#

yeah ik

#

thats exactly what i wanted

umbral otter
#

anyone update to macOS mojave? run into any issues with your development stuff? like brew?

#

just curious before I update

violet belfry
#

No issues when I did it

umbral otter
#

i think i'll run a time machine backup and try it out 😄

vague silo
#

don't have any issues either

dense mist
#

hey is anyone able to help set me in the right direction for a rebase?

hushed kelp
#

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?

heavy knot
#

it is possible

#

on 2018.2 and works perfectly fine

hushed kelp
#

perfect. was trying to install a rich presence plugin instead (thought that was what I was looking for). Thanks!

plucky yew
#

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

blazing prawn
#

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

plucky yew
#

@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

blazing prawn
#

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

plucky yew
#

PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/virtualenv-16.0.0.dist-info'
@blazing prawn

#

I get that

mossy crown
#

install with sudo dont do that

install locally, or use a venv

blazing prawn
#

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

plucky yew
#

yeah okay I got the owner to fix it

#

everything is working now

#

thanks (:

blazing prawn
#

👍

plain saddle
#

Hm. Is there a super lite IDE which supports jupyter files?

violet belfry
#

Are you looking for an actual IDE or just something to author and run notebooks?

plain saddle
#

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

violet belfry
#

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

spiral pendant
#

No personal experience but maybe try spyder @plain saddle

plain saddle
#

Okay. Thank you both. I guess I have to try each to see which is light and works well for my purpose

dusky saddle
#

guys what is the best ide for gui python programing desktop applications

plain saddle
#

For some reason VSCode is proving to be much slower than PyCharm

pallid wing
#

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

blazing prawn
#

uhhh... it looks like you started typing a sentence into your prompt and hit enter

pallid wing
#

was not me

arctic thunder
#

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?

copper compass
#

That kind of question is entirely out of scope of this server

#

I doubt you're gonna get a useful answer

arctic thunder
#

@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.

copper compass
#

Yeah, but you asked in an off-topic channel already

#

this channel is for python development tools

arctic thunder
#

ah.

copper compass
#

:P

arctic thunder
#

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.

heavy knot
#

What language are you looking for @arctic thunder

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?

lost rock
#

cp?

arctic thunder
#

cp forces me to run one thing at a time in multiple windows

lost rock
#

Or you want some clickable side by side folder terminal gui thing?

arctic thunder
#

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

lost rock
#

Midnight commander maybe?

mossy crown
#

ranger might work too

forest bay
#

Python + nurses ;)

arctic thunder
#

god I love scrubs

forest bay
#

ahem ncurses

teal haven
#

holas to all

arctic thunder
#

holy hell, curses is awesome!

#

is it python's curses or is ncurses something else?

#

or is python's curses the binding for ncurses 😛

forest bay
#

The latter IIRC

arctic thunder
#

figured.

delicate gorge
#

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

arctic thunder
#

ncurses menus aren't implemented in python. :/

arctic thunder
#

yeah, I"m not sure how useful ncurses is for python if it's not fully implemented

#

that sucks

delicate gorge
#

(implement it then :P)

forest bay
#

@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

thorn cobalt
#

owo

#

themes?

forest bay
#

Oh yeah

#

Themes for days

#

Also you can override the "native" windowing and make it all themed even the close buttons

civic hound
#

why do you want to change IDE @thorn cobalt ?

thorn cobalt
#

bc pychar doesnt work anymore

#

and sublime has hella popups

civic hound
#

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 😄

thorn cobalt
#

@civic hound does it have discord integration and the ability to run a script in the ide

civic hound
#

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?

thorn cobalt
#

discord lmao

#

i got it working tho

#

it thinks im idling but NO

civic hound
#

how nice 😄

errant crescent
#

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

forest bay
#

@Rius Grimm#4595 What OS are you on?

tawny temple
#

it was already solved

#

was running the command in python interpreter

forest bay
#

haha

#

Definitely have done that before myself

stray flame
#

if so, how do i enable those tips when you hover over a function?

tawny temple
#

it's always enabled as far as I can tell

stray flame
#

you cant really see it but my cursor is over print right now

#

nothing happens

#

is it because im using mozilla?

tawny temple
#

It is working for me on firefox

stray flame
#

ah

#

i figured it out

#

you have to put your cursor on the bracket

tawny temple
#

you mean the parenthesis?

#

that's not the case for me

#

works anywhere

#

🤷

stray flame
#

yeah sorry

#

parentheses

#

thanks a lot for your help mark i really appreciate it

pallid wing
#

anyone know how to fix this: accidently managed to put tabs over here

tawny temple
#

window -> restore default layout is one option

red badge
#

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

red badge
red badge
#

aight, was able to get it to work

#

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

languid helm
#

Are there any good repls for Android?

heavy knot
#

for Android = a Kotlin REPL, or a REPL app on Android for X language ?

languid helm
#

A python REPL on android

heavy knot
#

QPython3

languid helm
#

Thank you

stable notch
#

python installed in termux. does qpython3 have pip?

languid helm
#

seems like it does

stable notch
#

termux still seems 'cleaner' to me and with it you can write/upload to pastebin easily

mossy crown
#

pip is a python module

true parcel
#

anyone got an opinion on poetry vs flit to package a library? im leaning towards poetry because it has extra niceties like version

true parcel
#

oh it looks like poetry doesnt handle __version__ which is a bummer

oblique thistle
#

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?

violet belfry
#

The virtualenv is only local to the shell, so you'd just have to open another session to run a different environment

oblique thistle
#

I can do that with Screen right?

#

So 1 scrren per envoronment, no matter how many .py I run on that screen

arctic thunder
#

@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. 😛

brave hearth
#

Am i allowed to talk about stuff like gitlab here?

lost rock
#

Sounds fine to me.

#

git is definitely on topic for tools, and IMHO so should be git repo hosts

narrow slate
#

Is ther a way to make vscode autotrim spaces ?

#

I'm bored to F1 -> 'trim' -> Enter

pallid wing
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

heavy knot
#

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.

arctic thunder
#

curses library is crap

heavy knot
#

I got a free PyCharm license, any reason to switch from Spyder? Or is VScode the new hype?

deep estuary
#

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

lapis hazel
#

it even goes beyond python in some places. web development in pycharm pro is a fucking dream

heavy knot
#

It's pretty well integrated with bash too right? I mainly do "systems" scripting and mathematical programming

deep estuary
#

I believe it does integrate with bash but I haven't tried it

heavy knot
#

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

deep estuary
#

It is quite resource heavy yeah, but then so is VSCode, it's electron

heavy knot
#

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 😃

mossy crown
#

If you want a fast editor, vim or Sublime is your best bet

heavy knot
#

vim ❤

mossy crown
#

I use both on a day to day basis, can't wish for anything else

left oxide
#

I like vscode 🙂

lyric tulip
#

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?

naive temple
#

@lyric tulip try this : select the conflicting file in the editor and choose VCS | <your_VCS> | Resolve Conflicts from the main menu.

lyric tulip
#

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?

forest bay
#

@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

deep estuary
#

well, I once tried to argue vim was an IDE and got shouted at so I just assumed there was a difference

delicate gorge
languid helm
#

An editor is for editing text

#

an IDE has extra tools etc

#

like debuggers, formatters, compiler,

slow wasp
#

source code editor is only a part of IDE, IDE provides multiple functionalities for daily routine

delicate gorge
#

Yes but we are talking about an editor which has that

#

Using plugins etc

copper compass
#

the editor doesn't have that

#

that's why they're external plugins

languid helm
#

an editor is also part of an ide

copper compass
#

editors with plugins can be IDEs

slow wasp
#

^ this

copper compass
#

but the plugins have to come with the editor and be preconfigured

#

that is why vim isn't an IDE

delicate gorge
#

The question is
Whats the difference between a heavily modifi ed editor and an IDE
Apart from what you get out of the box

copper compass
#

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

slow wasp
#

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

delicate gorge
#

So functionally a modified editor can be equal to an IDE

#

Right?

copper compass
#

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

languid helm
#

vscode can function just like an ide with plugins

#

but by default it's just a text editor

copper compass
#

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

languid helm
#

Without languange plugins its not extrememly useful

copper compass
#

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

languid helm
#

I like that feature

copper compass
#

luckily though

#

most editors are not eclipse

languid helm
#

I'm surprised you can't just change vscode ui with html/css

copper compass
#

You might be able to

#

but you never see anything that does it

slow wasp
#

Speaking of Pycharm are there any plugins that allows Pipfile being not in the project root?

copper compass
#

that seems like

#

a really odd requirement

#

what's wrong with it being in the root?

slow wasp
#

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

copper compass
#

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

slow wasp
#

yeah, but pycharm can't do it

copper compass
#

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

slow wasp
#

root:

  • src < python project goes here
  • JenkinsFile
  • README.md
  • docker-compose-file
  • whateverelse
copper compass
#

yes

slow wasp
#

the only way for pycharm to work with it is to put Pipenv file in src

copper compass
#

although you rarely actually call that src

slow wasp
#

yeah just an example

copper compass
#

you just call it the name of your module

slow wasp
#

could be <app> or whatsoever

copper compass
#

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

slow wasp
#

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

copper compass
#

yes

slow wasp
#

you can't select a path to it

copper compass
#

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