#tools-and-devops

1 messages Β· Page 32 of 1

proper edge
#

?

hard urchin
#

https://atom.io/packages/atom-live-server

#

I'm trying to use that for my web development class

proper edge
#

no i havent

hard urchin
#

I have img in the right format it' s not showing up on the live server

#

but it shows up when I click the index.html

#

my image is not showing up now even the index.html

#

any help would be appreciated

#

I have the image path correct

glossy flint
#

guys, does anyone know how to toggle between lastly executed code in PyCharm's Python console? I only know I can do that by pressing UP arrow key and it's very ineffective πŸ˜„

long sphinx
#

hi all. i have a question. in pycharm, what is the plugin called which shows all the pages at the right side, and with which i can scroll through code, visualizing the font very small, like in vscode?

prisma nexus
#

uh. if youre talkinf about what i think you are, thats enabled by default

long sphinx
#

no, i mean, the whole source code is showed in a sidebar on the right at once, written in a font. the code ure currently looking at is framed in white. and u can click anywhere to instant scroll there

eternal flicker
#

@long sphinx it’s called CodeGlance

eternal flicker
#

For anyone who uses duckduckgo as their search engine, here are some Python-related shebangs you can use to avoid typing the same things over and over again:

!py = Python 3
!pythondev = Python Dev (Currently, 3.8)
!numpy = numpy
!scipy = Scipy
!pandas = Pandas
!bs4 = BeautifulSoup4
!sns = seaborn
!mpl = matplotlib
!tflow = Tensorflow
!keras = Keras
!dj = Django
!pyside2 = PySide2
!pep = pep
!pypi / !pip = PyPi
!sopy = StackOverflow Python
lost rock
#

πŸ¦† πŸ’›

delicate gorge
#

what sort of love does a yellow heart indicate

lost rock
#

would have taken orange if there were one

clever raven
#

helper love

hardy cedar
#

i don't understand

#

is this a setting thing you put into the search engine?

#

or do you have to type the !py each time

stiff sedge
#

@hardy cedar you have to type the bang each time

hardy cedar
#

is it just site-specific search?

stiff sedge
#

bangs let you search particular other sites alot !so for stack overflow or !g for google

#

I imagine that these python based ones are for adding words to your search

#

when you are searching for a solution it is helpful to include the language that you are using (along with frameworks or whatever tools)

#

these bangs will make it quicker

hardy cedar
#

i understand the purpose

#

im trying to figure out though it's function

stiff sedge
#

as a next step you can use ddg as your default search engine to enable them from the location bar

hardy cedar
#

i gave it a go and it went directly to the py 3 search results on python.org

#

but the python doc site's search is not a ui i enjoy

stiff sedge
#

20 !pep goes to the Zen of Python

#

!pep 20

rancid schoonerBOT
#
**PEP 20 - The Zen of Python**
Status

Active

Created

19-Aug-2004

Type

Informational

stiff sedge
#

@hardy cedar congratulations

hardy cedar
#

thanks

stiff sedge
#

!dj models

pallid wing
#

anyone know how to get pycharm to work on jupyter?

#

never seems to work right

heavy knot
#

Hi, probably a newbie question. I'm trying to use a virtualenv when working in VSCode, but VSCode is being irritating and not allowing me to select the venv as a valid interpreter. the venv was created using the virtualenv tool, and the folder is within the project folder, which is the only folder added to the VSCode workplace.

#

The instructopns suggest that is all you need to do to get it working.

tough seal
#

in your settings.json, add "python.pythonPath": "venv\\Scripts\\python.exe",

#

adjusting for your interpreter path

#

you might need to restart vscode to get it to work, I believe I did when running into that

heavy knot
#

I've done that bit... the restart. Wouldn't be much of a sysadmin if I didn't πŸ˜‚

tough seal
#

I mean after you put in the setting πŸ˜›

languid helm
#

Did you do create python terminal or run python file in terminal?

heavy knot
#

@tough seal Ahh ok.

#

@languid helm neither, currently.

languid helm
#

If you select python: create terminal from the menu thingy it will activate the selected environment

heavy knot
#

I assume it will accept % style % wildcards in the settings.json?

tough seal
#

IIRC it does not

#

As well as allowing environment variables through similar syntax

heavy knot
#

Hmm stand by.

#

ok, got it.

#

wasn't the settings.json that wasn't working.

#

I had the wrong folders in venv.

#

