workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
afaik poetry install `dev` dependencies by default
2019-01-25T10:57:10.462200
Jimmy
pythondev_help_Jimmy_2019-01-25T10:57:10.462200
1,548,413,830.4622
4,121
pythondev
help
and there might be some stuff cached differentky
2019-01-25T10:57:27.462400
Jimmy
pythondev_help_Jimmy_2019-01-25T10:57:27.462400
1,548,413,847.4624
4,122
pythondev
help
I believe it also resolves the dependency graph completely. dunno about pipenv.
2019-01-25T10:58:02.462600
Karoline
pythondev_help_Karoline_2019-01-25T10:58:02.462600
1,548,413,882.4626
4,123
pythondev
help
There's no dev deps in this project. Could be caching, or it could be a full install _is_ slower. It's a lot faster to add/remove a package, though.
2019-01-25T10:58:03.462800
Melynda
pythondev_help_Melynda_2019-01-25T10:58:03.462800
1,548,413,883.4628
4,124
pythondev
help
None
2019-01-25T11:19:46.463000
Keva
pythondev_help_Keva_2019-01-25T11:19:46.463000
1,548,415,186.463
4,125
pythondev
help
could somebody explain why does first alpha variable isn't the same as the one declared inside for loop?
2019-01-25T11:20:24.464000
Keva
pythondev_help_Keva_2019-01-25T11:20:24.464000
1,548,415,224.464
4,126
pythondev
help
i thought variables declared inside functions are visible throughout that function
2019-01-25T11:21:12.464200
Keva
pythondev_help_Keva_2019-01-25T11:21:12.464200
1,548,415,272.4642
4,127
pythondev
help
kinda weird, can't wrap my head around this
2019-01-25T11:21:25.464600
Keva
pythondev_help_Keva_2019-01-25T11:21:25.464600
1,548,415,285.4646
4,128
pythondev
help
That first one `alpha = 0.0` is unnecessary unless there is a location later in the code that you don’t show that uses `alpha`. If there is you need that first line so that `alpha` is initialized when used later (As that `if` statement might not run)
2019-01-25T11:22:38.465800
Clemmie
pythondev_help_Clemmie_2019-01-25T11:22:38.465800
1,548,415,358.4658
4,129
pythondev
help
in this particular situation there's no need, but i was surprised nonetheless that both variables have different memory address
2019-01-25T11:28:10.466500
Keva
pythondev_help_Keva_2019-01-25T11:28:10.466500
1,548,415,690.4665
4,130
pythondev
help
if, hypothetically, i will need to use that variable later in that function
2019-01-25T11:29:16.467300
Keva
pythondev_help_Keva_2019-01-25T11:29:16.467300
1,548,415,756.4673
4,131
pythondev
help
will that second variable actually use the first variable?
2019-01-25T11:30:07.468100
Keva
pythondev_help_Keva_2019-01-25T11:30:07.468100
1,548,415,807.4681
4,132
pythondev
help
(maybe i'm getting something wrong
2019-01-25T11:30:24.468800
Keva
pythondev_help_Keva_2019-01-25T11:30:24.468800
1,548,415,824.4688
4,133
pythondev
help
I’m not sure the memory address thing is meaningful. I forget the exact set of numbers, but for at least the first few integers python does not create a new object (each integer has a fixed address, and is shared. Also 0 is false, so double confusion possible there) If you change that initializing alpha to, say 1000 I ...
2019-01-25T11:33:06.471100
Clemmie
pythondev_help_Clemmie_2019-01-25T11:33:06.471100
1,548,415,986.4711
4,134
pythondev
help
oh, you're right
2019-01-25T11:34:32.471600
Keva
pythondev_help_Keva_2019-01-25T11:34:32.471600
1,548,416,072.4716
4,135
pythondev
help
thank you! :slightly_smiling_face:
2019-01-25T11:34:39.471900
Keva
pythondev_help_Keva_2019-01-25T11:34:39.471900
1,548,416,079.4719
4,136
pythondev
help
<@Clemmie> [-5, 256] is the range :slightly_smiling_face:
2019-01-25T11:44:37.472600
Yaeko
pythondev_help_Yaeko_2019-01-25T11:44:37.472600
1,548,416,677.4726
4,137
pythondev
help
There you go :slightly_smiling_face:
2019-01-25T11:45:16.472800
Clemmie
pythondev_help_Clemmie_2019-01-25T11:45:16.472800
1,548,416,716.4728
4,138
pythondev
help
some results i am getting is printing out \n at the end, but is not actually going to a new line. how can I make it go to a new line?
2019-01-25T11:46:56.473500
Nenita
pythondev_help_Nenita_2019-01-25T11:46:56.473500
1,548,416,816.4735
4,139
pythondev
help
<@Nenita> I don't understand. You have a string containing `\n` and it's not printed to a new line when you use `print()`?
2019-01-25T11:47:56.474400
Yaeko
pythondev_help_Yaeko_2019-01-25T11:47:56.474400
1,548,416,876.4744
4,140
pythondev
help
can you show the code you are using to print
2019-01-25T11:48:00.474500
Clemmie
pythondev_help_Clemmie_2019-01-25T11:48:00.474500
1,548,416,880.4745
4,141
pythondev
help
None
2019-01-25T11:49:34.474700
Nenita
pythondev_help_Nenita_2019-01-25T11:49:34.474700
1,548,416,974.4747
4,142
pythondev
help
`print(stdout.read().decode('utf-8'))`
2019-01-25T11:50:10.475500
Yaeko
pythondev_help_Yaeko_2019-01-25T11:50:10.475500
1,548,417,010.4755
4,143
pythondev
help
not gunna lie. i always thought that the utf-8 was never really necessary
2019-01-25T11:50:52.476500
Nenita
pythondev_help_Nenita_2019-01-25T11:50:52.476500
1,548,417,052.4765
4,144
pythondev
help
mind blown
2019-01-25T11:50:55.476700
Nenita
pythondev_help_Nenita_2019-01-25T11:50:55.476700
1,548,417,055.4767
4,145
pythondev
help
Or whatever character encoding you have set up. Might be possible to just use `.decode()`.
2019-01-25T11:50:59.476900
Yaeko
pythondev_help_Yaeko_2019-01-25T11:50:59.476900
1,548,417,059.4769
4,146
pythondev
help
fixed it perfectly
2019-01-25T11:51:09.477300
Nenita
pythondev_help_Nenita_2019-01-25T11:51:09.477300
1,548,417,069.4773
4,147
pythondev
help
But you need to decode the bytes (`b'string'`) into a string (`'string'`)
2019-01-25T11:51:20.477700
Yaeko
pythondev_help_Yaeko_2019-01-25T11:51:20.477700
1,548,417,080.4777
4,148
pythondev
help
<@Melynda> can you try to install in a freshly created docker container?
2019-01-25T11:54:10.478100
Chester
pythondev_help_Chester_2019-01-25T11:54:10.478100
1,548,417,250.4781
4,149
pythondev
help
<@Chester> hmm… with pipenv and poetry?
2019-01-25T12:10:10.478300
Melynda
pythondev_help_Melynda_2019-01-25T12:10:10.478300
1,548,418,210.4783
4,150
pythondev
help
I seem to always have issues with virutal environments with python. I’m attemtping to create a new virtual environment in my project’s repo by using `$ python3 -m venv venv` Then I attempt to activate the virtual envrionment by using `$ source ./venv/bin/activate` I’m having issues install packages using pip3, I’m...
2019-01-25T12:20:18.480600
Cammie
pythondev_help_Cammie_2019-01-25T12:20:18.480600
1,548,418,818.4806
4,151
pythondev
help
what does `which pip` return?
2019-01-25T12:24:14.481200
Hiroko
pythondev_help_Hiroko_2019-01-25T12:24:14.481200
1,548,419,054.4812
4,152
pythondev
help
&gt; pip: aliased to noglob pip Regardless if my virtualenv is activated or not
2019-01-25T12:25:16.481900
Cammie
pythondev_help_Cammie_2019-01-25T12:25:16.481900
1,548,419,116.4819
4,153
pythondev
help
what about `echo $PATH`? Should have your path to virtualenv first
2019-01-25T12:27:27.482400
Carrol
pythondev_help_Carrol_2019-01-25T12:27:27.482400
1,548,419,247.4824
4,154
pythondev
help
I believe that is correct, the first value is: &gt; /Users/ghilston/Git/REPO_NAME/venv/bin
2019-01-25T12:34:12.482800
Cammie
pythondev_help_Cammie_2019-01-25T12:34:12.482800
1,548,419,652.4828
4,155
pythondev
help
am I installing things wrong when I simply run the following when my venv is activated? `$ pip3 install [package name]`
2019-01-25T12:35:45.483800
Cammie
pythondev_help_Cammie_2019-01-25T12:35:45.483800
1,548,419,745.4838
4,156
pythondev
help
you’re doing it right, but something is screwed up for sure
2019-01-25T12:36:17.484200
Carrol
pythondev_help_Carrol_2019-01-25T12:36:17.484200
1,548,419,777.4842
4,157
pythondev
help
:disappointed:
2019-01-25T12:36:40.484600
Cammie
pythondev_help_Cammie_2019-01-25T12:36:40.484600
1,548,419,800.4846
4,158
pythondev
help
try using the full path to pip3, e.g. `/Users/ghilston/Git/REPO_NAME/venv/bin/pip3 install [package]`
2019-01-25T12:36:50.484900
Carrol
pythondev_help_Carrol_2019-01-25T12:36:50.484900
1,548,419,810.4849
4,159
pythondev
help
just checking, are you doing all these install commands in the same terminal you executed `activate` in?
2019-01-25T12:39:44.485400
Hiroko
pythondev_help_Hiroko_2019-01-25T12:39:44.485400
1,548,419,984.4854
4,160
pythondev
help
<@Hiroko> Yes.
2019-01-25T12:40:02.485700
Cammie
pythondev_help_Cammie_2019-01-25T12:40:02.485700
1,548,420,002.4857
4,161
pythondev
help
<@Carrol> &gt; zsh: venv/bin/pip3: bad interpreter: /Users/ghilston/Git/[REPO_NAME}/venv/bin/python: no such file or directory
2019-01-25T12:40:48.486300
Cammie
pythondev_help_Cammie_2019-01-25T12:40:48.486300
1,548,420,048.4863
4,162
pythondev
help
huh
2019-01-25T12:40:57.487000
Hiroko
pythondev_help_Hiroko_2019-01-25T12:40:57.487000
1,548,420,057.487
4,163
pythondev
help
what system are you using?
2019-01-25T12:41:07.487300
Hiroko
pythondev_help_Hiroko_2019-01-25T12:41:07.487300
1,548,420,067.4873
4,164
pythondev
help
OS X
2019-01-25T12:41:12.487500
Cammie
pythondev_help_Cammie_2019-01-25T12:41:12.487500
1,548,420,072.4875
4,165
pythondev
help
curiouser and curiouser
2019-01-25T12:41:24.487700
Carrol
pythondev_help_Carrol_2019-01-25T12:41:24.487700
1,548,420,084.4877
4,166
pythondev
help
what version python?
2019-01-25T12:41:32.488100
Hiroko
pythondev_help_Hiroko_2019-01-25T12:41:32.488100
1,548,420,092.4881
4,167
pythondev
help
I’ve always had virtual environment issues since removing anaconda from my system
2019-01-25T12:41:44.488400
Cammie
pythondev_help_Cammie_2019-01-25T12:41:44.488400
1,548,420,104.4884
4,168
pythondev
help
`$ python3 --version` &gt; Python 3.6.4
2019-01-25T12:42:04.488700
Cammie
pythondev_help_Cammie_2019-01-25T12:42:04.488700
1,548,420,124.4887
4,169
pythondev
help
what’s your entire `$PATH`
2019-01-25T12:42:50.489000
Hiroko
pythondev_help_Hiroko_2019-01-25T12:42:50.489000
1,548,420,170.489
4,170
pythondev
help
you might have some leftover anaconda stuff in your `.*rc` files
2019-01-25T12:43:12.489400
Hiroko
pythondev_help_Hiroko_2019-01-25T12:43:12.489400
1,548,420,192.4894
4,171
pythondev
help
&gt;&gt;&gt; /Users/ghilston/Git/Trl-Hours-Regularization/venv/bin:/Users/ghilston/google-cloud-sdk/bin:/Users/ghilston/.opam/system/bin:/Users/ghilston/anaconda/bin:/Users/ghilston/.fastlane/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/share/dotne│· t:/opt/X11/bin:~/.dotnet/tools:/Li...
2019-01-25T12:43:25.489700
Cammie
pythondev_help_Cammie_2019-01-25T12:43:25.489700
1,548,420,205.4897
4,172
pythondev
help
```ghilston/anaconda/bin:```
2019-01-25T12:44:04.490100
Hiroko
pythondev_help_Hiroko_2019-01-25T12:44:04.490100
1,548,420,244.4901
4,173
pythondev
help
might be part of the issue
2019-01-25T12:44:08.490300
Hiroko
pythondev_help_Hiroko_2019-01-25T12:44:08.490300
1,548,420,248.4903
4,174
pythondev
help
you might want to look through your dotfiles that are loaded by your shell
2019-01-25T12:44:22.490700
Hiroko
pythondev_help_Hiroko_2019-01-25T12:44:22.490700
1,548,420,262.4907
4,175
pythondev
help
most lkely there’s something in there that’s env related
2019-01-25T12:44:36.491200
Hiroko
pythondev_help_Hiroko_2019-01-25T12:44:36.491200
1,548,420,276.4912
4,176
pythondev
help
if it’s a PATH issue you can start by resetting your PATH: `export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin` and then activating the venv again. if that gets things working you can fix your PATH permanently in your dotfiles
2019-01-25T12:49:48.493400
Carrol
pythondev_help_Carrol_2019-01-25T12:49:48.493400
1,548,420,588.4934
4,177
pythondev
help
Or, `PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which pip` to not even have to restart the shell to reset/change the path back
2019-01-25T12:59:03.494300
Yaeko
pythondev_help_Yaeko_2019-01-25T12:59:03.494300
1,548,421,143.4943
4,178
pythondev
help
Please help me with a query
2019-01-25T13:01:23.496400
Janey
pythondev_help_Janey_2019-01-25T13:01:23.496400
1,548,421,283.4964
4,179
pythondev
help
as a non-paying slack user, i am losing out on messages. I want to keep storing slack messages on my own database, so that later i can build my own ui for seeing messages which have been deleted on slack.
2019-01-25T13:01:25.496600
Janey
pythondev_help_Janey_2019-01-25T13:01:25.496600
1,548,421,285.4966
4,180
pythondev
help
i am not sure if i should go with a nosql or a sql database
2019-01-25T13:01:41.497000
Janey
pythondev_help_Janey_2019-01-25T13:01:41.497000
1,548,421,301.497
4,181
pythondev
help
Which one would suit this usecase more?
2019-01-25T13:01:52.497300
Janey
pythondev_help_Janey_2019-01-25T13:01:52.497300
1,548,421,312.4973
4,182
pythondev
help
Okay, trying the path changes now
2019-01-25T13:02:14.497600
Cammie
pythondev_help_Cammie_2019-01-25T13:02:14.497600
1,548,421,334.4976
4,183
pythondev
help
<@Janey> Use either. I’d prefer SQL for this but either should work just fine
2019-01-25T13:02:33.498200
Cammie
pythondev_help_Cammie_2019-01-25T13:02:33.498200
1,548,421,353.4982
4,184
pythondev
help
`$ PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which pip` &gt; pip: aliased to noglob pip
2019-01-25T13:02:49.498800
Cammie
pythondev_help_Cammie_2019-01-25T13:02:49.498800
1,548,421,369.4988
4,185
pythondev
help
uh oh.
2019-01-25T13:02:52.499000
Cammie
pythondev_help_Cammie_2019-01-25T13:02:52.499000
1,548,421,372.499
4,186
pythondev
help
<@Janey> that’s against slack’s free tier terms of service
2019-01-25T13:03:07.499900
Hiroko
pythondev_help_Hiroko_2019-01-25T13:03:07.499900
1,548,421,387.4999
4,187
pythondev
help
unfortunately
2019-01-25T13:03:17.500400
Hiroko
pythondev_help_Hiroko_2019-01-25T13:03:17.500400
1,548,421,397.5004
4,188
pythondev
help
yeah changing the path doesn’t change the rest of your environment
2019-01-25T13:03:20.500500
Carrol
pythondev_help_Carrol_2019-01-25T13:03:20.500500
1,548,421,400.5005
4,189
pythondev
help
<@Janey> and message history is not on a per-user basis. Either the entire slack is paid (per user, but every user is paid for) or not
2019-01-25T13:03:53.501600
Clemmie
pythondev_help_Clemmie_2019-01-25T13:03:53.501600
1,548,421,433.5016
4,190
pythondev
help
Sorry, I’m out of ideas with this problem, as I don’t fully understand virtual environments. Any other ideas is super appreciated
2019-01-25T13:04:13.502300
Cammie
pythondev_help_Cammie_2019-01-25T13:04:13.502300
1,548,421,453.5023
4,191
pythondev
help
you can store the messages, but replicating any functionality slack has implemented but made available for paying accounts is a no-no
2019-01-25T13:04:14.502600
Hiroko
pythondev_help_Hiroko_2019-01-25T13:04:14.502600
1,548,421,454.5026
4,192
pythondev
help
This is very frustrating
2019-01-25T13:04:18.502700
Cammie
pythondev_help_Cammie_2019-01-25T13:04:18.502700
1,548,421,458.5027
4,193
pythondev
help
agreed
2019-01-25T13:04:27.503100
Hiroko
pythondev_help_Hiroko_2019-01-25T13:04:27.503100
1,548,421,467.5031
4,194
pythondev
help
Get your entire environment out of the way: `env -i bash --norc --noprofile`
2019-01-25T13:05:18.503800
Carrol
pythondev_help_Carrol_2019-01-25T13:05:18.503800
1,548,421,518.5038
4,195
pythondev
help
<@Janey> Depending on what you want to do, this might be helpful <https://zapier.com/apps/mysql/integrations/slack>
2019-01-25T13:06:11.504900
Yaeko
pythondev_help_Yaeko_2019-01-25T13:06:11.504900
1,548,421,571.5049
4,196
pythondev
help
<@Hiroko> it is against the tos to log messages?
2019-01-25T13:07:22.506600
Yaeko
pythondev_help_Yaeko_2019-01-25T13:07:22.506600
1,548,421,642.5066
4,197
pythondev
help
Done.
2019-01-25T13:07:36.506900
Cammie
pythondev_help_Cammie_2019-01-25T13:07:36.506900
1,548,421,656.5069
4,198
pythondev
help
<@Hiroko> even if i am doing it for my own use only? i will store my slack message in my db by using slack events api which notifies me with paylod on my url when messages come to my slack account. Later i will build a very basic ui for me to be able to see my old messages when they have been deleted on slack
2019-01-25T13:07:44.507300
Janey
pythondev_help_Janey_2019-01-25T13:07:44.507300
1,548,421,664.5073
4,199
pythondev
help
now activate your venv and try installing a package
2019-01-25T13:07:53.507600
Carrol
pythondev_help_Carrol_2019-01-25T13:07:53.507600
1,548,421,673.5076
4,200
pythondev
help
is this something that voilates slack’s terms of service?
2019-01-25T13:07:59.507900
Janey
pythondev_help_Janey_2019-01-25T13:07:59.507900
1,548,421,679.5079
4,201
pythondev
help
ran: `$ source venv/bin/activate` `$ pip3 install jupyter` &gt;&gt;&gt; Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/prompt_toolkit-1.0.15.dist-info/DESCRIPTION.rst' ...
2019-01-25T13:10:40.508100
Cammie
pythondev_help_Cammie_2019-01-25T13:10:40.508100
1,548,421,840.5081
4,202
pythondev
help
<https://api.slack.com/developer-policy>
2019-01-25T13:11:33.508400
Hiroko
pythondev_help_Hiroko_2019-01-25T13:11:33.508400
1,548,421,893.5084
4,203
pythondev
help
specifically &gt;&gt;&gt; Circumventing Slack’s intended limitations (including pricing, features and access structures). You may not use the Slack API to replicate or compete with core products or services offered by Slack
2019-01-25T13:11:42.508700
Hiroko
pythondev_help_Hiroko_2019-01-25T13:11:42.508700
1,548,421,902.5087
4,204
pythondev
help
you can’t store just your messages in the db
2019-01-25T13:12:10.509500
Hiroko
pythondev_help_Hiroko_2019-01-25T13:12:10.509500
1,548,421,930.5095
4,205
pythondev
help
api doesn’t work that way
2019-01-25T13:12:15.509800
Hiroko
pythondev_help_Hiroko_2019-01-25T13:12:15.509800
1,548,421,935.5098
4,206
pythondev
help
I am so confused
2019-01-25T13:12:15.509900
Cammie
pythondev_help_Cammie_2019-01-25T13:12:15.509900
1,548,421,935.5099
4,207
pythondev
help
when you have a text bordered with single quotation marks, how do you keep python from conflicting with the quotations? I need to feed a list, but some of the text in the list needs quotes.
2019-01-25T13:13:54.510700
Nenita
pythondev_help_Nenita_2019-01-25T13:13:54.510700
1,548,422,034.5107
4,208
pythondev
help
double quotes
2019-01-25T13:14:06.511400
Clemmie
pythondev_help_Clemmie_2019-01-25T13:14:06.511400
1,548,422,046.5114
4,209
pythondev
help
or escape
2019-01-25T13:14:10.511700
Hiroko
pythondev_help_Hiroko_2019-01-25T13:14:10.511700
1,548,422,050.5117
4,210
pythondev
help
<@Nenita> either wrap with `"` or escape `\'`
2019-01-25T13:14:16.512100
Yaeko
pythondev_help_Yaeko_2019-01-25T13:14:16.512100
1,548,422,056.5121
4,211
pythondev
help
eg, `\'`
2019-01-25T13:14:16.512200
Hiroko
pythondev_help_Hiroko_2019-01-25T13:14:16.512200
1,548,422,056.5122
4,212
pythondev
help
same. that is ultra-weird.
2019-01-25T13:14:30.512500
Carrol
pythondev_help_Carrol_2019-01-25T13:14:30.512500
1,548,422,070.5125
4,213
pythondev
help
terms of service aside, technically it is possible to store just my messages in the db. slack events api has granular events type. i can choose to get notified on my url for just dm to me only.
2019-01-25T13:14:37.512900
Janey
pythondev_help_Janey_2019-01-25T13:14:37.512900
1,548,422,077.5129
4,214
pythondev
help
schweet thanks
2019-01-25T13:14:39.513200
Nenita
pythondev_help_Nenita_2019-01-25T13:14:39.513200
1,548,422,079.5132
4,215
pythondev
help
Any quick fixes or work around you guys can think of?
2019-01-25T13:14:59.513600
Cammie
pythondev_help_Cammie_2019-01-25T13:14:59.513600
1,548,422,099.5136
4,216
pythondev
help
<@Hiroko> I'm not a lawyer, but will that really hold? It's not like he is competing with core products or services offered by Slack if he backup messages for private use
2019-01-25T13:15:19.514300
Yaeko
pythondev_help_Yaeko_2019-01-25T13:15:19.514300
1,548,422,119.5143
4,217
pythondev
help
As you said, the payment is not by user but rather for the whole workspace
2019-01-25T13:15:36.514800
Yaeko
pythondev_help_Yaeko_2019-01-25T13:15:36.514800
1,548,422,136.5148
4,218
pythondev
help
w/o addressing the local policy, there is a Python Developers policy against giving advice for solutions that circumvent another service's ToS, and I think that's what <@Hiroko> is getting at
2019-01-25T13:16:35.515500
Joette
pythondev_help_Joette_2019-01-25T13:16:35.515500
1,548,422,195.5155
4,219
pythondev
help
I am a lawyer, and yes. He is directly competing with the paid portion of message history.
2019-01-25T13:16:37.515700
Clemmie
pythondev_help_Clemmie_2019-01-25T13:16:37.515700
1,548,422,197.5157
4,220