#tools-and-devops

1 messages ยท Page 26 of 1

weary fulcrum
#

well, all env have the basic wrappers which takes some some space, whether you do it by yourself, or with pycharm

crystal depot
#

i see

weary fulcrum
#

do you have a requirement.txt file?

#

also, on your repo, you can add the venv folder to .ignore

#

and it won't send all those docs to your repor

crystal depot
#

oh true!

weary fulcrum
#

because I believe the env will break when moved anyway

#

unless you move it properly

crystal depot
#

hm, do you happen to have any good resources for virtual env, I think I have a grasp of it high level now

weary fulcrum
#

and then when you go to a different location, you can just reinstall the requirements

crystal depot
#

or should i just learn by using it and seeing how it breaks

weary fulcrum
#

yes, but some does help

crystal depot
#

oh, this looks good

#

thanks @weary fulcrum !

weary fulcrum
#

one other thing, you can look into virtualenvwrapper, makes life so much easier

#

and no prob mate

forest bay
#

Pycharm will automatically make virtual environments for you

crystal depot
#

I feel like my system level installs now are probably a gross mess between python 2 and 3

#

so virenv's will probably be really good for me

forest bay
#

Settings -> Project Interpreter -> gear icon -> Add -> Then select a new environment

#

You can use Pycharm's default folder or select your own

#

You can mange packages from the same area in settings

#

Or open a terminal and activate the environment yourself

#

On Linux: source /path/to/environment/bin/activate
On Windows: & \path\to\environment\Scripts\activate

crystal depot
#

the terminal part, is that how I can switch from using 2.7 to 3 (or vise versa) as my default python?

forest bay
#

You do that by editing the PATH environment variable

#

What OS are you on?

crystal depot
#

mac

forest bay
#

...ah

crystal depot
#

yeah ๐Ÿ˜ฆ

forest bay
#

The one platform I don't know

crystal depot
#

its similar to linux normally

forest bay
#

Also the one with the most convoluted Python ecosystem

crystal depot
#

yup

#

no worries, I didn't think it was that simple to switch between the 2

forest bay
#

It's a weird BSD fork that has some of the standard tools, and doesn't have the rest because they're GPL licensed or some BS (/rant)

#

This is why virtualenvironments are so handy

cunning fog
#

Is there a tool that automatically formats the code with pep 8 recommendations?

crystal depot
#

yeah, that's exactly why this is piquing my interest now

cunning fog
#

sorry for cutting XD

forest bay
#

Create a Python 2 one:

python -m pip install --user -U virtualenv
python -m virtualenv ~/py2env
source ~/py2env/bin/activate
#

Python 3:

python3 -m pip install --user -U virtualenv
python3 -m virtualenv --python=python3 ~/py3env
source ~/py3env/bin/activate
#

If you get an error about pip not being installed, do this: python -m ensurepip (possibly as sudo)

crystal depot
#

awesome, added it to my notes and will give it a shot

forest bay
#

Doing the -m thingy gets you around annoying issues, and --user means you don't have to use sudo

crystal depot
#

awesome, i'll man them too and read into it a bit more. Thanks!

forest bay
#

Cool

#

Python actually has a virtual environment tool built in, venv

#

It's called venv on Python 3 at least, dunno on Python 2

#

But it's a little more limited than virtualenv

#

Oh, apparently there isn't a Python 2 version of venv

crystal depot
#

bookmarked!

forest bay
#

It's a 3-5 minute read

cunning fog
#

it worked thanks @forest bay

forest bay
#

Awesome ๐Ÿ‘

#

Which one? @cunning fog

cunning fog
#

the yapf

#

but sometimes it doesnt work is strange

#

nvm, I just misused it Its working right now

forest bay
#

Cool

#

So yapf works well for you?

cunning fog
#

yes it did

forest bay
#

Nice, I'll have to try it again sometime. Ran into some issues when I tried, but also didn't have a whole lot of time to spend on it.

cunning fog
#

Yeah the thing is that you have to write a code instead of just clicking a button like autopep8, but the final result is much better for yapf imo

spiral pendant
#

I heard something cool today on TPTM called https://pyup.io/ it checks dependancies and stuff your project requires for known security vulnerabilities

heavy knot
#

That sounds wack, nice

vague silo
#

I've got a dependency that I've pulled from GitHub. How do I force pipenv to update it? pipenv install tells me the requirement is already satisfied, is there no way to pass the -U flag to pip? pipenv update doesn't do anything either.

dawn stump
#

try pipenv lock and then pipenv sync --dev

forest bay
#

Then try rebooting and installing gentoo

dawn stump
#

there's also pipenv clean
if it completely refuses then: pipenv --rm and pipenv sync --dev that gives you a fresh env

vague silo
#

that didn't work

#

what a great tool

#

time to clean everything

forest bay
#

Time for Gentoo you mean

vague silo
#

:gno:

#

thank you inver, full clean worked

heavy knot
#

how the fuck do i download emacs on windows 10

blazing prawn
forest bay
#

EMACS on Windows...that seems like heresy

lost rock
#

Forgive him, Father Stallman, for that he has sinned. ๐Ÿ™

glass kindle
#

Hello everybody ๐Ÿ‘‹๐Ÿฟ
I'm trying to lint my files with pylint that import arcade (game library built on pyglet), but linting an empty file that only imports arcade takes 3 minutes to run and I have no need to lint the library itself. Somehow I fail to find documentation on how to skip checking a module, without having to modify the module itself (which I don't want to have to do, it's not my module), despite intense searching. I assume there must be some super easy fix and that it's a super common problem ... but yet I fail. Help?
I'm doing this for a course and want my students to quickly lint their own files, so putting this into CI is not an option.

copper compass
#

@glass kindle Is the library also part of the project you're in?

#

Is there a physical separation somehow?

#

You can use a tox.inifile to exclude directories

#

well

#

assuming you're linting with flake8

#

the actual file you use depends on the tool

glass kindle
#

arcade is installed with pip so it resides in a completely different path.

#

I've been using pylint but if it's easy to do with flake8 I might use that instead

#

running flake8 on my files were instant, so looks like it's ignoring imported modules by default perhaps

copper compass
#

We usually recommend flake8

#

it should be ignoring imported modules, yeah

glass kindle
#

sweet. I'll use that instead then. I don't really care too much about specific features, just that students try using some sort of linting so flake8 will do the job. Thanks!

copper compass
#

If you find flake8 doesn't catch everything you want

#

it supports plugins

#

eg flake8-bugbear, flake8-import-order, etc

#

it's handy to look around at those

#

there's no configuration, you just install them and they work

glass kindle
#

good to know

heavy knot
#

pycharm automatically reformats file as the style guide says, why need flask8?

copper compass
#

Hahaha

#

First of all, no it doesn't

heavy knot
#

it does

#

mine

copper compass
#

nope

heavy knot
#

Ctrl Alt L

copper compass
#

it doesn't follow the usual style guides to that letter

#

it follows most of pep8

#

but not every project follows pep8 that closely

heavy knot
#

oh

copper compass
#

most linters - eg flake8 - are much more strict as well

#