(the correct ones were in a sub folder... headesk

heavy knot
#

anyone here work with graphene?

#

I have been trying to use the docs to learn but frankly I can't work like that

#

if theres someone willing to take out some time to walk me through it it would be greatly appreaciated

delicate gorge
#

What's your problem with the docs/ at which part do you get stuck? I just took a quick look at some of it and it seems quite self explanatory if you know Graph QL

Also "i can't work like that" won't really save you because some day you will want to do something nobody you knows did before and then you will have to learn from the docs

long shard
#

Could someone explain why my code gives me an error when I run it using Visual Studio code? It says the file doesn't exist but it clearly exists and my bot works perfectly fine on sublime text.

#

It's the link to the error VS code gives me when I run my "!gems" command

tawny temple
#

where is that json file located?

#

What's the path to it?

long shard
#

It's in the same folder

tawny temple
#

What's the path, please

long shard
#

C:\Users\user\Desktop\C++ And Python\Code\responses.json

tawny temple
#

Can you show your VS Code launch configuration?

long shard
#

How do I do that? I forgot to mention that I'm entirely new to VS code and all I did so far was install the code runner extension

#

I'll google it

tawny temple
#

There's no need to use that extension

#

Unless you somehow find it more convenient I guess

long shard
#

I thought it was needed to run python code

tawny temple
#

No, you can run it with native VS Code features too

#

Go to Debug at the top left then click Start Debugging

#

Or you can do Start without Debugging too

long shard
#

I'll try that now.

#

nope

#

still the same error

tawny temple
#

Ok, let's see the launch config then

#

Hold on

#

isn't that a different error

long shard
#

nope

tawny temple
#

Oh is FileNotFoundError further up?

long shard
#

yup

tawny temple
#

You can get launch config by clicking the cog near the top left in the debug panel

long shard
#

oh okay I was going to send a pic of a file called launch.json

tawny temple
#

Yeah, that's the file

#

and you know you can just paste code

#

no need for a pic

long shard
tawny temple
#

Which one do you have selected?

#

The first one?

#

The current one will be shown in the drop down menu next to the cog

long shard
#

there is no dropdown

#

It opens launch.json when i click the cog

tawny temple
long shard
#

Python: Current File (Integrated Terminal) is what i have selected

#

I'll be right back I need to get a new battery for my mouse

tawny temple
#

Strange. I would expect that to work. I suppose you can try adding "cwd": "${workspaceFolder}" to the entry for Python: Current File (Integrated Terminal) in launch.json

long shard
#

I added that, I'll try to rerun the file

#

Nope, still doesn't make a difference as far as i can see..

tawny temple
#

I wonder what the current working directory is then

#

In Python can you somewhere do import os then print(os.getcwd())

long shard
#

okay

#

it says "C:\WINDOWS\system32"

tawny temple
#

o.o

#

So it's not finding the json file cause it's searching for it in system32 lol

#

Though, setting the cwd in the json file should have fixed it

#

Can you show how you edited the launch.json?

#

Just wanna make sure it was done correctly

long shard
#

okay

#
{
            "name": "Python: Current File (Integrated Terminal)",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "cwd": "${workspaceFolder}"
        }
tawny temple
#

I wonder if this launch.json is even being used

#

If you change the name of the config, do you see the name change in the dropdown too?

long shard
#

should i just rename it to something random

tawny temple
#

doesn't matter

#

you can just change 1 letter

#

just something that you can see the difference in

long shard
#

Okay when i changed the name and clicked the cog again it just created the file again with the same name

tawny temple
#

You were meant to change the name of "Python: Current File (Integrated Terminal)"

#

not the file name launch.json

long shard
#

Ohhh

#

and yes

#

that changes the name in the dropdown menu

tawny temple
#

Try using "cwd": "${fileDirname}", instead

long shard
#

Yes It Works!!!1

#

No error is produced and It outputs the correct thing

#

Thanks a lot πŸ˜„

tawny temple
#

Nice. Unfortunately it isn't the ideal solution

#

Are you running VS Code as admin or something?

long shard
#

nope

tawny temple
#

Did you open the workspace by opening the "Code" folder?

long shard
#

nope the folder that contains the code folder

#

I put all my code for all the different languages and projects i do in that

#

and I opened that

tawny temple
#

It should have been the "Code" folder as the folder you open determines what the current working directory is

#

(not anymore since we made it based on the current file)

#

the cwd basically acts as the root

#

Still, that doesnt explain why the cwd ended up as system32

long shard
#

Maybe sublime text was doing something...

#

Like i said, it was working perfectly fine on it

#

anyways... Thanks a lot for you help Mark! I really appreciate It finger_gun_dank

tawny temple
#

You're welcome

glossy flint
#

guys, is this the right place to ask about git?

tawny temple
#

Yes

glossy flint
#

I have a friend I found here with whom we are trying to practise collaborating on a django project. We have just started and I was wondering how to make it work... If I make changes I am satisfied with do I create a separate branch named like some new feature and commit changes to this new branch?

tawny temple
#

Make a new branch, commit your changes there, when it's done merge the branch into master

glossy flint
#

okay and once it's done, I push it to the remote repository to be reviewed, what if I want to continue working on another feature in the meanwhile? Say, another app in the django project, do I create yet another branch for it?

tawny temple
#

Yeah, you can create another branch for it

glossy flint
#

alright and to switch to this second branch? Let's say I'm at "eshop" branch right now... if I do "git checkout master" it switches to master branch where these new changes weren't comitted so it moves me to the past?

tawny temple
#

Yes, basically

glossy flint
#

okay, that was what I didn't have clear. So checkout can be used in combination with hashes but also with branches where it looks for the last commit that was carried out within that branch? Is that corrent?

tawny temple
#

Yes

#

It's a bit odd that you know it can work with hashes but didn't know about branch names

#

Typically people learn those the other way around

glossy flint
#

πŸ˜„

tawny temple
#

I don't even remember the last I've had to check out to a specific hash

glossy flint
#

I'm a hobbyist so I use these things once in a while and it's very easy to forget

#

branches are new for me

#

didn't need them working alone

restive tiger
#

Yay I finally figured out how to create a local project and then push it to github πŸ˜„

#

Only took me about 1h 30min or so

lyric hazel
#

Regarding code formatters
So I am pretty much set on using black as my goto code formatter but I recenttly started running into an issue where it auto formats long lists with len(elements) > 100 or more to each element in one line which is a little annoying. Is there a way to configure list formatting via black?

violet belfry
#

No

#

That’s why they call it the uncompromising code formatter

lyric hazel
#

@violet belfry ah well!
I did end up finding the pytoml file config but it seems to be limited to accepting the very few cli params
https://github.com/ambv/black#command-line-options

radiant linden
#

Hey everyone

#

could someone please assist me with following issues on pycharm

#

virtual environment is namen venv while it should be named untitled

#

and pip showing different version

radiant linden
#

as well as this

tawny temple
#

It looks like it is using the right venv. If you look at the path when you did python -m pip ..., it matches the path that PyCharm shows in the interpreter settings

#

The issue may be that pip is not the same as python -m pip

#

the latter seems to be correctly using the pip in the venv

#

what does python -m pip list give?

radiant linden
#
---------- -------
pip        19.0.3
setuptools 39.1.0

(venv) C:\Users\Animus\PycharmProjects\untitled>

#

that gives the right one

#

@tawny temple

#

sorry was away for lunch πŸ˜ƒ

tawny temple
#

Yeah so pip by itself is incorrect and I don't know why

#

Just use python -m pip

radiant linden
#

ok

#

@tawny temple one thing I have noticed is also this just now

#

usually venv was not seen like this

prisma nexus
#

what os are you on @radiant linden

radiant linden
#

Windows

#

Its been a mess lately with py charm and python

#

I have uninstalled everything and still same issue

eternal flicker
#

what's the issue you still have?

radiant linden
#

same as presented on pictures

#

I even removed all the variables from environment and added them again but no luck

eternal flicker
#

so your project interpreter is not the same one sourced when running the script?

fading glen
#

@radiant linden Is that pip list everything listed within the global interpreter?

radiant linden
#

I just uninstalled everything deleted from env path

#

and have just one python version

#

3.7

#

venv file suddenly appears in testing

#

if I install for example requests

#

pip install requests

#

both get requests

#

is there something wrong here?

#

python is located in

#

C:\Program Files\Python37

eternal flicker
#

in the top right corner, do you see a bar that says something like your script name? basically to the left of the green triangle pointing right

radiant linden
#

yes

eternal flicker
#

click on it, then choose Edit Configuration

#

what does the window show?

radiant linden
eternal flicker
#

click Project interpreter, and choose the venv you want to use

radiant linden
#

where the hell is project interpreter?

eternal flicker
#

4th row from the top

#

under the section Environment

#

my bad, it's Python Interpreter

radiant linden
#

still same thing

#

pip is still on 10

#

while

#

here is the right one

eternal flicker
#

after changing the interpreter did you close the terminal and open another one?

radiant linden
#

no

eternal flicker
#

can you try that?

radiant linden
#

Tried and no change

tawny temple
#

@radiant linden try deleting and recreating the venv

random breach
#

pycharm is telling me these two is are shadowing a name from an outer scope, but the function below is the only outer scope there is. am i missing something?

#

even then the i shouldnt count as shadowing, right? afaik identifiers dont carry over into functions called inside another function.

lost rock
#

is that the whole file? any imports with i, or *-imports?

random breach
#

there's the full file

#

no imports with i or * imports

#

huh, fixed it

#

turned out it was

    for i in range(n_list.flat_length()):
        print(n_list.nested_path(i))

under if __name__ == '__main__':

lost rock
#

Yeah, that's part of the global scope

#

which is why I personally always try to only write

if __name__ == "__main__":
    main()

and put the rest of the run logic in a separate main function.

random breach
#

good idea, ill keep that in mind from now on

#

ty

lost rock
#

np

fresh shard
#

what does git commit -a do?

#

I can find -a in the manual

#

I thought it included all changed files on commit

#

but that seems to not be the case

violet belfry
#

All changed files that are already being tracked

coarse rapids
#

@brisk prism Can you post that in #303934982764625920 instead? It doesn't seem to be tools related, and you will probably get more views anyway.

brisk prism
#

oke no worries

#

damn i just didnt see thay channel

tough anvil
#

Is there any spreadsheet modules that supports utf-8 and easy to use?

#

I'm planning to store some values that contains Japanese characters and \ns, but csv is too hard for me to make characters escape properly

delicate gorge
#

If you're doing csv with python three you just have to open the file with utf-8 encoding and everything should be pretty much fine

radiant linden
#

@tawny temple sorry for late response I had two day break πŸ˜ƒ

#

could this be an issue as well?

tawny temple
#

That looks ok. The top path should be taking priority

radiant linden
#

but still i dont get it

tawny temple
#

Is this a venv that pycharm automatically created?

radiant linden
#

yes

tawny temple
#

So why is it yellowish? What's the message it's giving you when you hover over the folder?

radiant linden
#

nothing

#

no message poping up

#

its just next to the venv

#

library root

#

thats it

tawny temple
#

Go to Project Interpreter in the settings

#

At the top right, next to the dropdown menu, click on the cog and then click Show All...

radiant linden
tawny temple
#

So try to delete that interpreter

#

Than click the + button to create a new one

#

And just select "virtualenv" from the left

radiant linden
#

it gives me error

#

that venv is not empty

tawny temple
#

Try deleting the venv folder in the directory

radiant linden
#

so it will create the same folder?

tawny temple
#

Yeah

radiant linden
#

same thing popped up

#

venv in the main project

#

and in local terminal

#

while it should be named

#

testing

tawny temple
#

I am having doubts that the name in parenthesis actually means anything has gone wrong

radiant linden
#

well a week a go it used

tawny temple
#

If you open a command prompt and cd into your project, then run venv/Scripts/activate.bat, what does the name in parenthesis show on your conole?

radiant linden
#

to be so that name in parenthesis was the same as the one marked in project interpreter

#

(venv) A:\Python3_7Projects\testing\venv\Scripts>

#

(venv)

tawny temple
#

Yeah see, it just uses the name of the venv folder

radiant linden
#

did this change with the new version

tawny temple
#

Just cause name isn't the project's name doesn't mean it's gone wrong

#

I don't know

radiant linden
#

but that still doesnt explain the issue

#

why i need to call

#

python -m pip list

#

instead of just pip list

#

like it was previously

tawny temple
#

I don't know 😦

#

just pip by itself should still be working

#

does it not work correctly with this test project either?

radiant linden
#

no

#

and when i updated the pip through the project settings

#

it gave me error for a pslit second and than automatically jumped on 19.03 version

#

setup tools can not update at all

tawny temple
#

what about when you ran activate.bat in your cmd

radiant linden
tawny temple
#

was pip working correctly there?

radiant linden
#

no errors

#

just gave me the line i posted here

tawny temple
#

Did you run pip though in the cmd after activating the environment?

#

not through PyCharm

radiant linden
#

which one

#

normal pip?

#

there is like few different of them

tawny temple
#

You're misunderstanding

#

I'm just asking you to run the pip command

#

pip list or something

#

Run it in your command prompt after you activate the environment

#

is it showing the outdated pip version?

radiant linden
#

yes outdated

tawny temple
#

Doesn't look like you activated the environment...

radiant linden
tawny temple
#

get out of the scripts directory

#

go back to project root

#

the testing folder

radiant linden
#

yes and

tawny temple
#

now run pip list

radiant linden
#

ROFL

tawny temple
#

uh

#

Environment is not acivated anymore

#

Did you open a new command prompt or something?

radiant linden
#

no

tawny temple
#

Make sure the env is active before you run pip list

radiant linden
#

so

#
  1. activate through activate.bat
#

and than go back to root an run there pip list

tawny temple
#

Yeah but you don't even need to cd into scripts

#

you can just specify the path to activate.bat while you're still in "testing"

#

venv/Scripts/activate.bat

#

that command should work

#

If not maybe put it in quotes

radiant linden
#

done

#

and no

#

not the latest

tawny temple
#

what about python -m pip list?

radiant linden
#

that one has 19.0.3

tawny temple
#

what the fuck

#

this makes no sense

radiant linden
#

tell em about it

tawny temple
#

where pip and where python

radiant linden
tawny temple
#

What about python -m site

radiant linden
tawny temple
#

Everything looks good based on those commands

#

I just don't understand

#

So there's one more idea

#

Maybe PyCharm fucked up creating the venv

radiant linden
#

hey

#

what about this

#

thats different than

#

the one in cmd

tawny temple
#

Yeah that's fine

#

That's your system's interpreter

#

Anyway, you can try creating the venv yourself and see if the pip version is different between pip list and python -m pip list. You can create a venv with python -m venv /path/to/new/venv

#

(don't do this with your current venv still activated)

radiant linden
#

ok

tawny temple
#

πŸ™

radiant linden
#

what about shouldnt there be python as well in Path under user variables

#

?

tawny temple
#

No

radiant linden
#

ok

#

so how can pycharm mess up everytime

#

I create new project

#

🀣

tawny temple
#

Well we don't know if it is PyCharm's fault yet

#

You're going to test that right now by creating a venv yourself rather than through PyCharm

#

And if it still doesn't work then I'm out of ideas. Re-install Python or something at that point

radiant linden
#

did reinstalling everythign already πŸ˜ƒ

#

pycharm as well as python

tawny temple
#

😐

radiant linden
#

as well as both

#

πŸ˜ƒ

#

do i need to create new venv in project folder or anywhere i want

tawny temple
#

Anywhere

radiant linden
#

ok done

tawny temple
#

You did it with the python -m venv command right?

radiant linden
#

tes

#

yes

#

now its pip version

#

I have never seen it before 🀣

tawny temple
#

And what does python -m pip list show?

radiant linden
#

same

tawny temple
#

Hurrah

radiant linden
#

πŸ€”

tawny temple
#

So it is PyCharm after all...

radiant linden
#

sucker

tawny temple
#

I have not a clue why though. Is PyCharm up to date and everything?

radiant linden
#

yes

tawny temple
#

You said you re-installed it recently right?

radiant linden
#

latest

tawny temple
#

So probably

#

I don't know what's wrong with it

#

Maybe you can take this issue to JetBrains or something

radiant linden
#

i reinstalled it after i could not solve same issue

#

πŸ˜„

tawny temple
#

But for now you can just create the venv yourself

#

Then you can go to PyCharm through the menus I showed you before, where you create a new interpreter

radiant linden
#

and add existing

tawny temple
#

And IIRC you have the option to select an existing venv

#

yeah exactly

radiant linden
#

thanks

#

for assistance

#

i will take it up with jetbrains

tawny temple
#

You're welcome

restive tiger
#

Can I use .gitignore to include files in the folder which I do not want to be uploaded to github? ( I have data files that I do not wish to spread)

#

I have also been trying to figure out how to set up venv in visual studio code but havent found out how exactly.

tawny temple
#

Yeah, like so: ```
data/*
!data/important_data.csv

#

That excludes everything in the folder but makes an exception for that csv file

restive tiger
#

Could I do ```
Nordea*/*

#

to include all folders with a certain starting name and all files in that folder?

lost rock
#

Sure, but you can just write Nordea*/ then. Everything inside is included automatically

restive tiger
#

ah ok, ty

tawny temple
#

No, you need the /* after

lost rock
#

hmm....? sure?

tawny temple
#

Well, you need it for the exclude to work

restive tiger
#

I guess it wouldnt hurt either way

lost rock
#

I don't think I ever wrote it that way and it always worked.

tawny temple
#

You mean the excludes worked?

#

Not sure myself, I just learned it has to be done that way if one wishes to exclude

#

But for general ignoring purposes either would work

#

@restive tiger Regarding the venv in VS Code, there's probably some fancy UI way to do it but you can set this option in your workspace settings python.pythonPath

restive tiger
#

ah so it is workspace then?

#

I do use that

lost rock
#

hmm, it might be special because there is a glob in the first part, not sure how to interpret the docs on that point...

tawny temple
#

I believe this is the relevant line Git doesn’t list excluded directories for performance reasons, so any patterns on contained files have no effect, no matter where they are defined.

#

@lost rock

#

So ignoring the dir just ignoring the dir, but adding /* is actually ignoring each file individually

lost rock
tawny temple
#

This answer is how I understood it The tricky one, that I just spent an hour or so ripping my hair out over, is that bin/ and bin/** are not quite the same! Since the earlier ignores the directory as a whole, and the latter ignores each of the files within it, and git in nearly all cases doesn't care about directories, there is normally no difference. However, if you try to use ! to un-ignore a subpath, then you will find that git (ahem) ignores it if you ignored the parent directory! (again, rather than the directory contents)

lost rock
#

Β―_(ツ)_/Β―

tawny temple
#

Not a big fan

#

Seems pretty unintuitive if you ask me

restive tiger
#

on a unrelated note, I am suprised more people dont share their github in the note section of their discord profile

tawny temple
#

But notes are client side

lost rock
#

note section??

tawny temple
#

The note is whatever you give to others

restive tiger
#

Oh lol

tawny temple
#

People can't set notes to show other users

lost rock
#

yeah, you only see the notes you make yourself πŸ˜›

restive tiger
#

Lol

#

Then my note with my steam id is useless.

lost rock
#

kinda like placing sticky-notes on other people's forehead to remember their names or birthday

restive tiger
#

too bad

#

going to bed, gnight

tawny temple
#

gn πŸ™‚

radiant linden
#

@tawny temple hey its me again πŸ˜„

#

is that normal as well?

#

this type of setup

#

because it looks like that VENV which i create under textin/venv like we spoke yesterday

#

is similar to external libraries

tawny temple
#

@radiant linden Yeah, it's normal my PyCharm projects show that venv folder in there too.

stiff sedge
#

@worthy sequoia why you use VSCode when there's Vim?

#

It's only better at being a an IDE

#

not at being a text editor (as most claim it to be)

#

as an IDE it is worse than most options

#

I find it to be a really bulky mid ground that is not needed

#

there are lighter text editors and better functioned IDE's

#

Text editors I'd use include vim, notepad++, programmer's notepad, and gedit

#

IDE's of choice would be JetBrains products

#

That's part of the issue that i had with VSCode

#

PyCharm and IDEA are both pretty intuitive to me

tawny temple
#

@worthy sequoia Only use Sublime cause it's just what I started out with. When I started out, VSCode and Atom were fairly young still. I have considered switching before.

#

Now they have gained far more traction and have ecosystems of extensions and whatnot

tight root
#

Any config/ext for indentation for VSCode? I got a lot of PEP8/E128 errors. Is there a prettyfy function ?

#
print((productname, brandid, speciesid, positioningid,
       flavorid, url)
      )```
#

(to achieve this)

#

Succeeded! Format document command

restive tiger
#

Slowly getting the hang of github, almost feels more complicated tho to use tools like Gitkraken.

coarse rapids
#

Once you understand what the commands are actually doing, and the git workflow, any gui on top of that is just for convenience

fickle prairie
#

I just upgraded to Python 3.7 from 2.7, as the reload function is gone how do i update my packages?

#

I am currently using vim and running Python of console btw, if that makes any difference

cold gate
#

There's still a reload function, but it's been moved to the importlib module

#

@fickle prairie

restive tiger
#

I thought he meant how to upgrade modules with pip lol, been sitting googling and reading about a "pip install --upgrade" feature that doesnt exist apparently (or is broken)

fickle prairie
#

@cold gate yeah, ive shouldve mentioned i am using it now, but its just so clonky importing it everytime... Is there any enviroment i should look into? How do you guys usually deal with these things?

cold gate
#

How are you using this at the moment? You have a script that runs continuously and want to reload modules while it's running?

fickle prairie
#

I am currently programming neural networks, so everytime i make an update to it i have to reload the nn, create a new class and retry, no running while reloading

cold gate
#

Oh, interesting

#

I don't know if you have to set-up more for your analyses, but you can either run a start script and have python end with the interactive interpreter (-i flag in cmd) and have something like from importlib import reload in there so you can just use reload(module) from there on out. It may also be possible to add it to the start-up options in Python, but I don't know.

#

You can use the PYTHONSTARTUP environment variable for the latter

#

You can set a file that should be executed before opening the REPL and you can add your default options to that

fickle prairie
#

Omg thats amazing thank you so much!

cold gate
#

I've never used it, though, so I can't really help you with setting it up

fickle prairie
#

Its fine, i've dealt with similar things before.

thin elm
#

What would you guys reccomend for a console framework/template engine?

#

Not ones like arg management and stuff I am thinking more like asci based GUI, its hard to explain what im looking for.

#

I guess which is why I havent been able to find it on git or anything.

civic hound
#

are you maybe looking for curses?

thin elm
#

wait

#

curses is still a thing?

civic hound
thin elm
#

Wow dude thanks a bunch I feel like an ID-10T now.

civic hound
#

np, hope it helps you out πŸ˜„

thin elm
#

Hmm, though curses is a little more real time app then I am looking for. I am thinking more of a view system, if that makes sense? I am more trying to format console output, use view partials and so on. Think like a web template engine but for console output instead.

civic hound
#

pretty sure you can use curses for this

thin elm
#

Ahh ok then I will check into a little more. Thanks!!

prisma nexus
#

why does pycharm sometimes warn that my iterator in for loops is unused but doesn't worn other times?

civic hound
#

is it because you use the wrong variable name?

#

_ is meant to mean that you do not care about it

hushed orbit
#

Is there anything wrong with this pipfile? ```py
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
discord-py = {git = "https://github.com/Rapptz/discord.py.git", ref = "8123d4a", editable = true}
aiosqlite = ""
pyyaml = "
"

[dev-packages]
"flake8" = ">=3.6"
"flake8-bugbear" = ""
"flake8-import-order" = "
"
"flake8-tidy-imports" = ""
"flake8-todo" = "
"
"flake8-string-format" = "*"

[requires]
python_version = "3.7"

[scripts]
start = "python -m adventureIO"
lint = "python -m flake8"```

#

I tried installing that (without --dev) and i just keeping getting this error ```
File "c:\program files\python37\lib\json\decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 8289 (char 8288)

During handling of the above exception, another exception occurred:
...
File "c:\program files\python37\lib\site-packages\pipenv\utils.py", line 678, in venv_resolve_deps
raise RuntimeError("There was a problem with locking.")
RuntimeError: There was a problem with locking.``` full https://paste.pydis.com/wedilovezu.py

#

I am currently running it with a fresh install of python 3.7.2, pipenv was just installed and up to date

#

And there are no other python / pips on my system

tawny temple
#

Can you run it in verbose mode?

hushed orbit
#

2 sec, running

#

Quite a bit

tawny temple
#

Not sure unfortunately

#

It basically builds a command then executes it in subprocess or something

#

then reads the stdout

#

Was kind of hoping verbose would show what that command is

#

or what the output it

#

Ah it does actually show it

#

It's right before the error

#

it prints results in caps and the next line is the json that it tries to load

hushed orbit
#

Ye idk whats wrong

#

i experienced it yesterday when i was trying to setup this bot on a friends pc

#

he got the same error and what not

tawny temple
#

I dunno, that JSON seems fine

hushed orbit
#

I reinstalled python cause i kind of had too many dependencies on my global python, now i get it too

#

Any suggestions as to what i can try?

tawny temple
#

Try to narrow down the issue

#

Is it failing cause of d.py?

#

Or more generally when installing with -e from git?

#

or perhaps installing anything from git

hushed orbit
#

lets see

#
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
discord-py = {git = "https://github.com/Rapptz/discord.py.git", ref = "8123d4a", editable = true}

[requires]
python_version = "3.7"``` my pipfile atm
tawny temple
#

That JSON is all the dependencies for d.py it seems

hushed orbit
#

deleted the virtual env

#

and restarted everything

#

I pinned it to the latest commit on their repo

#

i guess i could try an older commit

tawny temple
#

I do think it is indeed failing to resolve dependencies for d.py

hushed orbit
#

let's just see what it does first

#

huh~ seems o be working now

#

Yeh

#

Aha issue is related to aiosqlite @tawny temple

tawny temple
#

πŸ€”

hushed orbit
#

it updated fine with dpy, and pyyaml

#

but fails to lock with aiosqlite

tawny temple
#

oh yeah didn't catch that in the verbose log

#

kinda hard to follow since it's resolving dependencies for multiple things at once

hushed orbit
#

true

#

i can run verbose with only aiosqlite

#

that... worked?

#

Seems to be a conflict with the newest d.py and aiosqlite then

tawny temple
#

Yet the error doesn't seem to indicate that at all

#

json decode error...

#

just confusing

hushed orbit
#

Yeh so i can lock with all packages alone

#

i can lock with d.py & pyyaml, and pyyaml & aiosqlite

#

but not with d.py and aiosqlite

tawny temple
#

but aiosqlite doesn't even have any dependencies

hushed orbit
#

I have no idea

#

I went ahead and asked on the d.py server if theres any other recorded incident with this

#

Eh was just pointed to the permissionError

#

Which doesn't tell me much if I'm able to install each package separately imo

tawny temple
#

I don't think it's the permission error

#

That's just something that is ignored by pipenv

#

Well apparently the permissions thing is a know issue

#

However, I still think this is not related to dependency resolution failing.

#

It's just some cleanup of temporary files failing

hushed orbit
#

eh

tawny temple
#

And for what it's worth locking fails for me too

hushed orbit
#

Is it cause i installed python in C:\Programfiles in stead of roaming this time?

tawny temple
#

Was it working before with that exact pipfile?

hushed orbit
#

yeah afaik

#

i uninstalled all pythons and stuff cause my vsc had issues running files directly

#

i got tired of having to type pipenv run start jus to see if an import in my cog worked

tawny temple
#

Maybe the dependencies in your old venv were outdated so it was working

#

cause * just locks to the latest

hushed orbit
#

I started this project like under a week ago

#

πŸ€”

tawny temple
#

Well, it takes a good 2 minutes but I can get it to lock with just d.py and aiosqlite

hushed orbit
#

GWqlabsGarThink how

tawny temple
hushed orbit
#

I mean mine looks just the same

#

except i have pyyaml uncommented

#

and a long commit ref

#

instead of the short one

tawny temple
#

I'll try again with pyyaml uncommented now

#

When I initially ran pipenv lock with the pipfile exactly as you sent it, it did fail

hushed orbit
hushed orbit
#

Mmm, well my results didnt change

tawny temple
#

yeah it fails with pyyaml

hushed orbit
#

what GWqlabsGarThink

#

huh

#

you're right

#

ok so it locks with a git reference for pyyaml

#

I guess the pypi version isnt compatible with 3.7?

#

or some of the deps of d.py

tawny temple
#

neither pyyaml or aiosqlite have dependencies on any other packages

#

I don't see why they would fail

hushed orbit
#

Weird

#

well it works with the git ref

tawny temple
#

`Specifying the two dependencies that d.py has manually also works

#

(but without d.py itself)

#

i.e. toml [packages] aiohttp = ">=3.3.0,<3.6.0" websockets = ">=6.0,<7.0" aiosqlite = "*" pyyaml = "*"

hushed orbit
#

Huh

#

well ill tinker with it

#

and hope it doesnt break again

tawny temple
#

Maybe it's worth reporting a bug to pipenv?

#

Some weird shit is going on

hushed orbit
#

Isn't the dev our very own kennethreitz?

tawny temple
#

Yeah but I don't know how much he still participates in day to day development of it

#

Plus I think they'd just prefer if you go through the normal communication channels

thin elm
#

What are you guys using for application developement frameworks that arent webbased? Or should I just break down and use a web framework?

eternal flicker
#

I use PySide2, which is the Python wrapper for Qt

brittle isle
#

@thin elm depends on your needs, do you need a graphical interface? Do you want to make a basic CLI tool? Rich terminal application?

thin elm
#

@brittle isle Im thinking more a long the lines of CLI.

#

Though I am open to looking at many different stand alone frameworks.

brittle isle
#

@thin elm for CLI program you may

  • use no framework at all
  • use click
  • use cleo
  • and so on
thin elm
#

yeah I was looking into click I havent heard of cleo ill check that out

brittle isle
#

click is great, cleo is a bit different, but they basically fulfill the same goal

thin elm
#

Which do you think is better?

brittle isle
#

none, there is no such thing as "better" when it comes to chosing a language, a framework, a library...

#

try them and pick the one you prefer

thin elm
#

I mean, thats debatable. For instance look at cakephp and codeigniter

#

both frameworks have solid debates why they are better then the other.

brittle isle
#

yeah, but all those debates are pointless

thin elm
#

Why?

#

Anyway

brittle isle
#

tools have advantages and counterparts, it is just a matter of personal preference in the end

thin elm
#

Im not gonna degress... Ill rephrase to suite your thought proccess

#

which one do you use more often and why?

brittle isle
#

I usually use no framework for my CLI tools (they are pretty simple), already used click though, it was neat

thin elm
#

nod nod

#

Thank you for your time.

fickle swallow
#

Hello, I don't know where to ask it so I write it here (correct me if it's the wrong chat). I look for a good website with royalty free images

fickle swallow
lost rock
#

Pixabay might work too

eternal flicker
fickle swallow
#

Ok tanks πŸ‘Œ

coarse rapids
#

Is there any way to rank, for a github repository with many forks, which branch of which fork has had the most lines changed?

barren iron
#

@coarse rapids you could use git diff and a script

tawny temple
#

If you're fine with a non-pure git solution then look at GH's API

heavy knot
#

Hello! I have installed git and it wont let me add my orgin; and i tryed through atom, but the github page just shows black

#

@tawny temple

tawny temple
#

How are you doing it through atom?

heavy knot
#

Clicking on the Github icon

#

@tawny temple

tawny temple
#

And nothing shows up when you click it?

heavy knot
#

Nope @tawny temple

tawny temple
#

Sorry, that seems like too vague of an issue for me to help you with

#

Maybe you should report a bug to Atom or something

#

In the meantime you could learn how to use git using the command line

#

I believe we have some resources for git listed

#

!resources

rancid schoonerBOT
#
Resources

The Resources page on our website contains a list of hand-selected goodies that we regularly recommend to both beginners and experts.

heavy knot
#

@tawny temple

#

admin@DESKTOP-7OAPJU8 MINGW64 ~/Desktop/toolr-master (master)
$ git remote -v
orgin https://github.com/Thatcooldevguy/toolr.git (fetch)
orgin https://github.com/Thatcooldevguy/toolr.git (push)

admin@DESKTOP-7OAPJU8 MINGW64 ~/Desktop/toolr-master (master)
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

git remote add <name> <url>

and then push using the remote name

git push <name>
lost rock
#

git push -u origin master maybe?

heavy knot
#

Got it!

#

I had to clone it

#

again

#

@lost rock

lost rock
#

weird

fickle swallow
#

Hello I got this error msg with pip (I use Pycharm with windows10 and Python3.7) :

You should consider upgrading via the 'python -m pip install --upgrade pip' command.

python -m pip install --upgrade pip
Requirement already up-to-date: pip in venv\lib\site-packages (19.0.3)

May I need to rename or move the site-packages (19.0.3) directory elsewhere ?

hardy cedar
#

@fickle swallow whats the original command you used to get the version notice

fickle swallow
#
pip install pyinstaller

Trying to install pyinstaller

hardy cedar
#

are you on windows?

fickle swallow
#

yes windows 10

hardy cedar
#

try py -m pip --version

#

see what it says

fickle swallow
#

It says : pip 19.0.3 from [...]venv\lib\site-packages\pip (python 3.7)

hardy cedar
#

are you running this from within a venv?

fickle swallow
#

yes

hardy cedar
#

and are you trying to install pyinstaller inside that venv?

fickle swallow
#

but I don't knwo what it means :x

hardy cedar
#

virtual environment

fickle swallow
#

oh ok

hardy cedar
#

it's a little contained python environment

#

has it's own python path, package installs, etc

fickle swallow
#

yes I was trying to install pyinstaller within venv

hardy cedar
#

then just use python -m pip install pyinstaller

#

it's recommended to use pip via the specific interpreter you're intending to use to avoid pip path issues

#

in this case you likely tried installing pyinstaller via a pip that was not matched with the interpreter you were using

fickle swallow
#

ok, so I must type this in windows command mode ? (actually I'm in the pycharm console mode)

hardy cedar
#

pycharm autoactivates the venv your project is using

#

you can use it there

#

if you go to windows console, you'll need to manually activate the project venv

fickle swallow
#

ok ti works without warning, thanks πŸ˜ƒ

hardy cedar
#

@fickle swallow no probs. if you want to update your normal pip, you can check it outside of your venv

#

just open a normal windows console and type py -m pip --version to check if the system install specifically is out of date

random breach
hardy cedar
#

did you redefine list?

random breach
#

oh, sorry, didnt notice there was a convo going on already. shouldve checked first.

#

nah, haven't done anything to it

#
import io
from base.nodes.codenode import CodeNode
from typing import Union

DumpStream = Union[io.StringIO, io.TextIOBase]


class CodeNodeWriter:
    def __init__(self):
        pass

    def node_to_lines(self, node: CodeNode):
        stack = [(node, 0, node.total())]
        # depth = 0

        while stack:
            node, depth, iterator = stack[-1]

            try:
                item = next(iterator)

            except StopIteration:
                stack.pop()
                continue

            if isinstance(item, CodeNode):
                stack.append(
                    (item, depth+node.child_depth_offset, item.total())
                )
                continue

            yield depth, item

    def dump(self, node: CodeNode, stream: DumpStream, indent='    ', base_depth=0):
        for depth, line in self.node_to_lines(node):
            stream.write(indent*(depth+base_depth))
            stream.write(line)
            stream.write('\n')

    def dumps(self, node: CodeNode, indent='    ', base_depth=0):
        string_io = io.StringIO()
        self.dump(node, string_io, indent, base_depth)
        return string_io.getvalue()


writer = CodeNodeWriter()
#

that's the full file

hardy cedar
#

seems like some typing weirdness

#

are you typehinting stack anywhere that's not shown here

random breach
#

nah

hardy cedar
#

no stub files and no docstrings either?

random breach
#

not that i know of anyway. https://github.com/0xf0f/codenode you can see the repo here if you like. it's a bit different to that snippet but largely the same.

#

nah, no docstrings. not quite sure what you mean by stub files

hardy cedar
#

test something for me

#
    def node_to_lines(self, node: CodeNode):
        stack: list = [(node, 0, node.total())]
#

first this i guess

random breach
#

that worked o.O

#

and the warning doesn't come back after taking it out either

hardy cedar
#

ok next do this

#
    def node_to_lines(self, node: CodeNode):
        stack = [(node, 0, node.total())]
        print(type(stack))
#

just to verify it's correctly typing

random breach
#

<class 'list'> yep

hardy cedar
#

yeah thought so

#

it's just the linter having a moment

#

should be gone anyway

#

have fun

random breach
#

ty!

chilly quartz
#

Hey so in pycharm i have a run config setup and it works fine. but under the same working directory in that config and everything if i do py src/main.py it gives me module errors. How does pycharm run the file differently?

hardy cedar
#

show your run config

chilly quartz
hardy cedar
#

what's the module errors that shows up?

chilly quartz
#

it works fine in the run config

#
ModuleNotFoundError: No module named 'src'
#

src is the folder everything is in

#

and the cwd is the enclosing folder

hardy cedar
#

it's because it's adding the roots to the available paths

chilly quartz
#

so how do i fix it

hardy cedar
#

I don't personally rely on pycharms path additions in order to make sure things work as expected outside of pycharm run environments.

#

you could try running it as a module maybe?

#

py -m src.main

chilly quartz
#

i'd need an init.py right

#

eyy there we go

hardy cedar
#

in src, you would

#

is it working though?

chilly quartz
#

thanks

#

yup

hardy cedar
#

nice, good to hear

tawny temple
#

I don't think the cwd was the same

hardy cedar
#

if he used src.main and it works, it should be the same cwd

tawny temple
#

Yeah, never mind

hardy cedar
#

all g, i thought maybe it was that first too so i was scratching the head a bit

tawny temple
#

It's cause it wasn't being ran as a module

#

I'm so used to it that I forget it works differently with imports

hardy cedar
#

i'm kinda not a fan of pycharm adding src to pythonpath because of this

#

i understand it has it's usages for tests

#

but it probs shouldn't be default enabled

placid coyote
#

which python linter can check for variable name reuse?

heavy knot
#

random question

#

what font does Atom use for code?

hardy cedar
#

That depends on the OS you're using

#

Consolas for Windows, Menlo for MacOS, DejaVu Sans Mono for some Linux apparently

#

A lot of people change the chosen font to their personal favourites though

#

I personally use Fira Code Retina for my code, for example, and Atom has a setting letting you choose your preference.

heavy knot
#

time go scroll through and find my favorite

balmy cargo
#

Yeah I use one of either Operator Mono, Dank Mono, Overpass Mono, or IBM Plex Mono currently depending on which machine I’m on (Linux renders fonts much worse than Mac OS) which text editor (they also render differently) and my mood

#

Last time I used atom I don’t think it did ligatures yet, but then again I don’t use atom anymore

#

First thing I do with any computer is replace the global monospace font because I’m OCD

frozen hazel
#

i need help with vscode

granite monolith
#

k

#

what's the issue

frozen hazel
#

my variables pane dissapeared

granite monolith
#

whats the problem with that

frozen hazel
#

for debugging

granite monolith
#

o

#

its not running, is it?

frozen hazel
#

not right now, but that doesnt help

granite monolith
#

hmm

#

why would the variables be showing when the program aint running

frozen hazel
#

its not that the variables dont show up, its the whole panel isnt there

granite monolith
#

and youre sure

frozen hazel
languid helm
#

Did you try focus on variables view?

granite monolith
#

that's the full pane

frozen hazel
#

that pic is running (paused)

granite monolith
#

hmmm

languid helm
#

control + shift + p to get the command thingy for vscode

#

Then type variable in there

granite monolith
#

wiat

#

o

frozen hazel
#

thanks!

#

it worked

granite monolith
#

yeah ok

#

i had another solution but ok

frozen hazel
#

i had no idea where to even start

languid helm
#

You can right click to select which onces you want to see.

granite monolith
#

was about to say so

frozen hazel
#

right click where?

granite monolith
#

watch

languid helm
#

on the words watch, variables etc.

granite monolith
#

just rightclick the bar and check variables

languid helm
#

And at the top of the debug window

frozen hazel
#

oh yeah i see now

#

thanks again

tight root
#

Do you guys mind if I ask an Excel question here? I don't want to bother the help channels and TPH is not really helping

#

I could do the trick easily with Python but the client wants an Excel file without VBA if possible 😦

lost rock
#

one of the off-topic channels would be more suitable for that kind of question. #tools-and-devops is for tools around Python, like package managers (e.g. pip, pipenv), version control (e.g. git), and IDEs.

tight root
#

ty

heavy knot
#

I uhh need help fast

#

so I uhh

#

forgot

#

that I needed to transfer files

#

but the thing is

#

its remote right

#

on my raspberry pi I need to transfer this one file to my current laptop

#

through code of course

#

google drive seems like the best way to do it

#

but uhh

#

I need it like right now

#

so I can't like spend time learning and stuff

#

help

#

idk what to do

languid helm
#

Do you have ssh access to the pi?

heavy knot
#

well its connected to git, and to the same internet

#

so like I can push and pull to it

languid helm
#

If you push with your laptop you could pull with your pi

heavy knot
#

but what do I push

languid helm
#

What do you want to transfer.

heavy knot
#

a file

#

from pi to laptop

languid helm
#

How are you accessing the pi?

heavy knot
#

what do you mean?

languid helm
#

What are you using to control the pi.

heavy knot
#

a tiny monitor

#

but its a zero, and if I try to upload it manually from my pi, it fails

#

its also clunky

#

I want a way to upload it from my computer, as I have already set it up so I can send commands from my laptop to the pi and make it run stuff

languid helm
#

A pi zero with a monitor hooked up, ouch.

#

Can you set up ssh on the pi?

heavy knot
#

dunno how and what that is (sorry I am newish)

languid helm
#

secure shell

#

A way to connect to the pi from another computer

heavy knot
#

yes please

#

the thing is I need this done in like 5 hrs so I hope you can get it working first and explain how it works right after

#

acutally more like 3

languid helm
heavy knot
#

ok thanks

languid helm
heavy knot
#

hey @languid helm

#

I just enabled ssh on the pi

#

currently on put the pi's IP address

#

where can I find it

languid helm
#

Type ifconfig on the pi

heavy knot
#

gotcha

#

thanksman

#

looking at the second link you sent me right now...

#

wait so

#

what now?

#

thats the file I am looking for

#

where is it?

languid helm
#

Hmm, not sure where it would go with putty, lemme check

#

what command did you use?

heavy knot
#

scp

languid helm
#

Is it in your user or download folder?

heavy knot
#

nope

languid helm
#

After looking around a bit it seems that on windows you would use a program call pscp, (putty scp)

#

it should come with a normal putty instal

heavy knot
#

ok

#

so i have to do it again?

languid helm
#

Disconnect from putty, this is done from the windows command line

heavy knot
#

I see

languid helm
#

control + D is the logout command

heavy knot
#

I uhh did it, and it gave me a help menu

#
PuTTY Secure Copy client
Release 0.71
Usage: pscp [options] [user@]host:source target
       pscp [options] source [source...] [user@]host:target
       pscp [options] -ls [user@]host:filespec
Options:
  -V        print version information and exit
  -pgpfp    print PGP key fingerprints and exit
  -p        preserve file attributes
  -q        quiet, don't show statistics
  -r        copy directories recursively
#

thats part of it

languid helm
#

yes, so the command is now

pscp pi@ip:/path/to/file c:\path\to\destination\filename```
heavy knot
#

gotcha

#

Local to local copy not supported @languid helm

languid helm
#

What did you input it like?

heavy knot
#

pscp pi@192.168.1.128/Desktop/profiles.json "C:\Users\henry\Desktop"

languid helm
#

Does it need the quotes?

heavy knot
#

should I try without them?

languid helm
#

C:\Users\henry\Desktop\profiles.json

heavy knot
#

just did so

#

still same result

#

without quotes

languid helm
#

You are missing a : after the ip

heavy knot
#

you didnt give me it in your thing

#

uhh

#

it says it the directory doesnt exists

#

but

#

it does

#

I checked spelling

languid helm
#

~/Desktop

#

~ means the home of the user

#

Without that it will look at the filesystem root.

heavy knot
#

still says cant findit

languid helm
#

Does it say which one it's not finding?

heavy knot
#

gives the whole path

languid helm
#

With both paths?

heavy knot
#

nope just the first

#

unable to identify ~/Desktop/profiles.json: no such file or directory

languid helm
#

can you try
pscp -ls pi@192.168.1.128:~/Desktop

#

had a small typo

heavy knot
#
Listing directory ~/Desktop
Unable to open ~/Desktop: no such file or directory
#

hmmm

languid helm
#

pscp -ls pi@192.168.1.128:~

heavy knot
#
Listing directory ~
Unable to open ~: no such file or directory
#

jesus why

languid helm
#

pscp -ls pi@192.168.1.128:/home/pi/Desktop

heavy knot
#

wait

#

I got it

#

pscp -ls pi@192.168.1.128:Desktop

#

lmfao

#

wow

languid helm
#

πŸ˜…

heavy knot
#

well I got it working

#

thanks man

#

but one more question

#

how do I run this command

#

but like

#

make a .py file do it for me

languid helm
#

you can use os.system but I"m not sure if thats the best way

#

Do you have acces to your router? You should give your pi a static ip, so it will always be .128

heavy knot
#

ok

odd lion
#

Sooo, when creating a new project in pycharm

prisma nexus
#

You should choose the base interpreter that matches the version of python you want to use.

odd lion
#

I know but what do I put for executable @prisma nexus

#

not the base interpreter part

#

for the executable should I put python.exe or pythonw.exe

prisma nexus
#

oh i just saw that

#

the pipenv executable? I'm not sure. I'm on linux and mine doesn't give me that optoin

fathom vault
#

Hi, is there a way to have a lockfile based on requirements as with using npm? I would like to avoid having to change virtual env for each project manually.

languid helm
#

pipenv has lockfiles.

#

But you still have to active it

fathom vault
#

@languid helm Ok, does that mean can avoid virtual env or it's just to lock versions?

languid helm
#

lockfiles are just files that contain the version number of packages

fathom vault
#

@languid helm So is there a way to avoid switching virtual env manually?

languid helm
#

There might be, I don't know, it hasn't come up for me yet. I just open the terminals side by side if I need more than 1 at a time

heavy knot
#

so I got pycharm

#

how do I install new themes and such?

#

in Atom I have the Neutron Dark theme

#

and I want it in PyCharm

tawny temple
#

There may be some that are plugins

#

Or you can just search online for themes

heavy knot
#

Hey, does anyone know how to use autocomplete on vscode without having python installed ?

#

I use python on WSL 😬

barren iron
#

@heavy knot One way to solve this would be using a general autocomplete extension.

#

They are pretty good, but not as good as the official python extension.

#

Otherwise, why not install python in WSL and windows?

heavy knot
#

I just did that pypeek

barren iron
#

😠

heavy knot
#

lmao, WSL Python running a script: 3.7s and Win Python: 4.3s

grizzled trail
#

yo guys, anyone here using visual code?

languid helm
#

Yes

grizzled trail
#

do you know how to customize an extension? I'd like to get help customizing Bracket Pair Colorizer v2, no idea how to do it :/

languid helm
#

what kind of modification?

grizzled trail
#

i'd like to use my own colors that i've been using a long time on visual studio entreprise with Viasfora, but yeah i don't know how to use my own colors, that's what the description says but idk what to do with this

languid helm
#

That description isn't very helpful indeed.

heavy knot
#

@grizzled trail Are you on win or linux ?

#

@grizzled trail nvm, go to Preferences > Settings

#

it will change to a json windows

#

there you can put that settings that says on the extension

#

this is the format

{
    "bracket-pair-colorizer-2.colors": [
            "Gold",
            "Orchid",
            "LightSkyBlue"
    ],
}
#

there you can use your own colors