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
i’m really confused on this one. wondering if someone has a second set of eyes for me
2018-03-02T10:59:56.000142
Tobias
pythondev_help_Tobias_2018-03-02T10:59:56.000142
1,519,988,396.000142
36,924
pythondev
help
```class Ktpl(): """ Main Ktpl Class """ def __init__(self): self.verbosity = 1 print(self.verbosity) print('you are here')```
2018-03-02T11:00:02.000981
Tobias
pythondev_help_Tobias_2018-03-02T11:00:02.000981
1,519,988,402.000981
36,925
pythondev
help
ohhh , so soon i have to find better wy to load existing excel file through openpyxl
2018-03-02T11:00:11.000371
Refugia
pythondev_help_Refugia_2018-03-02T11:00:11.000371
1,519,988,411.000371
36,926
pythondev
help
Ktpl(): ```you are here 1```
2018-03-02T11:00:17.000883
Tobias
pythondev_help_Tobias_2018-03-02T11:00:17.000883
1,519,988,417.000883
36,927
pythondev
help
why is it upside down!?
2018-03-02T11:00:23.000554
Tobias
pythondev_help_Tobias_2018-03-02T11:00:23.000554
1,519,988,423.000554
36,928
pythondev
help
I believe that since the ‘you are here’ print statement isn’t inside any function, it runs once when the class is *defined.* `__init__`, on the other hand, will run every time you create a new instance of the class
2018-03-02T11:02:58.000276
Stacia
pythondev_help_Stacia_2018-03-02T11:02:58.000276
1,519,988,578.000276
36,929
pythondev
help
I’ll defer to others though… generally I don’t put any code outside of functions inside of classes
2018-03-02T11:03:13.000797
Stacia
pythondev_help_Stacia_2018-03-02T11:03:13.000797
1,519,988,593.000797
36,930
pythondev
help
hrm. ok. i think i’m not understanding this then
2018-03-02T11:08:20.000916
Tobias
pythondev_help_Tobias_2018-03-02T11:08:20.000916
1,519,988,900.000916
36,931
pythondev
help
when do you expect ‘you are here’ to print? What should trigger that code to run?
2018-03-02T11:09:24.000166
Stacia
pythondev_help_Stacia_2018-03-02T11:09:24.000166
1,519,988,964.000166
36,932
pythondev
help
ugh, i hate classes
2018-03-02T11:09:31.000796
Tobias
pythondev_help_Tobias_2018-03-02T11:09:31.000796
1,519,988,971.000796
36,933
pythondev
help
you just need to consider scope
2018-03-02T11:10:00.000672
Floy
pythondev_help_Floy_2018-03-02T11:10:00.000672
1,519,989,000.000672
36,934
pythondev
help
your first print statement is in the class global scope
2018-03-02T11:10:33.000478
Floy
pythondev_help_Floy_2018-03-02T11:10:33.000478
1,519,989,033.000478
36,935
pythondev
help
so it executes before `__init__`
2018-03-02T11:10:51.000443
Floy
pythondev_help_Floy_2018-03-02T11:10:51.000443
1,519,989,051.000443
36,936
pythondev
help
and then the init method fires off and prints
2018-03-02T11:11:03.000400
Floy
pythondev_help_Floy_2018-03-02T11:11:03.000400
1,519,989,063.0004
36,937
pythondev
help
Use the deprecation warning as a reason to check out the actual docs
2018-03-02T11:13:31.000865
Huong
pythondev_help_Huong_2018-03-02T11:13:31.000865
1,519,989,211.000865
36,938
pythondev
help
Things on the Internet get old immediately, it's better to get the habit of actually seeking to learn how those things work
2018-03-02T11:13:49.000790
Huong
pythondev_help_Huong_2018-03-02T11:13:49.000790
1,519,989,229.00079
36,939
pythondev
help
Go read about that function
2018-03-02T11:13:56.000277
Huong
pythondev_help_Huong_2018-03-02T11:13:56.000277
1,519,989,236.000277
36,940
pythondev
help
why?
2018-03-02T11:16:28.000920
Floy
pythondev_help_Floy_2018-03-02T11:16:28.000920
1,519,989,388.00092
36,941
pythondev
help
I almost never see code placed inside a class but outside of a function like where you’ve put your print(‘you are here’) statement
2018-03-02T11:17:11.000531
Stacia
pythondev_help_Stacia_2018-03-02T11:17:11.000531
1,519,989,431.000531
36,942
pythondev
help
(pardon my formatting)
2018-03-02T11:18:10.000577
Stacia
pythondev_help_Stacia_2018-03-02T11:18:10.000577
1,519,989,490.000577
36,943
pythondev
help
I was doing ktpl().foo()
2018-03-02T11:23:35.000871
Tobias
pythondev_help_Tobias_2018-03-02T11:23:35.000871
1,519,989,815.000871
36,944
pythondev
help
le sigh. learning is frustrating
2018-03-02T11:23:59.000379
Tobias
pythondev_help_Tobias_2018-03-02T11:23:59.000379
1,519,989,839.000379
36,945
pythondev
help
thanks for help!
2018-03-02T11:24:04.000838
Tobias
pythondev_help_Tobias_2018-03-02T11:24:04.000838
1,519,989,844.000838
36,946
pythondev
help
you’re welcome — mental model shifts are sometimes hard-earned :thumbsup:
2018-03-02T11:24:40.000108
Stacia
pythondev_help_Stacia_2018-03-02T11:24:40.000108
1,519,989,880.000108
36,947
pythondev
help
yep
2018-03-02T11:25:16.000020
Floy
pythondev_help_Floy_2018-03-02T11:25:16.000020
1,519,989,916.00002
36,948
pythondev
help
for me, if/when I go to functional programming, I’ll be in a similar shift
2018-03-02T11:25:31.000554
Floy
pythondev_help_Floy_2018-03-02T11:25:31.000554
1,519,989,931.000554
36,949
pythondev
help
<@Aleida> :taco: for sharing thoughts!
2018-03-02T12:03:09.000212
Irene
pythondev_help_Irene_2018-03-02T12:03:09.000212
1,519,992,189.000212
36,950
pythondev
help
Yammy
2018-03-02T12:03:41.000231
Aleida
pythondev_help_Aleida_2018-03-02T12:03:41.000231
1,519,992,221.000231
36,951
pythondev
help
I just hope my russian english didn't make you cry
2018-03-02T12:05:09.000207
Aleida
pythondev_help_Aleida_2018-03-02T12:05:09.000207
1,519,992,309.000207
36,952
pythondev
help
Wouldn’t have guessed it haha
2018-03-02T12:26:47.000260
Irene
pythondev_help_Irene_2018-03-02T12:26:47.000260
1,519,993,607.00026
36,953
pythondev
help
sup yall - does anyone have any good recommendations of example production code showing .strip(), .lower(), .casefold(), .isnum(), etc
2018-03-02T12:50:04.000362
Cuc
pythondev_help_Cuc_2018-03-02T12:50:04.000362
1,519,995,004.000362
36,954
pythondev
help
and other string methods?
2018-03-02T12:50:08.000714
Cuc
pythondev_help_Cuc_2018-03-02T12:50:08.000714
1,519,995,008.000714
36,955
pythondev
help
i.e. - using .startswith(“a”) to create a function within an application to help users sorta data
2018-03-02T12:50:28.000687
Cuc
pythondev_help_Cuc_2018-03-02T12:50:28.000687
1,519,995,028.000687
36,956
pythondev
help
Hi Guys, I'm looking for a bit of help trying to make a django project I forked on github work on django 2.0. I'm struggling trying to figure out who the urls.py works. I keep getting the following error TypeError: view must be a callable or a list/tuple in the case of include(). (bfbotenv) macs-MBP:bfbot-2 mac$ C...
2018-03-02T14:03:03.000552
Meta
pythondev_help_Meta_2018-03-02T14:03:03.000552
1,519,999,383.000552
36,957
pythondev
help
urlpatterns needs to be a list or tuple in the case of <https://github.com/timofeic/bfbot-2/blob/master/bf/urls.py>
2018-03-02T14:05:23.000230
Floy
pythondev_help_Floy_2018-03-02T14:05:23.000230
1,519,999,523.00023
36,958
pythondev
help
```urlpatterns = [ url(r'^$', login_required(RaceList.as_view())), url(r'^logout/', 'django.contrib.auth.views.logout_then_login', {'login_url': '/accounts/login/?next=/bf/'}), ]```
2018-03-02T14:06:00.000794
Floy
pythondev_help_Floy_2018-03-02T14:06:00.000794
1,519,999,560.000794
36,959
pythondev
help
I tried that already and I still get the error when I run the command python manage.py check
2018-03-02T14:07:44.000072
Meta
pythondev_help_Meta_2018-03-02T14:07:44.000072
1,519,999,664.000072
36,960
pythondev
help
When I run the files I also get an error File "/Users/mac/bfbotenv/lib/python3.6/site-packages/django/apps/registry.py", line 127, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. I was thinking it's because the urls are...
2018-03-02T14:09:23.000551
Meta
pythondev_help_Meta_2018-03-02T14:09:23.000551
1,519,999,763.000551
36,961
pythondev
help
ok, first that project is very old,
2018-03-02T14:10:27.000422
Floy
pythondev_help_Floy_2018-03-02T14:10:27.000422
1,519,999,827.000422
36,962
pythondev
help
using python2, I think
2018-03-02T14:10:31.000367
Floy
pythondev_help_Floy_2018-03-02T14:10:31.000367
1,519,999,831.000367
36,963
pythondev
help
and no clue what version of django its using
2018-03-02T14:10:38.000547
Floy
pythondev_help_Floy_2018-03-02T14:10:38.000547
1,519,999,838.000547
36,964
pythondev
help
so are you sure youve made it python3 compatible?
2018-03-02T14:10:53.000780
Floy
pythondev_help_Floy_2018-03-02T14:10:53.000780
1,519,999,853.00078
36,965
pythondev
help
I've been debugging and re-writing as much as I encounter.
2018-03-02T14:11:29.000677
Meta
pythondev_help_Meta_2018-03-02T14:11:29.000677
1,519,999,889.000677
36,966
pythondev
help
alright
2018-03-02T14:11:33.000726
Floy
pythondev_help_Floy_2018-03-02T14:11:33.000726
1,519,999,893.000726
36,967
pythondev
help
so what’s the apps list?
2018-03-02T14:12:44.000448
Floy
pythondev_help_Floy_2018-03-02T14:12:44.000448
1,519,999,964.000448
36,968
pythondev
help
might want to move this to <#C0LMFRMB5|django>
2018-03-02T14:12:52.000377
Floy
pythondev_help_Floy_2018-03-02T14:12:52.000377
1,519,999,972.000377
36,969
pythondev
help
I'll move this question to <#C0LMFRMB5|django> the apps list is that installed apps in settings.py?
2018-03-02T14:16:32.000553
Meta
pythondev_help_Meta_2018-03-02T14:16:32.000553
1,520,000,192.000553
36,970
pythondev
help
yes
2018-03-02T14:18:34.000573
Floy
pythondev_help_Floy_2018-03-02T14:18:34.000573
1,520,000,314.000573
36,971
pythondev
help
INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'bf', # Uncomment the next line to enable admin documentation: #'django.co...
2018-03-02T14:19:54.000425
Meta
pythondev_help_Meta_2018-03-02T14:19:54.000425
1,520,000,394.000425
36,972
pythondev
help
Hi everyone
2018-03-02T14:35:13.000137
Roxane
pythondev_help_Roxane_2018-03-02T14:35:13.000137
1,520,001,313.000137
36,973
pythondev
help
Guys I need help in connection of elastic search with flask application I'm getting timeout everytime
2018-03-02T14:35:35.000435
Roxane
pythondev_help_Roxane_2018-03-02T14:35:35.000435
1,520,001,335.000435
36,974
pythondev
help
This is the error I'm getting when I call handle_funnel function
2018-03-02T14:39:18.000670
Roxane
pythondev_help_Roxane_2018-03-02T14:39:18.000670
1,520,001,558.00067
36,975
pythondev
help
this is my flask setting script
2018-03-02T14:40:11.000363
Roxane
pythondev_help_Roxane_2018-03-02T14:40:11.000363
1,520,001,611.000363
36,976
pythondev
help
are you sure elasticsearch is up?
2018-03-02T14:40:52.000438
Floy
pythondev_help_Floy_2018-03-02T14:40:52.000438
1,520,001,652.000438
36,977
pythondev
help
Actually I'm using elasticsearch first time
2018-03-02T14:41:29.000096
Roxane
pythondev_help_Roxane_2018-03-02T14:41:29.000096
1,520,001,689.000096
36,978
pythondev
help
ok, so you need to start the service
2018-03-02T14:41:38.000190
Floy
pythondev_help_Floy_2018-03-02T14:41:38.000190
1,520,001,698.00019
36,979
pythondev
help
so don't know how to up
2018-03-02T14:41:46.000575
Roxane
pythondev_help_Roxane_2018-03-02T14:41:46.000575
1,520,001,706.000575
36,980
pythondev
help
what do the startup documentation say?
2018-03-02T14:41:57.000384
Floy
pythondev_help_Floy_2018-03-02T14:41:57.000384
1,520,001,717.000384
36,981
pythondev
help
How
2018-03-02T14:42:00.000451
Roxane
pythondev_help_Roxane_2018-03-02T14:42:00.000451
1,520,001,720.000451
36,982
pythondev
help
&gt; using elasticsearch first time godspeed, powerful tool with a powerful learning curve
2018-03-02T14:42:40.000353
Elisha
pythondev_help_Elisha_2018-03-02T14:42:40.000353
1,520,001,760.000353
36,983
pythondev
help
Actually i was following a github project so not seen documentation yet, just searching out the configuration formats from doc
2018-03-02T14:43:14.000651
Roxane
pythondev_help_Roxane_2018-03-02T14:43:14.000651
1,520,001,794.000651
36,984
pythondev
help
ok, then, I would look at elasticsearch documentation
2018-03-02T14:44:17.000360
Floy
pythondev_help_Floy_2018-03-02T14:44:17.000360
1,520,001,857.00036
36,985
pythondev
help
sure
2018-03-02T14:46:23.000592
Roxane
pythondev_help_Roxane_2018-03-02T14:46:23.000592
1,520,001,983.000592
36,986
pythondev
help
I was running this command and got error at this point
2018-03-02T14:49:20.000489
Roxane
pythondev_help_Roxane_2018-03-02T14:49:20.000489
1,520,002,160.000489
36,987
pythondev
help
tried high values of request_timeout but then also getting timeout
2018-03-02T14:49:53.000679
Roxane
pythondev_help_Roxane_2018-03-02T14:49:53.000679
1,520,002,193.000679
36,988
pythondev
help
port 9200 is default port and my 9200 port is free
2018-03-02T14:50:33.000340
Roxane
pythondev_help_Roxane_2018-03-02T14:50:33.000340
1,520,002,233.00034
36,989
pythondev
help
so error may be not due to this
2018-03-02T14:50:45.000080
Roxane
pythondev_help_Roxane_2018-03-02T14:50:45.000080
1,520,002,245.00008
36,990
pythondev
help
But as i have not started the elastic search service just installed in virtual environment
2018-03-02T14:51:30.000257
Roxane
pythondev_help_Roxane_2018-03-02T14:51:30.000257
1,520,002,290.000257
36,991
pythondev
help
elasticsearch==5.5.1 elasticsearch-dsl==5.4.0
2018-03-02T14:51:52.000610
Roxane
pythondev_help_Roxane_2018-03-02T14:51:52.000610
1,520,002,312.00061
36,992
pythondev
help
these are the verisons i have intstalled
2018-03-02T14:53:31.000037
Roxane
pythondev_help_Roxane_2018-03-02T14:53:31.000037
1,520,002,411.000037
36,993
pythondev
help
It'll be pleasure if you guys can help me out . Thanks :slightly_smiling_face:
2018-03-02T14:56:14.000720
Roxane
pythondev_help_Roxane_2018-03-02T14:56:14.000720
1,520,002,574.00072
36,994
pythondev
help
so, you have a program installed on your system
2018-03-02T14:59:34.000206
Floy
pythondev_help_Floy_2018-03-02T14:59:34.000206
1,520,002,774.000206
36,995
pythondev
help
but its not running
2018-03-02T14:59:37.000558
Floy
pythondev_help_Floy_2018-03-02T14:59:37.000558
1,520,002,777.000558
36,996
pythondev
help
yeas
2018-03-02T14:59:54.000702
Roxane
pythondev_help_Roxane_2018-03-02T14:59:54.000702
1,520,002,794.000702
36,997
pythondev
help
so when you try to connect to it, you get those errors
2018-03-02T14:59:59.000425
Floy
pythondev_help_Floy_2018-03-02T14:59:59.000425
1,520,002,799.000425
36,998
pythondev
help
yeah
2018-03-02T15:00:06.000344
Roxane
pythondev_help_Roxane_2018-03-02T15:00:06.000344
1,520,002,806.000344
36,999
pythondev
help
have you looked at the documentation on getting started with elasticsearch?
2018-03-02T15:00:23.000169
Floy
pythondev_help_Floy_2018-03-02T15:00:23.000169
1,520,002,823.000169
37,000
pythondev
help
yeah i have seen just but it requires some dpkg -i like thing
2018-03-02T15:02:52.000045
Roxane
pythondev_help_Roxane_2018-03-02T15:02:52.000045
1,520,002,972.000045
37,001
pythondev
help
actually i have just installed with pip so getting confused with it's usage
2018-03-02T15:03:34.000304
Roxane
pythondev_help_Roxane_2018-03-02T15:03:34.000304
1,520,003,014.000304
37,002
pythondev
help
that’s installation, not starting the service
2018-03-02T15:10:18.000333
Floy
pythondev_help_Floy_2018-03-02T15:10:18.000333
1,520,003,418.000333
37,003
pythondev
help
yeah
2018-03-02T15:11:11.000620
Roxane
pythondev_help_Roxane_2018-03-02T15:11:11.000620
1,520,003,471.00062
37,004
pythondev
help
look at the docs how to start the service
2018-03-02T15:11:24.000152
Floy
pythondev_help_Floy_2018-03-02T15:11:24.000152
1,520,003,484.000152
37,005
pythondev
help
Yeah I'm looking at it , if'll face any prob. i'll post it
2018-03-02T15:12:02.000475
Roxane
pythondev_help_Roxane_2018-03-02T15:12:02.000475
1,520,003,522.000475
37,006
pythondev
help
<@Floy> Thanks for suggestion, yeah it requires service to get started
2018-03-02T15:32:46.000057
Roxane
pythondev_help_Roxane_2018-03-02T15:32:46.000057
1,520,004,766.000057
37,007
pythondev
help
I have followed <https://www.tutorialspoint.com/articles/install-and-configure-elasticsearch-in-ubuntu-14-04-3>
2018-03-02T15:34:34.000181
Roxane
pythondev_help_Roxane_2018-03-02T15:34:34.000181
1,520,004,874.000181
37,008
pythondev
help
this blog for my system and it works
2018-03-02T15:35:02.000323
Roxane
pythondev_help_Roxane_2018-03-02T15:35:02.000323
1,520,004,902.000323
37,009
pythondev
help
Is there a aws cli available to list files from S3 with wildcard. Tried aws s3 ls s3://&lt;bucketName&gt;/&lt;keyName&gt;/ --include "*.json" but looks like --include is no longer supported
2018-03-02T16:02:44.000105
August
pythondev_help_August_2018-03-02T16:02:44.000105
1,520,006,564.000105
37,010
pythondev
help
error description - Unknown options: --include,*.json
2018-03-02T16:04:11.000427
August
pythondev_help_August_2018-03-02T16:04:11.000427
1,520,006,651.000427
37,011
pythondev
help
I would like to embed this in my python program subprocess
2018-03-02T16:04:43.000139
August
pythondev_help_August_2018-03-02T16:04:43.000139
1,520,006,683.000139
37,012
pythondev
help
<https://stackoverflow.com/a/45623145/214892>
2018-03-02T16:15:09.000402
Floy
pythondev_help_Floy_2018-03-02T16:15:09.000402
1,520,007,309.000402
37,013
pythondev
help
Tried this as well but doesn't work. Logically it looks right but there is something in the s3 ls which doesn't search the string
2018-03-02T16:44:15.000621
August
pythondev_help_August_2018-03-02T16:44:15.000621
1,520,009,055.000621
37,014
pythondev
help
well, S3 is just a key-value store
2018-03-02T16:46:51.000102
Floy
pythondev_help_Floy_2018-03-02T16:46:51.000102
1,520,009,211.000102
37,015
pythondev
help
it looks like it has folders, but its just a UI abstraction on the base key-value structure
2018-03-02T16:47:20.000299
Floy
pythondev_help_Floy_2018-03-02T16:47:20.000299
1,520,009,240.000299
37,016
pythondev
help
so if you want to search for a match in a key, you pretty much have to write the code yourself
2018-03-02T16:47:40.000395
Floy
pythondev_help_Floy_2018-03-02T16:47:40.000395
1,520,009,260.000395
37,017
pythondev
help
Anyone have experience with Chatterbot?
2018-03-02T17:01:27.000091
Sha
pythondev_help_Sha_2018-03-02T17:01:27.000091
1,520,010,087.000091
37,018
pythondev
help
Anyone running 3.6.4 on Windows 10 Linux subsystem?
2018-03-02T17:19:06.000401
Porsha
pythondev_help_Porsha_2018-03-02T17:19:06.000401
1,520,011,146.000401
37,019
pythondev
help
<@Stefan> :taco: thanks for helping out in DMs!
2018-03-02T17:56:55.000126
Irene
pythondev_help_Irene_2018-03-02T17:56:55.000126
1,520,013,415.000126
37,020
pythondev
help
Has anyone ever created an api endpoint to retrieve logs from their app?
2018-03-02T18:31:16.000278
Kelsey
pythondev_help_Kelsey_2018-03-02T18:31:16.000278
1,520,015,476.000278
37,021
pythondev
help
for example `curl -X GET localhost:8080/logs?count={last_x_ammount_count}`
2018-03-02T18:31:38.000350
Kelsey
pythondev_help_Kelsey_2018-03-02T18:31:38.000350
1,520,015,498.00035
37,022
pythondev
help
just curious to know if its feasebale or if there is a best practice for this?
2018-03-02T18:32:19.000004
Kelsey
pythondev_help_Kelsey_2018-03-02T18:32:19.000004
1,520,015,539.000004
37,023