you need to understand that linters are a smaller part of a larger toolchain

heavy knot
#

But the ide's file reformat settings?

copper compass
#

you set up a linter with your project's style guide so that you can enforce a consistent style across your entire project

#

usually, you use it as part of your CI process

#

so, someone pushes code

#

the CI server tests and lints the code

#

and rejects it if the code doesn't lint

heavy knot
#

oh

copper compass
#

it's also way easier than forcing people to update their IDE settings

#

and it can be integrated into the workflow - eg, with git hooks

heavy knot
#

cool then

copper compass
#

they're a very valuable part of the development process

#

although I agree that PyCharm's inspection tools are nothing short of amazing

#

you need to have more safeguards than that

glass kindle
#

linters are ๐Ÿ’ฏ the best part personally is how much I've learned by having bad coding practices pointed out to me

plain saddle
#

Octodude, is there a plugin or some other way to make pycharm check like flake8?

copper compass
#

@plain saddle unfortunately not

#

There's a ticket open to have inspections driven by external tools

#

but it's not in yet

plain saddle
#

Okay. Thanks for the info

winged karma
#

how can i make vscode always look at variables

coral temple
#

how can I make PyInstaller use Python 2.7.10 instead of Python 3.7 (I am aware that it doesn't support 3.7)? I'm using it on a script that was written in 2.7 and python --version returns Python 2.7.10, but when I use PyInstaller it always outputs "Python: 3.7.0"

copper compass
#

You need to make sure you use the pyinstaller installed to that interpreter

#

assuming it's a runnable module, python -m pyinstaller should work

#

@winged karma That question doesn't make sense, can you be more specific?

winged karma
#

spyder

#

spyder has a variale explorer

#

thats so goood to use

copper compass
#

VS Code isn't an IDE though

winged karma
#

how do i get that same one

#

oky

#

so why do some data scientists use vs code

copper compass
#

Because it's fast and light

#

There might be a plugin for it, but the developers do not intend on adding such a feature

coral temple
#

@copper compass thanks a lot! for some reason i derped and installed it with pip3 the first time around. now i'm getting a different error message but i think i can fix it.

copper compass
#

No worries

coral temple
#

@copper compass sorry to bother you again, but I was trying to add a folder with pyinstaller. So I did pyinstaller --add-data 'resources:resources' myscript.py and after I made the dist folder it contains both the executable as well as a folder called resources with all the files in it. But whenever I try running the executable I get "No such directory or file: 'resources/file.png'". I checked and resources/file.png is in the dist folder with the executable. Do you know what is going on? thanks!

copper compass
#

I actually don't use pyinstaller at all

#

but you might consider --onefile

coral temple
#

didn't work GWqlabsFeelsBadEh

heavy knot
#

does anyone know how to set up Eclipse style auto completion for parens/backets/quotes in Pycharm?Using Tab

civic hound
#

do you run that version of pycharm?

#

It is an Early Access Program

#

PyCharm 2018.2 EAP 6

#

this is the latest early access version of pycharm 2018.2

heavy knot
#

@civic hound thank you,just download EAP it work well

#

oh my bad,I didn't check my pycharm's version

civic hound
#

that is no problem, luckily your latest screenshot gave me the answer you needed

heavy knot
#

I have to read carefully next time,however,thanks for helping ๐Ÿ‘

uncut oxide
#

You can use Jetbrains toolbox to keep your apps up to date automatically

#

There's a free download the website, price is for the licences themselves not the toolbox software itself

copper compass
#

Yup, that is true

#

It's a bit crappy but it definitely does the job

woeful geode
#

Has anyone used the dyanmic django scraper app? any feedback?

near terrace
#

would you recommend pycharm to a beginner or should I use smth else

copper compass
#

It does a lot for you, probably too much for a beginner

#

bot.tags.get resources

rancid schoonerBOT
#
resources

It can be difficult to know where to begin when you are first starting out with Python. On our website, we have compiled a list of both free and paid resources that we recommend for learning and mastering Python.

It is hard to say exactly where you should start, as everyone will have a different prefered method of learning, but whether you like video tutorials, books or courses, you should find a suitable resource on our resources page

copper compass
#

There's a listing for IDEs here

feral willow
#

Alrighty, I'm using my dads computer now because I do not have my own. After commiting and pushing the README.md (followed the instructions from gitlab), my dads full name came up on the commit and it said it was "authored by " my dad. Is there a way to remove the last commit from gitlab or at least remove my dads name from there? ^^

#

@vague silo ^ ๐Ÿ˜›

vague silo
#

yeah, although it's somewhat complicated

#

if it's the last commit it's a bit easier

#

is it?

feral willow
#

Yes

#

I havent done anything since then

vague silo
#
$ git commit --amend --author="Beat Su <email@address.com>"
#

and then ```sh
$ git push -f

to overwrite the history on the remote
feral willow
#

@vague silo I ran the first command and it says "Please enter the commit message for your changes. Lines starting with "#" will be ignored, and an empty message aborts the commit."

#

And then my name<email>, the date and at last the commiter (Which now has my name, but still my dads name as well because it is his pc (dad@dads-macbook-pro.home))

vague silo
#

commit message != commit author

#

for commit message, you can just leave that for amending

#

it will use the message from the last commit by default

#

just re-run the command and remove that from the message there

#

message and author aren't edited in the same field afaik

feral willow
#

I didn't quite understand, but I cant write anything in the terminal now

#

Pressing enter only goes to the next #

sinful zinc
#

@feral willow let me guess, it put you in vim and you don't know how to use vim

feral willow
#

I dont know what vim is

#

It says ""Please enter the commit message for your changes. Lines starting with "#" will be ignored, and an empty message aborts the commit.""

sinful zinc
#

ok... type this key sequence exactly to delete everything and quit vim to abort the commit: ESC, ggdGZZ

feral willow
#

And everything is after # on each line

sinful zinc
#

then export EDITOR=nano and do the command again

feral willow
#

wut

#

Ok, so Escape key?

sinful zinc
#

yeah

#

and the rest as letters

feral willow
#

and hten ggd Shift+G and so on

sinful zinc
#

gg moves to first line, dG deletes to end, and ZZ saves and quits

feral willow
#

There

sinful zinc
#

(If you're interested in learning vim, I'd be willing to help, but it'd be easier to just use nano to solve your problem for now)

#

now run nano to check if it's installed, then export EDITOR=nano, then do the commit command again

feral willow
#

nano is installed

#

shall I write export EDITOR=nano after have written nano?

sinful zinc
#

exit out of nano and do that in your shell, yeah

#

then when you do the commit command it'll come up in nano instead of vim and you'll be able to edit it normally

feral willow
#

It says "Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?"

#

aaaa I dont understand any of this

sinful zinc
#

in vim?

feral willow
#

in nano

#

When I pressed ctrl+x

#

That was what it said to exit

sinful zinc
#

after the commit and writing the commit message?

#

just answer yes

feral willow
#

File name to write:

#

I dont want to save any file o.o

sinful zinc
#

it's the temp file for the git commit message

feral willow
#

This is really confusing

sinful zinc
#

it should already be filled in with /whatever/.git/COMMIT_EDITMSG

feral willow
#

I never wanted to change a commit message though

#

I only wanted to change the author of the last commit

sinful zinc
#

you don't have to change it - it comes up with the original commit message and you can leave it alone

feral willow
#

Or just delete the last commit all together with no traces

#

ok

#

So what do I write for "File Name to Write: "?

sinful zinc
#

...it's not already filled in?

feral willow
#

No

sinful zinc
#

i asked, is this after you did the export and commit command, or did you just run nano by itself

#

i can't see what you're doing

feral willow
#

Just nano by it self

#

And when I wanted to exit nano

#

Then it came up

sinful zinc
#

ok just don't save then, i said multiple times "if this is after you did the commit command" and you didn't correct me

feral willow
#

Oh sorry, I thought said I was only in nano

#

ok

#

I'm pressing ctrl+C to cancel now

sinful zinc
#

ok just exit and answer no then

#

sorry

feral willow
#

Ok there

#

back to terminal

sinful zinc
#

sorry i thought you were after that point since you were asking about the export command

feral willow
#

Do I write export EDITOR=nano now?

sinful zinc
#

yeah

feral willow
#

In terminal

#

ok done

sinful zinc
#

then run the commit --amend command again, and you should be able to just exit without changing anything if you don't want to edit the commit message

#

i just realized, there's a --no-edit option you could have done to skip all this

feral willow
#

Oh

#

Ok so I exited the nano editor thing after doing the export command

#

And ran the git commit --ammend command again with --no-edit

#

Maybe that wasn't the wisest choice

sinful zinc
#

well what shows up now in git log

feral willow
#

In git log theres a commit and it says the author is me

#

@sinful zinc Sorry for late answer, had to put my brothers to bed

#

do I just push now?

sinful zinc
#

yeah

#

if the commit with the wrong author was already pushed you'll need --force or --force-with-lease (the latter is safer in cases of shared repositories)

feral willow
#

ok, the last commit was pushed

#

So do I use --force or --force-with-lease? ^.^

#

I have also only ever used git push

#

Nothing else after that

#

Except for setting up repositories when it says git push -u origin or something

#

So shall I run git push --force-with-lease?

#

Or shall I add -u originor something in there?

#

@sinful zinc

sinful zinc
#

just use --force-with-lease

#

there's not a downside to it other than being slightly longer to type tbh

feral willow
#

so git push --force-with-lease?

sinful zinc
#

yeah that should work

#

-u was only really needed once and the whole point of it was to make it so you didn't have to put origin every time

feral willow
#

It said remote rejected

sinful zinc
#

did it say anything else

#

what exactly is the remote? github?

feral willow
#

remote: GitLab: You are not allowed to force push code to a protected branch on this project.

sinful zinc
#

do you own the project or is it a shared project? you'll have to go into gitlab and change the settings

feral willow
#

I created it myself

#

1 hour ago

sinful zinc
#

it might have made more sense to just delete the repository and start over if creating the readme is all you have

feral willow
#

Yes

#

Ok

#

But then the question is how to do that o.o

sinful zinc
#

there's probably some setting in gitlab to unprotect the branch

feral willow
#

Ok i managed to delete it

sinful zinc
#

or do that i guess

feral willow
#

I'm just starting over

sinful zinc
#

ok

feral willow
#

So now I want to create a respository and be able to commit to it with my name, not the one from the current user I am on or computer name

sinful zinc
#

ok

#

did you set up git config --global user.name and user.email ?

#

that's how you make it use the right one by default

#

(it can be a repository setting too, but it probably makes sense to set it globally)

feral willow
#

ok I have done that a while ago

#

I guess I will do it again just to be sure

#

Can I choose not to show an email instead?

sinful zinc
#

i mean, you can put anything you want in that field, technically, if you don't want your real email address, but i don't think you can just leave it blank

feral willow
#

Oh okay

sinful zinc
#

ok here

#

closest to blank you can get is to set it to '<>'

feral willow
#

Ok

sinful zinc
#

so if you really don't want to include an email address, just git config --global user.email '<>'

feral willow
#

Ok done

#

Now, to add, commit and push files, I just do git add ., git commit -m "Message"and git pushright?

sinful zinc
#

yeah

#

if you're going to use git add . you should list any files you don't want included (like *.pyc) in a .gitignore file

#

or you can git add specific file names instead

feral willow
#

Ok, I created a file called run.pyto test

#

I ran git add ., git commit -m "First test commit" and git push

#

Nothing is happening now though, it is just blank after

Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 258 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
#

Ok there it finally finished

#

Took 1 minute

#

Sorry ๐Ÿ˜›

#

Alrighty, thanks for the help

sinful zinc
#

yeah no problem

feral willow
#

Aaaa git is annoying me

#

I'm just going to go without it because I don't understand anything and if I make 1 mistake, I have to run 5 commands and change some settings to revert it

heavy knot
#

yeah

#

i know the feeling

lost rock
#

eh, basic git is just git add, git commit, git push and git pull, plus maybe a hand full of lines you need once to set it up, which you can copy from somewhere...

#

it's really not that hard as long as you don't do complex stuff

vague silo
#

@feral willow it's completely normal, i also felt overwhelmed with it at first. but once you understand it, it's really great to use

feral willow
#

@lost rock I think I've got that in place, but undoing commits and stuff, I find it easier just to delete the repository alltogether and start again

lost rock
#

๐Ÿ˜•

#

git reset

dawn stump
#

--hard

dusk elbow
#

Does anyone know why FROM python COPY ./src CMD ["python", "/src/get-pip.py"] in Dockerfile yields an error when trying to build

dawn stump
#

what's the error?

dusk elbow
#

Error response from daemon: Dockerfile parse error line 1: FROM requires either one or three arguments

#

Very new to Docker so don't know what to make of this

dawn stump
#

just to be sure, is it all one line, there or is your dockerfile actually three lines?

dusk elbow
#

it's all in one line

dawn stump
#

okay, I believe that's the issue, try it like this:

FROM python 
COPY . /src 
CMD ["python", "/src/get-pip.py"]
#

and mind the space between the . and /src

dusk elbow
#

Thank you!! it work

dawn stump
#

๐Ÿ‘

dusk elbow
#

After pulling mythril/myth and running docker run -v $(pwd):/tmp mythril/myth -x /tmp/contract.sol I get an error: C:\Program Files\Docker Toolbox\docker.exe: invalid reference format: repository name must be lowercase.

heavy knot
#

@dusk elbow Security analysis tool? @deep estuary didn't allow me to share my security analysis tool. bad people can use it too.

dusk elbow
#

uh it's public

deep estuary
#

kip, your security tool was a bruteforcer last time I checked

heavy knot
#

yeah. mine too

#

yeah.

deep estuary
#

Not going to be shared here kthnx

heavy knot
#

it is same harmful as his project

dusk elbow
#

but it looks like nothing in the repo is uppercase so i'm confused by the error

dawn stump
#

@dusk elbow I wonder if the real problem is actually the $(pwd). Seems you're running this on windows?

dusk elbow
#

Yes I'm running on windows, what should I use if not pwd?

dawn stump
#

try giving it the actual path instead, depending on what terminal emulator you're using pwd might not even be supported, it certainly isn't in standard cmd

#

however it does exist in powershell, but returns an object not a string (as powershell does with everything)

dusk elbow
#

so do I give the full path with C:// after docker run -v

dawn stump
#

if you are using the powershell terminal this might work: docker run -v "$(pwd)".tolower():/tmp mythril/myth -x /tmp/contract.sol but I am completely guessing right now :D

#

I suspect the problem is that pwd returns a string that contains some uppercase letters

dusk elbow
#

I'm using the Docker Quickstart Terminal

dawn stump
#

alright, then I have no idea what to do

dusk elbow
#

I can't even find the dir /tmp

dawn stump
#

what do you get if you pwd in the quickstart terminal?

dusk elbow
#

/c/Users/GuapFIEND/Docker Toolbox

#

I don't understand the /c/

dawn stump
#

that certainly contains some uppercase letters

#

looks like the quickstart terminal is some form of console emulator, so it's trying to be as linux-like as possible

#

which means C:\ gets turned into /c/

#

so the real issue then is that this: /c/Users/GuapFIEND/Docker Toolbox contains uppercase characters, and the docker command is not happy about that

dusk elbow
#

should I move Docker Toolbox to /c/ and rename to docker toolbox

#

and run from there

dawn stump
#

if you can, then maybe yeah, might be worth a shot

dusk elbow
#

Now I get the error docker: Error response from daemon: create $(pwd).tolower(): "$(pwd).tolower()" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path. See 'docker run --help'.

#

Same with docker: Error response from daemon: create $(pwd): "$(pwd)" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path. See 'docker run --help'.

dusk elbow
#

Running docker run -v cd:"C:\dockertoolbox\" mythril/myth -x contract.sol I get "docker run" requires at least 1 argument.

cunning fog
#

is there any tool/library other than matplotlib for graph building?

feral willow
#

Any tips for learning git or just play around and read the docs?

uncut oxide
#

spam git status

#

@cunning fog bokeh, though I've never used it personally

dusk elbow
#

ms paint

jolly silo
#

Depending on what you want to do, I think sucking it up and learning Matplotlib is worth it, even if only because most other plotting libraries are build on top of it.

#

Ya, Bokeh is an option. Pandas has a quick and dirty plot interface, if you're using pandas.

#

I've used seaborn quite a bit because it's pretty but I can still fiddle with the matplotlib knobs:

#

Git...

pastel plinth
#

is there a reasonable way to get native python, native pip, native bash on android or is that a pipedream? i've only seen sandboxes which doesn't really fit what i'd like an environment to be

#

i'd assume if there was it would be a root kind of thing

forest bay
#

Not AFAIK

pastel plinth
#

figured, i'll keep on looking but i think that's fundamentally counter to the "app" model

#

i have probably the most absurd reason for wanting it: in my go-bag, i keep an android tablet with the 65gb full text + pics wikipedia, and would appreciate if i could still do data science in a post apocalyptic world

#

gnuroot seems to be the closest thing i see, but it's still a sandbox, and maybe that's a good thing

heavy knot
#

guys somebody uses syntastic in vim to programming ?

vague silo
#

i use ALE, works pretty good

delicate gorge
#

although the installation is a bit more complex than hitting install in the atom package search

#

@heavy knot

dawn stump
#

wich one is better for python: pycharm or vs code?

hidden quail
#

Pycharm is a more fully-featured IDE, where VS Code is just an editor. If you want something lightweight and easy to dive into, use VS Code. If you're familiar with Python already and want professional-grade features, debugging, autocompletion, etc., use Pycharm.

feral willow
#

Hey

#

I'm on a mac and I had to run some commands in order to see files beginning on ".". Is this easy to revert back to?

#

@vague silo You helped me with showing the "." files before in #help-coconut :P

vague silo
#

Yeah it is, one second

#

try defaults write com.apple.finder AppleShowAllFiles FALSE

#

and then killall Finder

#

since you used TRUE to show all

dawn stump
#

thx Lord :3

rare moss
#

hey i need help setting up nginx in docker compose, I am getting this error when trying to complete the build
ERROR: Service 'nginx' failed to build: lstat nginx/nginx.conf: no such file or directory
but the Dockerfile is in the same dir with nginx.conf

lost rock
#

seems like it's searching for it in a subdirectory named nginx though

copper compass
#

I responded in devops already

lost rock
#

oh, I just noticed it got spammed over half the channels...

copper compass
#

Posted in multiple locations, kind of annoying, yeah

jagged spire
#

does anyone have a list of small python tools or utilities that added a lot of quality of life to their development process, or can someone explain to me a good programming workflow? I feel like that gets skipped over a lot I feel like there has to be a better way than notepad and powershell

delicate gorge
#

bot.tags.get("resources")

rancid schoonerBOT
#
resources

It can be difficult to know where to begin when you are first starting out with Python. On our website, we have compiled a list of both free and paid resources that we recommend for learning and mastering Python.

It is hard to say exactly where you should start, as everyone will have a different prefered method of learning, but whether you like video tutorials, books or courses, you should find a suitable resource on our resources page

delicate gorge
#

the editor part there

#

also git together with github and/or gitlab is very nice

#

@jagged spire

jagged spire
#

thank you! Sorry I apparently missed that while reading the intro ๐Ÿ˜ฆ

#

does pycharm have good integration with git? also, is there a way to use it with pipenv?

#

or integrate pipenv

delicate gorge
#

you shouldnt use pycharm as a beginner

#

but yes pycharm has extremly good integration with git

#

like all jet brains ides

#

and pipenv

#

well pycharm operates using virtualenvs so you could tell pycharm to use the virtualenv generated by pipenv

heavy knot
#

Nix - I'm a beginner and I use pycharm. Why shouldn't I, as a beginner?

delicate gorge
#

it does too much for you you should learn

#

because its important to know

heavy knot
#

could you give a few examples?

delicate gorge
#

all the autocomplete

#

all the imports

#

it does stuff for you you may not remember when you dont have it

#

and thats a problem because you cant always exepct pycharm to be present on your machine

heavy knot
#

I don't know anything it 'does for me', as such.

#

the autocomplete, sure it suggests what you can type from there, but itsn't always applicable.

delicate gorge
#

im sure lemon or gdude can tell you a lot more

#

im just repeating their words

#

ยฏ_(ใƒ„)_/ยฏ

fading egret
#

I think it's good that pycharm rants about PEP compliancy for you

#

Also Ctrl+B is a godsend (vscode has F12 but it doesn't go as deep)

#

Also docstring autoformat

jagged spire
#

I have been doing python dev for a while now so I am looking for something to make development not as much of a pain in the ass

#

fortunately I got pycharm for free with their student license

upbeat temple
#

pyhcarm is perfectly fine to use as a beginner, thats what i used initially. Although i do use vscode for quick projects.
But pycharm will setup git, publish it to github, sort out virtualenvs (or in the latest release pipenv) take care of .env files, sort out .gitignore.

#

it does a LOT of things for you

copper compass
#

PyCharm Edu is good for beginners

#

But it's widely accepted among most communities that you start with an editor and not an IDE

proper dew
#

I began with PyCharm as well

#

I won't use anything else lol

#

I can see it being overwhelming

#

For someone ENTIRELY new to programming

copper compass
#

It's not about how overwhelming it is

blazing prawn
#

I don't agree with Zed Shaw on much, but he gets one thing right in the LPTHW introduction:

The one skill that separates bad programmers from good programmers is attention to detail. In fact, it's what separates the good from the bad in any profession. You must pay attention to the tiniest details of your work or you will miss important elements of what you create. In programming, this is how you end up with bugs and difficult-to-use systems.```
copper compass
#

It's about learning the fundamentals without a tool that does things for you

blazing prawn
#

well, mostly right. I wouldn't call it "the one skill"

#

but yes to that and what G said, using tools that spot your mistakes for you hampers your ability to spot incorrect syntax and idioms without the aid of those tools

#

that's a large part of the reason we strongly advise that new programmers train their eyes before they switch to productivity enhancing tools

jagged spire
#

I think being lazy is a good thing. getting rid of tedious things is almost always good

blazing prawn
#

it's sort of a give a man a fish/teach a man to fish situation. PyCharm is a fishing machine that does a lot of the hard work for you, but if you find yourself without the fishing machine, the fishing machine breaks, or the fishing machine starts catching the wrong fish, it would be good to be trained as an expert fisherman so you could handle the problem yourself

copper compass
#

I like that analogy

jagged spire
#

yeah that works

upbeat temple
#

hell i only just learnt basic stuff a few weeks ago, because i just used VSCode exclusively for a while

#

so i agree, but someone did say that, it can add even more confusion to an already confusing start

cunning fog
#

how I can make pycharm autocomplete methods from a new library I downloaded?

#

it works for some of then but not all

young olive
#

I have set up Sublime. I have made a factorial program. the program works fine as I have used it on other IDEs. On Sublime when I input a number and press enter nothing happens.

heavy knot
#

Perhaps you should request support in the sublime text server

young olive
#

wheres that?

uncut oxide
#

Sublime text doesn't support this I don't think

#

You can use SublimeREPL

young olive
#

So I can't input in the bottom box? why?

uncut oxide
#

I think it only mimics stdout

#

so the stdin is going who-knows-where

livid schooner
#

which editor should i use? i've been using sublime just cause i already had it when i started, but is there anything i should consider that looks/works better for python specifically?

hushed orbit
#

Depends on what you like

#

bot.tags.get resources

rancid schoonerBOT
#
resources

It can be difficult to know where to begin when you are first starting out with Python. On our website, we have compiled a list of both free and paid resources that we recommend for learning and mastering Python.

It is hard to say exactly where you should start, as everyone will have a different prefered method of learning, but whether you like video tutorials, books or courses, you should find a suitable resource on our resources page

hushed orbit
#

There should be a list of editors suggested on the resources page

livid schooner
#

thanks ๐Ÿ‘Œ

#

does visual studio code allow for running programs within the editor?

hushed orbit
#

Yeah, just have to install the code-runner addon

#

Which is straight forward

livid schooner
#

what i'm doing rn with sublime is writing the thing, then using cmd, but it's pretty wonky

hushed orbit
#

sublime has a code runner as well

livid schooner
#

oh?

hushed orbit
#

iirc it's something like ctrl + b?

dawn stump
#

ctrl+b for me, on windows

hushed orbit
#

That would be it

livid schooner
#

ctrl + g just opened up a weird white thing at the top

#

pretty sure that's not it lol

hushed orbit
#

Try b, I just remember it being in that general area

livid schooner
#

yeah, that worked. thanks

dawn stump
#

ctrl+g jumps you to a specific line if you type in a line number

livid schooner
#

ohhhh, that makes sense. thanks lol

dawn stump
#

ctrl+p and you can jump to a specific file if you type in the file name and it's in your project list

#

handy dandy

livid schooner
#

gosh golly darn

dawn stump
#

inorite

livid schooner
#

but uh, the code runner doesn't seem to let me input

dawn stump
#

no it only shows output

livid schooner
#

then where can i input things for the script?

dawn stump
#

I don't know actually

#

I guess executing in sublime is not that useful in this use case :(

livid schooner
#

:/

#

then i guess i'll have to either get vsc or keep doing my stupid method

hushed orbit
#

You could just simulate an input with hardcoded input.. but probably not as favorable

#

I don't think vsc likes input either

livid schooner
#

crap

#

that kinda invalidates the point of making a code runner lol

#

then i'm not sure which editor to use

hushed orbit
#

Can probably change it somehow given how this message is formulated. I just never bothered to find out

#

oh right, vsc as built in terminal

livid schooner
#

and code runner?

hushed orbit
#

Code runner would work if you're testing things with hardcoded inputs and prints etc

#

While you can test the rest with the built in terminal

livid schooner
#

wait, so

#

can i run a program with the code runner and use the terminal at the same time and use it to handle inputs?

hushed orbit
#

The terminal works just like cmd or any other os terminal

#

And takes inputs

livid schooner
#

yeah, so i can use it to take inputs while running

hushed orbit
#

In the terminal yes.

#

Using the code-runner addon it will just continuously wait for an input you can't provide

livid schooner
#

then what's the point of it?

hushed orbit
#

Running anything that doesn't include input ๐Ÿ˜…

livid schooner
#

oh, so you mean boring programs ๐Ÿค”

hushed orbit
#

Ehm, subject to own opinion I guess

livid schooner
#

i mean

#

you can make something fun that doesn't require user input

hushed orbit
#

Python can do a lot without the use of a userinput

livid schooner
#

but you're not gonna get the interactive aspect from it

copper compass
#

And there are other forms of input anyway

hushed orbit
#

That too

copper compass
#

I mean, when was the last time you opened an application and it asked you to type into a terminal?

#

Does your browser do that? :P

livid schooner
#

but your browser isn't gonna do much if you don't tell it what to do after booting it up

#

also, does sublime have any way of getting the terminal?

dawn stump
#

I bet there's an package you can install to get that

copper compass
#

Yeah but you don't interact with your browser by typing text commands

livid schooner
#

it's still user input

dawn stump
#

why are you hating, interactive cli tools are neat

copper compass
#

yes, but it's not input()

hushed orbit
#

You know what, just use some module like tkinker and make your own input terminal that would work with code-runner weSmart

livid schooner
#

๐Ÿค”

#

i don't think i'm quite there yet

#

i spend half an hour earlier trying to make a program that removes decimals from a number, before i was told by a guy in another server you can just int(float(var))

#

still fun to do lol

dawn stump
#

and it's a way to learn too

livid schooner
#

yeah

#

i felt pretty smart when i figured out the math needed to do it xd

hushed orbit
#

That's an achievement in itself, to find the alternative ways of doing things

livid schooner
#

absolutely

#

that's what i like about coding, you've gotta think outside of the box and find solutions

hushed orbit
#

And if that doesn't work, there's always a hacky way to do it ๐Ÿ˜œ

livid schooner
#

๐Ÿค”

hollow inlet
#

Hello

heavy knot
#

hey guys, i have a quick noob question about git which i suppose fits into here

#

does 'git clone ...' autoupdate?

copper compass
#

No it doesn't

#

You have to git pull whenever you want to pull the changes

heavy knot
#

I'm looking and it seems you need a service hook,

#

is this correct?

dawn stump
#

what are you trying to do, and can you link what you're looking at?

heavy knot
#

i have some code hosted on pythonanywhere

#

i cloned the repository in a terminal on the service, i want to be able to auto deploy whenever i push to the repository from my machine

#

it seems a bit involved, i think i'll be fine if i simply git pull each time i push to the repository

dawn stump
#

actually it's not so bad, it doesn't have to be super complicated, I run a small flask app that acts as my deployment starting point, that does exactly what this article you linked do, but using python instead of php obviously

heavy knot
#

i have a small flask app as well lol

dawn stump
#

you can basically set up github (or gitlab, or even bitbucket depending on what you're using) to send a webhook to the deployment app and have it pull the new code

heavy knot
#

where would the payload url be?

#

the domain name of the app?

dawn stump
#

yeah

#

to make it even more pro looking you could even set up CI with travis-ci and build and test your code, and have that send a custom webhook to your deployment api

#

are you familiar with using CI?

heavy knot
#

nope, i've never used CI before

#

never even heard of it ahaha

#

my app is only a personal project, i think using CI would be a bit overkill in my case

dawn stump
#

CI is super useful and it's well worth learning how to use, I can't recommend it enough, even for personal projects

#

and for coders who want to look favourable for potential employers it's a must

#

I'd be happy to help you get started if you want, a fair few people have already gone down this road too, so there's plenty of people here who can assist you

lapis hazel
#

listens in

dawn stump
#

(plus it's fun, but I am biased because CI is my job)

hushed orbit
#

listens in

dawn stump
#

:D

#

I feel like I should set up a reference repo

#

in fact I think I'll just do that now, but I gotta finish my lunch first

delicate gorge
#

It's 2 pm

hushed orbit
delicate gorge
#

How are you having lunchs-+

dawn stump
#

I had a big breakfast, wasn't hungry until now :D

heavy knot
#

CI looks pretty nifty

dawn stump
#

for my next trick, I'll convince Viibrant to use docker \o/

heavy knot
#

what's a docker?

#

lmao jkjk

#

i've heard of it but never used it

hushed orbit
#

I'm just going to point out, all this is alien to me.

dawn stump
#

I'm not being super serious, though docker is also very neat, however not super important right now, but CI is definitely the next step in your coding career

heavy knot
#

i'm only starting out

#

im but an ignorant wee laddy

dawn stump
#

well you've come to the right place, cause ya'll gonna learn you some

heavy knot
#

hell yeah

#

gib knawledge pls

#

i want to become a data scientist

hushed orbit
#

peepoCoffee Ready to learn

heavy knot
#

that's where my interests really lie but i'd like to touch up my general programming

dawn stump
#

any who, give me a minute to set up a repo and stuff, and then we can talk about what's going on

heavy knot
#

cheers dude

dawn stump
#

no worries

#

almost ready

heavy knot
#

cool

#

so a simple flask app?

dawn stump
#

yeah that's always an easy thing

#

now I just need travis to actually build, which it for some reason does not want to do right now

heavy knot
#

yeah

#

does it host your code for you?

#

or do you need another service?

dawn stump
#

ah I've named the travis file incorrectly

heavy knot
#

actually it doesn't

#

oop

dawn stump
#

confused it with gitlab ci's build config naming convention

heavy knot
#

it's doing a build!

dawn stump
#

in a minute we should see the build either pass or fail depending on whether my lint and unit test are good or not

heavy knot
#

we're good, nice

dawn stump
#

in travis it collapses output to make the run easily digestible, you can expand the output using the small grey arrows on the left hand side

#

there's a line that says $ bash scripts/deploy.sh

#

if you expand it, you'll see it says "deploy"

#

in the repo itself you'll find the .travis.yml file

#

this file is what tells travis what to do

heavy knot
#

how are dependencies sorted out?

dawn stump
#

on line 24 and 25 in the travis file, you'll see the line - bash scripts/deploy.sh

#

python packages or are you thinking databases and other services?

heavy knot
#

packages

#

I see the pipfile

#

how is that linked to the travis yml?

#

oh actually I assume it's the command on line 18

dawn stump
#

exactly

heavy knot
#

please carry on

dawn stump
#

so the end goal is getting the lint and test to pass and finally deploy the code

#

so line 24 says "after_success" which tells travis only to run the deploy script if nothing fails

#

a failure is determined by commands returning exitcode 0

heavy knot
#

so you put whatever stuff inside the deploy.sh to deploy it to whatever platform i assume

dawn stump
#

we run the lint and test through pipenv commands, not because it's the best idea, but because it's a simple way to ensure we're inside the virtual environment created by pipenv

#

that's correct

heavy knot
#

nicee

dawn stump
#

the linter I'm using is flake8, but you can essentially use whatever you prefer

#

the tox.ini file in the repo determines what pep8 rules to follow and other things

#

the unit tests use pytest, and the unit testing is pretty straight forward

#

it runs the flask app and makes a mocked request to the root endpoint and expects it to return status code 200 and the other test expects it to return a dictionary object {"hello": "world"} which should pass, otherwise flask would be horrific

#

so those are the very basic

#

finally the readme contains the little badge, and it's a lovely little thing that'll tell everyone who looks in your repo that your code is solid

#

however it appears didn't add it correctly

heavy knot
#

the readme?

dawn stump
#

the badge in the readme

hushed orbit
#

I'll openly admit this is above me ๐Ÿ˜…

heavy knot
#

me too but we gon learn

dawn stump
#

I know it's a lot to take in at first

hushed orbit
#

I haven't used most of the other tools mentioned either, so i can't draw any connections

heavy knot
#

you could still work it out though

hushed orbit
#

I am but a simple programmer feelskawaiiman

heavy knot
#

bring the general concepts together

dawn stump
#

all these tools, flake8, pytest, pipenv are in my opinion foundational for every python programmer

hushed orbit
#

That's why I'm still here

heavy knot
#

good good

hushed orbit
#

They're on my list of things to go over

#

Anyways, don't mind me. Do continue

dawn stump
#

alright so, if you wanna try all of this, I urge you to create your own repos, connect your github account to travis

#

and then try a minimum thing

#

and a minimum thing can look like this:

# mything.py
print("yey")
# .travis.yml
language: python
python:
  - "3.6"

script:
  - python mything.py
heavy knot
#

actually i have a question

#

what's the best free host to deploy to that integrates with travis?

#

i'm thinking heroku but that has a cap on the number of hours per month

dawn stump
#

I'm not sure actually, I've always paid for a VPS and I like to make my own automation, so I deploy everything to those

heavy knot
#

oh ok

#

yeah i'll go for heroku for now then until i see something else

dawn stump
#

cool, I've never actually tried heroku, but I like the idea of it

heavy knot
#

actually i've just found this repository for using pythonanywhere

dawn stump
#

any ways, that's kind of it, feel free to ping me any time btw, I might not always be around though

heavy knot
#

thank you for your help today

dawn stump
#

excellent, and this dude (bar pipenv) does everything you need too

heavy knot
#

really bloody useful

#

oh actually i cant use pythonanywhere

#

ssh isn't supported for free accounts rip

#

is Slack worth using as well?

#

sentry**

#

i meant sentry whoops

dawn stump
#

it definitely is if you are writing huge applications and have a big team deploying code every day

heavy knot
#

i'm guessing not for personal use then

dawn stump
#

I say, try it

#

it's worth learning too

heavy knot
#

also actually i'm not going to use flask

#

i'm trying to deploy a telegram bot and i was using flask for posting but i've just realised that the bot library has webhook functionality built in

dawn stump
#

this is all pretty general, you can write anything you want

heavy knot
#

oh ok

dawn stump
#

travis can do it all

#

you just apply the glue

open mason
#

I'm new to Python, going on 3 months. I'm looking for some advice on IDE choices. I know lots of people have opinions of which ones are good or less-good.
Right now I'm using either Eclipse with PyDev or IDLE. I like IDLE better, but it's missing a few options I keep going back to Eclipse for (or I haven't noticed the options are available.) In general I don't like Eclipse; I have a strong K.I.S.S. mentality and my unusual background in programming didn't expose me to lots of the functions an IDE like Eclipse has.

First, I like the outline explore window for hopping around the file. Second, I like the passive error checking. I'd rather not have to execute the code to find out I forgot the ":" at the end of an if statement.
A couple clarifying things: I am writing scripts for a stream chatbot, which means I am not writing .py files which are their own executable, and it has to be good for Python 2.7

lost rock
#

Normally I'd recommend PyCharm (as many would do here), which is a great IDE with many features, but as you're looking for something more simple, that might not be your cup of tea. I'd still suggest you to have a look at it if you don't mind.

#

IIRC we have a list of recommended IDEs and editors on the pydis website.

#

bot.tags.get resources

rancid schoonerBOT
#
resources

It can be difficult to know where to begin when you are first starting out with Python. On our website, we have compiled a list of both free and paid resources that we recommend for learning and mastering Python.

It is hard to say exactly where you should start, as everyone will have a different prefered method of learning, but whether you like video tutorials, books or courses, you should find a suitable resource on our resources page

open mason
#

i thought I remembered reading you had that resource somewhere, but I was mis-remembering it to be a channel. Thanks @lost rock

#

I see the bot responded in channel, but it has no message. Was there supposed to be something there?

barren iron
#

@open mason vsCode has been great for me

heavy knot
#

vscode is very nice

#

sublime text is good as well if you have other stuff open because it's lightweight, it's not an ide though

ruby cairn
#

Anyone here know about vscode tasks. I want to run a task that can send a command to the integrated terminal but am struggling as a lack of documentation and simple examples

#

Would it be better to do it as an extension

barren iron
#

This has started happening after using the new VScode beta feature

rugged creek
#

well

#

i can't find it

clever raven
#

okay so pycharm has a search bar in the top left of the settings menu

#

suuuper useful

rugged creek
#

it does?

clever raven
rugged creek
#

where is this

clever raven
#

search for "theme" and presto!

rugged creek
#

how do I access this

clever raven
#

you just open settings from File - Settings (or CTRL ALT S)

#

and then the search bar is in the top left

#

search for theme and click appearance and you should see your themes there.

clever raven
#

huh, what version is that?

rugged creek
#

2017.1

clever raven
#

anyway all the good themes are plugins so you might as well search for plugins

rugged creek
#

lol

#

where do i find the plugins

clever raven
#

oh you might be in the wrong place there

rugged creek
#

where is the right place

clever raven
#

you're in the Default Preferences

#

it should just be Preferences (or Settings on the version I'm using)

rugged creek
#

default settings

clever raven
#

not the defaults

#

try CTRL ALT S

rugged creek
clever raven
#

I'm using 2018.1.4 on linux, and I frankly have no idea where it is on mac.

rugged creek
#

maybe i should update

copper compass
#

double tap shift and type theme

#

just in the editor

rugged creek
copper compass
#

yeah, just realised it needs to actually be settings

#

I dunno where it is on mac either tbh

#

I'm on 2018.1.4 as well

rugged creek
copper compass
#

click more at the bottom

rugged creek
#

i did not see.

rugged creek
#

nope

copper compass
#

oh, apparently it's called Preferences on mac? wut

clever raven
#

none of those five methods worked?

#

yeah I don't really get why they would do that

rugged creek
#

cmd + , brings up shelves

#

so it is.

copper compass
#

is there a PyCharm menu with Preferences in it?

clever raven
#

he found it

rugged creek
#

no i didnt

clever raven
#

oh

rugged creek
#

thats a py file

clever raven
#

you said so it is.

#

okay

rugged creek
#

i lied

#

turns out.

clever raven
#

what about the wrench thingy

rugged creek
#

no wrench thingy

#

i told you

#

cmd + , leads me to shelf

copper compass
#

Maybe you need to update.

clever raven
#

man, your pycharm sounds all kinds of fucked.

#

just update it

copper compass
#

you're using a PyCharm that's like

rugged creek
copper compass
#

over a year old

clever raven
#

yeah I didn't realize it was that different, though

#

but just grab the latest version

#

it couldn't hurt

copper compass
#

yeah

hushed orbit
#

While on the subject of themes

rugged creek
#

why are you not using atom

copper compass
#

You can set up your own colour themes

#

if that's your thing

#

but I prefer the material theme plugin

hushed orbit
#

Can I modify icons as well?

copper compass
#

you can, yeah

#

although why you would do that by hand, I dunno

clever raven
#

you could probably make it look reasonably similar to that, yes.

copper compass
hushed orbit
#

I like cute high saturation icons

clever raven
#

all colors can be fucked with

rugged creek
#

ok

#

i believe i've updated

copper compass
#

hey @hushed orbit, do you like COLOURS?

hushed orbit
#

Perhaps

#

Am i going to be blown away?

rugged creek
#

2018.1

copper compass
rugged creek
#

hot new logo

copper compass
#

Sounds about right

rugged creek
#

OH LOOK THERES A WRENCH ICON

#

WHAT A COINCIDENCE

copper compass
#

dun dun dun

rugged creek
#

still goes to shelf

hushed orbit
#

Naijs, just have to turn up that saturation a few notches HappyHug

copper compass
#

You could wipe your settings and start again if you managed to break it

rugged creek
#

actually i think it was there before too

#

ok lol

#

still can't find it

#

what the fuck

#

ok

copper compass
#

@hushed orbit Take a look at the Rainbow Brackets plugin, and also "semantic highlighting" in the settings

rugged creek
#

thee has found the themes

#

but theres only 2

copper compass
#

semantic highlighting assigns colours to variables by name

rugged creek
#

ooh material looks nice

copper compass
#

and rainbow brackets.. well..

rugged creek
#

im definitely going with material

copper compass
#

colourizes pairs of brackets

hushed orbit
#

lol, neat

rugged creek
#

what do I after I've downloaded the theme

#

@copper compass also, how do I get rainbow brackets like yourself

copper compass
#

Install the plugin and restart pycharm

#

That's a plugin

#

it's called rainbow brackets

#

Once the material theme is enabled, you'll get some new buttons in the toolbar

rugged creek
#

I have a bunch of .jar files

hushed orbit
#

I should really get into the features of pycharm now that I like the look of it, at least before my pro runs out

copper compass
#

No, forget that

#

install plugins from the settings

#

there's a plugin browser

clever raven
#

oh shit I didn't know about rainbow brackets but that's lit

rugged creek
#

where is it

copper compass
#

settings -> plugins

clever raven
#

type plugins. go to browse repo

copper compass
#

that'll let you configure it

#

install icons and such

#

for some reason my screenshot keybinding does nothing when I have a menu open, but yeah

#

it's in there

rugged creek
#

ok

#

i got it

#

i think

#

still can't select it

#

oh

#

restart

#

yes, of course

#

ok what the hell

#

this is not what i installed

uncut oxide
#

That's the default

#

No wait it isn't

copper compass
#

I told you

uncut oxide
#

You click on the icon that has 2 circles within each other

copper compass
#

click the toolbar buttons

uncut oxide
rugged creek
#

harha

#

yes

#

wait

#

is this it

#

yes

#

harha

#

i have achieved holiness

#

now i want more power

#

now i want

#

RAINBOW BRACKETS

hushed orbit
#

Where do i change colors exactly?

copper compass
hushed orbit
#

Oh, i thought it was part of the Material plugin

#

Wow, ok. I can use a color picker from pycharm on my vsc. Perfection YesLikeThis

copper compass
#

:>

rugged creek
#

what if you have 6 brackets

hushed orbit
#

Where do I set line number color, and the color of open files? I've managed to change most other colors by now

copper compass
#

Search for 'em

hushed orbit
#

I tried, that's where i got most other pallets

#

Welp, line number was not there last time i tried.

barren iron
#

@copper compass best. feature. ever

copper compass
#

It's great, isn't it? :P

barren iron
#

Why did i never know about it!

#

xd

hushed orbit
#

Well, actually. I found line number. But I am not allowed to check background color for it?

barren iron
#

so good

copper compass
#

@hushed orbit you mean the gutter?

#

that's the name of that I think

hushed orbit
#

Eventually found that as well ๐Ÿ˜… , Now i'm stuck on half of the project tree

copper compass
#

hm, not sure about that

hushed orbit
#

Might have to swap colors around then.. right now all bg colors just blend together

upbeat temple
#

rainbow brackets are beautiful!

barren iron
#

^^^^^^

spiral pendant
#

how do i get pycharm to actually update my files on git

#

ive tried commit and push and neither seems to update the repo

uncut oxide
#

Push should, well, push, the files to your upstream repository (aka the thing you see on github)

spiral pendant
#

Weird, push worked that time

plush tree
#

Dropping this here. Lets you use your Python code for IOS, Android, Windows, OSX, Web Apps, etc.

dense mist
#

hi guys, why might something install as an egg with python setup.py develop

#

instead of just linking to a packages directory?

crystal depot
#

@barren iron do you use a custom theme or something else. I love the look of yours

barren iron
#

@crystal depot it is @mint briar s deadly combo

#

Ayu dark theme with Fira code

#

Them rainbow brackets

#

It looks deadlyyyy

crystal depot
#

cool iโ€™ll look up ayu dark mode

barren iron
#

Does this mean I can use my scale way server as a full OpenVPN host?

#

(taken from the scaleway info page)

heavy knot
#

is Atom good for python?

lapis hazel
#

atom is good as an editor, but it uses electron so it'll probably use a lot of memory

#

i find that VSCode and sublime 3 are recommended more than atom

#

vscode is getting more python features, but sublime is simpler but is still very useful

vague silo
#

hey @heavy knot, welcome to our server!

#

imo there is no "good" or "bad", just use what you're happy with, what's important is that you have the tooling to run python code and if you're using a text editor then you most likely already have that in another place

heavy knot
#

hi

digital stream
#

@delicate gorge You were saying ...

delicate gorge
#

ew

#

a ping

digital stream
#

lul

#

why is neovim better than vim

delicate gorge
#

first of all neovim has ofc integration for basically all languages implementing its protocol

#

so its a lot easier to make plugins for it

#

=> more plugins for neovim exist + neovim is backwards compatible with all vim plugins i tried

digital stream
#

Ugh.. I cant relate

#

They are useless to me

#

I just code and save

#

ยฏ_(ใƒ„)_/ยฏ

delicate gorge
#

then ofc

#

there is async

#

but

#

thats plugin related again

#

tbh its mostly plugin related

#

if you are working without plugins they are pretty equal

brazen cedar
#

anyone using scons?

#

please tell me gentle guide for scons

delicate gorge
#

New pycharm out bringing pipenv integration to us folks

vague silo
#

nice

copper compass
#

Oh, nice

barren iron
#

Any idea what causes this?

#

I'm using "python.jediEnabled": false

plush tree
#

Well I'm no science rocket, but it looks like Intellisense can't find that module

dense mist
#

hey guys, i'm having a little trouble using git rebase

#

i'm trying to rebase to master, but any possible chain of commands I can think of I get fatal: needed a single revision

sinful zinc
#

what specific commands are you trying

dense mist
#

git rebase origin, git rebase origin master, git rebase (ticketname)

sinful zinc
#

git rebase origin/master

#

though is that really the error you're getting with the ticket name (tag?)

dense mist
#

i think I might be doing something pretty dumb - origin refers to the specific name of my checkout branch right?

sinful zinc
#

origin is the name of the remote repository

dense mist
#

my branch name is tickets/number

sinful zinc
#

i.e. github or whatever you cloned from

dense mist
#

wait

#

when i git rebase origin/master, do I use "ticket/number" as origin

#

or literally the word origin

sinful zinc
#

literally the word origin

#

assuming you have an origin remote repository

dense mist
#

git status
On branch tickets/DM-15004
Your branch is up to date with 'origin/tickets/DM-15004'.

sinful zinc
#

if not you need to explain your situation more clearly

dense mist
#

git rebase origin/master
fatal: Needed a single revision
invalid upstream 'origin/master'

sinful zinc
#

is there a master branch?

dense mist
#

yes

#

if there isn't then I've done something very wrong

#

lol

sinful zinc
#

git log --all --decorate --oneline --graph, do you see origin/master etc?

#

git show-ref - do all lines begin with "refs/heads", "refs/remotes/origin", "refs/stash", "refs/tags" etc? sometimes weird errors from reference name come from accidentally having created a reference that's not in the proper namespace

#

is there a local master branch? if you do git checkout master and git pull what do you see

dense mist
#

lots of refs/tags/

sinful zinc
#

is refs/remotes/origin/master present

dense mist
#

huh, no it isnt

#

wtf did i do

sinful zinc
#

are any refs/remotes/origin present?

#

or any refs/remotes

dense mist
#

is present

sinful zinc
#

try running a git fetch origin master

#

er,