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
<@Myrtle> don't name your modules as modules from standard library
2018-01-03T08:30:54.000120
Aleida
pythondev_help_Aleida_2018-01-03T08:30:54.000120
1,514,968,254.00012
27,624
pythondev
help
<https://www.toptal.com/python/top-10-mistakes-that-python-programmers-make#common-mistake-8-name-clashing-with-python-standard-library-modules>
2018-01-03T08:32:21.000219
Aleida
pythondev_help_Aleida_2018-01-03T08:32:21.000219
1,514,968,341.000219
27,625
pythondev
help
Posted a problem im having over in <#C0LMFRMB5|django> if anyone would like to try and solve it :stuck_out_tongue:
2018-01-03T08:43:17.000363
Tanesha
pythondev_help_Tanesha_2018-01-03T08:43:17.000363
1,514,968,997.000363
27,626
pythondev
help
thanks guys! renamed the module and that fixed it
2018-01-03T09:04:06.000411
Myrtle
pythondev_help_Myrtle_2018-01-03T09:04:06.000411
1,514,970,246.000411
27,627
pythondev
help
Hey everyone, I'm not sure how to approach this... I have a file file.ext which contains data in a dictionary like format: ```i18n_strings = { 'en': { 'menu.buy': "Buy", 'menu.sell': "Sell", 'menu.btc_graph_title': "(7 Day history)", 'menu.above_avg': "Above average", ...
2018-01-03T10:09:18.000101
Maura
pythondev_help_Maura_2018-01-03T10:09:18.000101
1,514,974,158.000101
27,628
pythondev
help
<@Maura> remove the `[...]` for code formatting to work
2018-01-03T10:13:12.000235
Brande
pythondev_help_Brande_2018-01-03T10:13:12.000235
1,514,974,392.000235
27,629
pythondev
help
thanks, didn't expect this behaviour :expressionless:
2018-01-03T10:16:43.000312
Maura
pythondev_help_Maura_2018-01-03T10:16:43.000312
1,514,974,603.000312
27,630
pythondev
help
<@Maura> not sure what your issue is
2018-01-03T10:20:00.000166
Floy
pythondev_help_Floy_2018-01-03T10:20:00.000166
1,514,974,800.000166
27,631
pythondev
help
by import, do you mean read from file?
2018-01-03T10:20:06.000266
Floy
pythondev_help_Floy_2018-01-03T10:20:06.000266
1,514,974,806.000266
27,632
pythondev
help
<@Floy> I more specifically mean "can't import it as a module"
2018-01-03T10:22:47.000645
Maura
pythondev_help_Maura_2018-01-03T10:22:47.000645
1,514,974,967.000645
27,633
pythondev
help
any reason why you can't import it ?
2018-01-03T10:24:05.000743
Micki
pythondev_help_Micki_2018-01-03T10:24:05.000743
1,514,975,045.000743
27,634
pythondev
help
you could make it valid json and read it that way
2018-01-03T10:24:25.000300
Micki
pythondev_help_Micki_2018-01-03T10:24:25.000300
1,514,975,065.0003
27,635
pythondev
help
Its a hidden file in a hidden folder. And changing it to json is probably what im going to end up doing... I just though there might be an easy way to use it as is.
2018-01-03T10:27:44.000233
Maura
pythondev_help_Maura_2018-01-03T10:27:44.000233
1,514,975,264.000233
27,636
pythondev
help
you could also look into yaml if it's for human
2018-01-03T10:29:18.000303
Micki
pythondev_help_Micki_2018-01-03T10:29:18.000303
1,514,975,358.000303
27,637
pythondev
help
+1 for yaml. i just worked with yaml for another project i’m doing and it was great joy
2018-01-03T10:29:47.000340
Tobias
pythondev_help_Tobias_2018-01-03T10:29:47.000340
1,514,975,387.00034
27,638
pythondev
help
hi guys. after using jupiter notebooks all the time i went to pycharm now. bought the professional edition. want to use anaconda3 in there. path variable is exported what i can see if i type `which python`. nut somehow pycharm does not recognize my anaconda installation. can someone here help me out with this?
2018-01-03T10:31:06.000424
Margot
pythondev_help_Margot_2018-01-03T10:31:06.000424
1,514,975,466.000424
27,639
pythondev
help
yaml is probably really nice, but it not in the standard library
2018-01-03T10:34:26.000263
Maura
pythondev_help_Maura_2018-01-03T10:34:26.000263
1,514,975,666.000263
27,640
pythondev
help
yeah, if it doesn’t need to be human readable, there is more around for JSON
2018-01-03T10:36:52.000170
Brande
pythondev_help_Brande_2018-01-03T10:36:52.000170
1,514,975,812.00017
27,641
pythondev
help
<https://imgur.com/a/9FFqd> my screen with relevant details for my pycharm problem
2018-01-03T10:37:19.000169
Margot
pythondev_help_Margot_2018-01-03T10:37:19.000169
1,514,975,839.000169
27,642
pythondev
help
<@Margot> you don’t want to use the anaconda python. use the environment path for that
2018-01-03T10:43:07.000571
Floy
pythondev_help_Floy_2018-01-03T10:43:07.000571
1,514,976,187.000571
27,643
pythondev
help
for example, I have a conda environment `django`
2018-01-03T10:43:31.000490
Floy
pythondev_help_Floy_2018-01-03T10:43:31.000490
1,514,976,211.00049
27,644
pythondev
help
the python interperter path is `/Users/dd82/anaconda3/envs/django/bin/python`
2018-01-03T10:43:50.000544
Floy
pythondev_help_Floy_2018-01-03T10:43:50.000544
1,514,976,230.000544
27,645
pythondev
help
note the `envs` directory
2018-01-03T10:44:14.000474
Floy
pythondev_help_Floy_2018-01-03T10:44:14.000474
1,514,976,254.000474
27,646
pythondev
help
`which pyhton` keeps telling me its already set. it returns `<https://imgur.com/a/9FFqd>` <@Floy>
2018-01-03T10:44:48.000065
Margot
pythondev_help_Margot_2018-01-03T10:44:48.000065
1,514,976,288.000065
27,647
pythondev
help
sorry, wrong `/dev/anaconda3/bin/python`
2018-01-03T10:45:19.000484
Margot
pythondev_help_Margot_2018-01-03T10:45:19.000484
1,514,976,319.000484
27,648
pythondev
help
is which's return
2018-01-03T10:45:28.000094
Margot
pythondev_help_Margot_2018-01-03T10:45:28.000094
1,514,976,328.000094
27,649
pythondev
help
do you have the conda environment active?
2018-01-03T10:45:35.000237
Floy
pythondev_help_Floy_2018-01-03T10:45:35.000237
1,514,976,335.000237
27,650
pythondev
help
eg `source activate environment_name`
2018-01-03T10:45:46.000719
Floy
pythondev_help_Floy_2018-01-03T10:45:46.000719
1,514,976,346.000719
27,651
pythondev
help
i dont think so
2018-01-03T10:45:56.000723
Margot
pythondev_help_Margot_2018-01-03T10:45:56.000723
1,514,976,356.000723
27,652
pythondev
help
that’s why
2018-01-03T10:46:11.000031
Floy
pythondev_help_Floy_2018-01-03T10:46:11.000031
1,514,976,371.000031
27,653
pythondev
help
you need to have the path to the conda environment you’ve created
2018-01-03T10:46:23.000057
Floy
pythondev_help_Floy_2018-01-03T10:46:23.000057
1,514,976,383.000057
27,654
pythondev
help
i had the luxury of using pypi packages for this project and i exploited the hell out of it. it was much fun
2018-01-03T10:46:36.000213
Tobias
pythondev_help_Tobias_2018-01-03T10:46:36.000213
1,514,976,396.000213
27,655
pythondev
help
ok, i will reserach this source activate quick
2018-01-03T10:46:56.000657
Margot
pythondev_help_Margot_2018-01-03T10:46:56.000657
1,514,976,416.000657
27,656
pythondev
help
its right there in the conda quick start
2018-01-03T10:47:14.000648
Floy
pythondev_help_Floy_2018-01-03T10:47:14.000648
1,514,976,434.000648
27,657
pythondev
help
so my mistake is to have rthge path already set, but the engv is still pointing to virual_env
2018-01-03T10:47:53.000384
Margot
pythondev_help_Margot_2018-01-03T10:47:53.000384
1,514,976,473.000384
27,658
pythondev
help
what i dunderstood now
2018-01-03T10:47:58.000349
Margot
pythondev_help_Margot_2018-01-03T10:47:58.000349
1,514,976,478.000349
27,659
pythondev
help
sorry?
2018-01-03T10:48:29.000222
Floy
pythondev_help_Floy_2018-01-03T10:48:29.000222
1,514,976,509.000222
27,660
pythondev
help
you need to create a conda environment
2018-01-03T10:48:45.000152
Floy
pythondev_help_Floy_2018-01-03T10:48:45.000152
1,514,976,525.000152
27,661
pythondev
help
install your packages to that environment
2018-01-03T10:48:52.000301
Floy
pythondev_help_Floy_2018-01-03T10:48:52.000301
1,514,976,532.000301
27,662
pythondev
help
and use that environment’s python executable (which is often a symlink) to link pycharm to that
2018-01-03T10:49:18.000223
Floy
pythondev_help_Floy_2018-01-03T10:49:18.000223
1,514,976,558.000223
27,663
pythondev
help
y, its a good hint, iam follwing this <https://conda.io/docs/user-guide/getting-started.html#managing-environments> now
2018-01-03T10:49:30.000768
Margot
pythondev_help_Margot_2018-01-03T10:49:30.000768
1,514,976,570.000768
27,664
pythondev
help
guess i simply exposed the path but didnt know about this env thing
2018-01-03T10:49:55.000472
Margot
pythondev_help_Margot_2018-01-03T10:49:55.000472
1,514,976,595.000472
27,665
pythondev
help
gotcha
2018-01-03T10:50:00.000864
Floy
pythondev_help_Floy_2018-01-03T10:50:00.000864
1,514,976,600.000864
27,666
pythondev
help
yeah, its a way to isolate the dependencies you need for a project from the entire system
2018-01-03T10:50:16.000300
Floy
pythondev_help_Floy_2018-01-03T10:50:16.000300
1,514,976,616.0003
27,667
pythondev
help
so you have exactly what you need for _that_ project, without worrying about overwriting other necessary stuff and breaking things
2018-01-03T10:50:42.000084
Floy
pythondev_help_Floy_2018-01-03T10:50:42.000084
1,514,976,642.000084
27,668
pythondev
help
ok, coming from js this is somehow similiar to package.js but still different. trying to understand and solve it at this very moment. thanks fpr you time and fingerpointing me to my mistake
2018-01-03T10:52:51.000499
Margot
pythondev_help_Margot_2018-01-03T10:52:51.000499
1,514,976,771.000499
27,669
pythondev
help
<@Floy>
2018-01-03T10:52:55.000580
Margot
pythondev_help_Margot_2018-01-03T10:52:55.000580
1,514,976,775.00058
27,670
pythondev
help
it actually is very similar
2018-01-03T10:54:02.000231
Floy
pythondev_help_Floy_2018-01-03T10:54:02.000231
1,514,976,842.000231
27,671
pythondev
help
where you have npm global install and then local, but it requires the `-g` flag to install globally
2018-01-03T10:54:31.000493
Floy
pythondev_help_Floy_2018-01-03T10:54:31.000493
1,514,976,871.000493
27,672
pythondev
help
difference is, with a node project, you’re not symlinking to the node interpreter executable within the project and using that
2018-01-03T10:55:19.000548
Floy
pythondev_help_Floy_2018-01-03T10:55:19.000548
1,514,976,919.000548
27,673
pythondev
help
Is there a tool to determine which tests cover a block of code? I thought Coverage.py had something, but can't find anything along those lines now.
2018-01-03T12:02:33.000011
Adrianne
pythondev_help_Adrianne_2018-01-03T12:02:33.000011
1,514,980,953.000011
27,674
pythondev
help
<https://bitbucket.org/ned/coveragepy/issues/170/show-who-tests-what>
2018-01-03T12:06:56.000603
Aleida
pythondev_help_Aleida_2018-01-03T12:06:56.000603
1,514,981,216.000603
27,675
pythondev
help
thanks mallnoff, hopefully one day!
2018-01-03T12:09:11.000355
Adrianne
pythondev_help_Adrianne_2018-01-03T12:09:11.000355
1,514,981,351.000355
27,676
pythondev
help
Feel free to jump in and describe your use-case in that issue :slightly_smiling_face:
2018-01-03T12:10:51.000132
Aleida
pythondev_help_Aleida_2018-01-03T12:10:51.000132
1,514,981,451.000132
27,677
pythondev
help
you guys know of a lightweight library that can play sounds? trying to make my pomodoro a bit more active
2018-01-03T13:16:07.000022
Alisia
pythondev_help_Alisia_2018-01-03T13:16:07.000022
1,514,985,367.000022
27,678
pythondev
help
dont want to use pygame just to play a sound
2018-01-03T13:16:18.000487
Alisia
pythondev_help_Alisia_2018-01-03T13:16:18.000487
1,514,985,378.000487
27,679
pythondev
help
well, there's pyaudio, but I wouldn't call that lightweight
2018-01-03T13:19:06.000501
Monroe
pythondev_help_Monroe_2018-01-03T13:19:06.000501
1,514,985,546.000501
27,680
pythondev
help
<https://pypi.python.org/pypi/playsound>
2018-01-03T13:20:44.000393
Aleida
pythondev_help_Aleida_2018-01-03T13:20:44.000393
1,514,985,644.000393
27,681
pythondev
help
will give that one a shot
2018-01-03T14:30:58.000659
Alisia
pythondev_help_Alisia_2018-01-03T14:30:58.000659
1,514,989,858.000659
27,682
pythondev
help
thanks!
2018-01-03T14:30:59.000553
Alisia
pythondev_help_Alisia_2018-01-03T14:30:59.000553
1,514,989,859.000553
27,683
pythondev
help
when using carriage returns to supply "one line output" from a python script, how do you make sure that the excess characters get cleared? for example if I print out `\rtest 156` followed by `\rtest 4` then the output would be `test 156` which would then be partially overwritten to say `test 456`, how do I instead mak...
2018-01-03T14:31:58.000171
Shante
pythondev_help_Shante_2018-01-03T14:31:58.000171
1,514,989,918.000171
27,684
pythondev
help
Incredibly loosely python related but anyone ever implement Akismet?
2018-01-03T14:32:58.000728
Elisha
pythondev_help_Elisha_2018-01-03T14:32:58.000728
1,514,989,978.000728
27,685
pythondev
help
I was curious how because I had no idea, I found this <https://stackoverflow.com/questions/3249524/print-in-one-line-dynamically>
2018-01-03T14:38:54.000102
Monroe
pythondev_help_Monroe_2018-01-03T14:38:54.000102
1,514,990,334.000102
27,686
pythondev
help
Wait, the WP plugin?
2018-01-03T16:29:02.000597
Brande
pythondev_help_Brande_2018-01-03T16:29:02.000597
1,514,996,942.000597
27,687
pythondev
help
Greetings. What’s the appropriate mechanism to report personal attacks on this slack?
2018-01-03T17:54:11.000221
Sharee
pythondev_help_Sharee_2018-01-03T17:54:11.000221
1,515,002,051.000221
27,688
pythondev
help
<@Sharee> `/admin &lt;message&gt;`
2018-01-03T17:56:34.000027
Garrett
pythondev_help_Garrett_2018-01-03T17:56:34.000027
1,515,002,194.000027
27,689
pythondev
help
<@Sharee> that won't work for you I suppose you can email us at
2018-01-03T17:58:50.000029
Micki
pythondev_help_Micki_2018-01-03T17:58:50.000029
1,515,002,330.000029
27,690
pythondev
help
<mailto:pythondev.slack@gmail.com|pythondev.slack@gmail.com>
2018-01-03T17:59:06.000440
Micki
pythondev_help_Micki_2018-01-03T17:59:06.000440
1,515,002,346.00044
27,691
pythondev
help
It's been addressed. Many thanks to those who manage theses spaces- your efforts are greatly appreciated by everyone who is here.
2018-01-03T18:11:42.000406
Sharee
pythondev_help_Sharee_2018-01-03T18:11:42.000406
1,515,003,102.000406
27,692
pythondev
help
Can you tell me where I could find abstract 3d brain model to download ?
2018-01-03T21:43:49.000241
Sau
pythondev_help_Sau_2018-01-03T21:43:49.000241
1,515,015,829.000241
27,693
pythondev
help
Give me tips to construct the case ,thank for your help…
2018-01-03T21:44:05.000286
Sau
pythondev_help_Sau_2018-01-03T21:44:05.000286
1,515,015,845.000286
27,694
pythondev
help
<@Sau> this is not really an appropriate question for a python slack
2018-01-03T21:45:39.000145
Noel
pythondev_help_Noel_2018-01-03T21:45:39.000145
1,515,015,939.000145
27,695
pythondev
help
Can anyone help out with this problem. I am currently selecting data from a mysql table, and looping through the list of results. However my issue is one of the values in each row, is a boolean, I want to keep checking to see if `HasChildren` is `True` if it is call a function again according to whatever the `CategoryI...
2018-01-04T06:18:35.000033
Milo
pythondev_help_Milo_2018-01-04T06:18:35.000033
1,515,046,715.000033
27,696
pythondev
help
<@Milo> Just from a quick look at the problem you are trying to solve sounds like you might be able to use a recursive solution
2018-01-04T10:01:02.000122
Leanora
pythondev_help_Leanora_2018-01-04T10:01:02.000122
1,515,060,062.000122
27,697
pythondev
help
hi all I need to check if the email address exists without sending anything to this address. I know how to do it using telnet in the command line but how can I do it with the script in python3.6?
2018-01-04T10:05:14.000509
Tommye
pythondev_help_Tommye_2018-01-04T10:05:14.000509
1,515,060,314.000509
27,698
pythondev
help
I'd use `dnspython` and query the MX record for mail domain
2018-01-04T10:09:12.000624
Barney
pythondev_help_Barney_2018-01-04T10:09:12.000624
1,515,060,552.000624
27,699
pythondev
help
btw, how do you do it using telnet?
2018-01-04T10:09:32.000394
Barney
pythondev_help_Barney_2018-01-04T10:09:32.000394
1,515,060,572.000394
27,700
pythondev
help
Was thinking it might be something on the lines of that, can you recommend any decent tutorials?
2018-01-04T10:11:06.000561
Milo
pythondev_help_Milo_2018-01-04T10:11:06.000561
1,515,060,666.000561
27,701
pythondev
help
easy way to give link hire: <https://www.webdigi.co.uk/blog/2009/how-to-check-if-an-email-address-exists-without-sending-an-email/>
2018-01-04T10:14:49.000037
Tommye
pythondev_help_Tommye_2018-01-04T10:14:49.000037
1,515,060,889.000037
27,702
pythondev
help
and i need do this in python
2018-01-04T10:15:19.000096
Tommye
pythondev_help_Tommye_2018-01-04T10:15:19.000096
1,515,060,919.000096
27,703
pythondev
help
any idea?
2018-01-04T10:15:32.000083
Tommye
pythondev_help_Tommye_2018-01-04T10:15:32.000083
1,515,060,932.000083
27,704
pythondev
help
Unfortunately not off the top of my head. I'm sure if you google python recursion there will be one or two that are decent enough to get you on the right path
2018-01-04T10:17:56.000321
Leanora
pythondev_help_Leanora_2018-01-04T10:17:56.000321
1,515,061,076.000321
27,705
pythondev
help
`validate_email` - checking only domain but I need check all email address
2018-01-04T10:19:15.000005
Tommye
pythondev_help_Tommye_2018-01-04T10:19:15.000005
1,515,061,155.000005
27,706
pythondev
help
don’t think that’s possible
2018-01-04T10:24:33.000242
Floy
pythondev_help_Floy_2018-01-04T10:24:33.000242
1,515,061,473.000242
27,707
pythondev
help
you can check if an email is valid format, and whether the domain itself is valid
2018-01-04T10:24:58.000378
Floy
pythondev_help_Floy_2018-01-04T10:24:58.000378
1,515,061,498.000378
27,708
pythondev
help
but as far as actual yes/no on whether an email exists without actual access to the email server…
2018-01-04T10:25:29.000372
Floy
pythondev_help_Floy_2018-01-04T10:25:29.000372
1,515,061,529.000372
27,709
pythondev
help
Do you have access to the domain you are sending to?
2018-01-04T11:25:21.000182
Pandora
pythondev_help_Pandora_2018-01-04T11:25:21.000182
1,515,065,121.000182
27,710
pythondev
help
I think the only way to be sure is to send a verification email
2018-01-04T11:26:31.000856
Micki
pythondev_help_Micki_2018-01-04T11:26:31.000856
1,515,065,191.000856
27,711
pythondev
help
Yeah, without having access to the domain or a copy of the domain's global address list or something I can't think of a way either
2018-01-04T11:27:02.000124
Pandora
pythondev_help_Pandora_2018-01-04T11:27:02.000124
1,515,065,222.000124
27,712
pythondev
help
While not what you were exactly looking for, this has the basic template for an (infinite) recursive call. <https://stackoverflow.com/questions/2158395/flatten-an-irregular-list-of-lists>
2018-01-04T11:39:50.000782
Monroe
pythondev_help_Monroe_2018-01-04T11:39:50.000782
1,515,065,990.000782
27,713
pythondev
help
<@Milo> The part you'd be concerned about is changing the check. The magic occurs from calling the function from within itself - the recursive part - and when it's done drilling down, it returns to the original iteration
2018-01-04T11:41:33.000242
Monroe
pythondev_help_Monroe_2018-01-04T11:41:33.000242
1,515,066,093.000242
27,714
pythondev
help
A few years ago I did a similar script only in PHP but I can not find it anywhere to model it. No matter, thanks for your help.
2018-01-04T11:54:30.000604
Tommye
pythondev_help_Tommye_2018-01-04T11:54:30.000604
1,515,066,870.000604
27,715
pythondev
help
Hey guys, is there anyone that knows much about Magento 2.1 API and how to deal with encoded URLs when doing a GET request? I keep getting a 401 error yet when I run the standard (non encoded URL) through Postman it works fine
2018-01-04T12:57:58.000228
Reanna
pythondev_help_Reanna_2018-01-04T12:57:58.000228
1,515,070,678.000228
27,716
pythondev
help
uhm, isn’t that a php e-commerce platform?
2018-01-04T12:59:39.000375
Floy
pythondev_help_Floy_2018-01-04T12:59:39.000375
1,515,070,779.000375
27,717
pythondev
help
yep <@Floy>
2018-01-04T13:00:27.000853
Reanna
pythondev_help_Reanna_2018-01-04T13:00:27.000853
1,515,070,827.000853
27,718
pythondev
help
Not sure if I missed your irony though by answering that!
2018-01-04T13:00:44.000399
Reanna
pythondev_help_Reanna_2018-01-04T13:00:44.000399
1,515,070,844.000399
27,719
pythondev
help
qq on a line of code
2018-01-04T13:25:45.000083
Ji
pythondev_help_Ji_2018-01-04T13:25:45.000083
1,515,072,345.000083
27,720
pythondev
help
basedir = os.path.dirname(os.path.realpath(__file__))
2018-01-04T13:25:46.000129
Ji
pythondev_help_Ji_2018-01-04T13:25:46.000129
1,515,072,346.000129
27,721
pythondev
help
data_file = pd.read_csv(os.path.join(basedir, 'Classification.csv'))
2018-01-04T13:25:59.000832
Ji
pythondev_help_Ji_2018-01-04T13:25:59.000832
1,515,072,359.000832
27,722
pythondev
help
I understand that the first line is getting the base dir and the 2nd line is completing the full link to the file
2018-01-04T13:27:13.000090
Ji
pythondev_help_Ji_2018-01-04T13:27:13.000090
1,515,072,433.00009
27,723