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 imported it like I mentioned here
2018-01-26T11:46:47.000614
Trenton
pythondev_help_Trenton_2018-01-26T11:46:47.000614
1,516,967,207.000614
31,424
pythondev
help
In the main script, I’ve also tried doing it from within the myfuncs file
2018-01-26T11:47:21.000968
Trenton
pythondev_help_Trenton_2018-01-26T11:47:21.000968
1,516,967,241.000968
31,425
pythondev
help
can you also provide the code where you do import of <http://scipy.io|scipy.io>?
2018-01-26T11:47:30.000439
Sadye
pythondev_help_Sadye_2018-01-26T11:47:30.000439
1,516,967,250.000439
31,426
pythondev
help
ok, can you provide full error traceback then?
2018-01-26T11:50:26.001108
Sadye
pythondev_help_Sadye_2018-01-26T11:50:26.001108
1,516,967,426.001108
31,427
pythondev
help
Was working fine until I tried moving sub functions into a separate file
2018-01-26T11:53:09.000820
Trenton
pythondev_help_Trenton_2018-01-26T11:53:09.000820
1,516,967,589.00082
31,428
pythondev
help
Did you rename any of the files or folders?
2018-01-26T11:54:08.000144
Porsha
pythondev_help_Porsha_2018-01-26T11:54:08.000144
1,516,967,648.000144
31,429
pythondev
help
You might have a naming conflict
2018-01-26T11:55:01.000169
Porsha
pythondev_help_Porsha_2018-01-26T11:55:01.000169
1,516,967,701.000169
31,430
pythondev
help
no
2018-01-26T11:55:42.000187
Trenton
pythondev_help_Trenton_2018-01-26T11:55:42.000187
1,516,967,742.000187
31,431
pythondev
help
I don't think so. Name `spio` should be defined inside of `functionsRPIS.py` file
2018-01-26T11:55:50.000983
Sadye
pythondev_help_Sadye_2018-01-26T11:55:50.000983
1,516,967,750.000983
31,432
pythondev
help
I tried defining it inside as well
2018-01-26T11:56:08.000441
Trenton
pythondev_help_Trenton_2018-01-26T11:56:08.000441
1,516,967,768.000441
31,433
pythondev
help
try again and show the new traceback :slightly_smiling_face: It seems weird
2018-01-26T11:57:17.000597
Sadye
pythondev_help_Sadye_2018-01-26T11:57:17.000597
1,516,967,837.000597
31,434
pythondev
help
Also, as a disclaimer, I don't know myself how notebook handles namespaces or performs imports
2018-01-26T11:58:25.000557
Sadye
pythondev_help_Sadye_2018-01-26T11:58:25.000557
1,516,967,905.000557
31,435
pythondev
help
Yeah, I’m wondering whether it’s an issue with trying to do it from a notebook
2018-01-26T11:58:49.000981
Trenton
pythondev_help_Trenton_2018-01-26T11:58:49.000981
1,516,967,929.000981
31,436
pythondev
help
Thanks for the help, I’m very confused about this!
2018-01-26T11:59:01.001092
Trenton
pythondev_help_Trenton_2018-01-26T11:59:01.001092
1,516,967,941.001092
31,437
pythondev
help
Hey, fixed it (in a slightly hacky way)
2018-01-26T12:16:25.000224
Trenton
pythondev_help_Trenton_2018-01-26T12:16:25.000224
1,516,968,985.000224
31,438
pythondev
help
<@Trenton> the import for notebooks looks in the sys.path the same way IDLE or the repl does. valentjedi was curious about the virtualenv because they will make the difference about importing. You got a NameEr(ror not an Import Error though).... do tell
2018-01-26T12:16:30.000131
Monroe
pythondev_help_Monroe_2018-01-26T12:16:30.000131
1,516,968,990.000131
31,439
pythondev
help
If anyone’s interested, I moved import commands to the functionsRRIS.py file and then ran ‘%run functionsRRIS.py’ from the notebook
2018-01-26T12:17:21.000379
Trenton
pythondev_help_Trenton_2018-01-26T12:17:21.000379
1,516,969,041.000379
31,440
pythondev
help
good to hear, sounds like their might have been a setup.py or `__init__` issue
2018-01-26T12:19:04.000725
Monroe
pythondev_help_Monroe_2018-01-26T12:19:04.000725
1,516,969,144.000725
31,441
pythondev
help
<@Monroe> I’m actually running the notebook on a dev platform online, so I didn’t set up environment myself
2018-01-26T12:19:15.000556
Trenton
pythondev_help_Trenton_2018-01-26T12:19:15.000556
1,516,969,155.000556
31,442
pythondev
help
(I’m a little bit new to python, so sorry if I’m being naive
2018-01-26T12:19:32.000902
Trenton
pythondev_help_Trenton_2018-01-26T12:19:32.000902
1,516,969,172.000902
31,443
pythondev
help
there's always something to learn
2018-01-26T12:19:44.000416
Monroe
pythondev_help_Monroe_2018-01-26T12:19:44.000416
1,516,969,184.000416
31,444
pythondev
help
Thanks :slightly_smiling_face:
2018-01-26T12:20:36.000211
Trenton
pythondev_help_Trenton_2018-01-26T12:20:36.000211
1,516,969,236.000211
31,445
pythondev
help
what exactly is __int__
2018-01-26T12:20:41.000721
Trenton
pythondev_help_Trenton_2018-01-26T12:20:41.000721
1,516,969,241.000721
31,446
pythondev
help
tried searching and it didn’t come up with anything that explanatory
2018-01-26T12:21:02.000653
Trenton
pythondev_help_Trenton_2018-01-26T12:21:02.000653
1,516,969,262.000653
31,447
pythondev
help
<@Trenton> <http://bit.ly/pypackages|bit.ly/pypackages>
2018-01-26T12:22:10.000832
Aleida
pythondev_help_Aleida_2018-01-26T12:22:10.000832
1,516,969,330.000832
31,448
pythondev
help
<@Trenton> Also, there is a <http://docs.python-guide.org/en/latest/writing/structure/#modules>, written by <@Meghan>, which explains things very nice
2018-01-26T12:23:31.000587
Sadye
pythondev_help_Sadye_2018-01-26T12:23:31.000587
1,516,969,411.000587
31,449
pythondev
help
Awesome, thanks <@Aleida>
2018-01-26T12:23:33.000827
Trenton
pythondev_help_Trenton_2018-01-26T12:23:33.000827
1,516,969,413.000827
31,450
pythondev
help
Ok perfect
2018-01-26T12:23:49.000175
Trenton
pythondev_help_Trenton_2018-01-26T12:23:49.000175
1,516,969,429.000175
31,451
pythondev
help
Thanks everyone, really appreciate the help :slightly_smiling_face:
2018-01-26T12:23:56.000719
Trenton
pythondev_help_Trenton_2018-01-26T12:23:56.000719
1,516,969,436.000719
31,452
pythondev
help
I’ll have a read up now
2018-01-26T12:24:07.000863
Trenton
pythondev_help_Trenton_2018-01-26T12:24:07.000863
1,516,969,447.000863
31,453
pythondev
help
When looking at a python profile, what is the best stat to look at / sort by? I realize the answer is probably `it depends`, but i'm unsure what the difference between tottime and cumtime is
2018-01-26T12:47:02.000452
Lai
pythondev_help_Lai_2018-01-26T12:47:02.000452
1,516,970,822.000452
31,454
pythondev
help
Also: any recommendations on tools for viewing a `3.6` profile?
2018-01-26T12:48:16.000782
Lai
pythondev_help_Lai_2018-01-26T12:48:16.000782
1,516,970,896.000782
31,455
pythondev
help
<https://stackoverflow.com/a/40404052>
2018-01-26T12:55:49.000048
Aleida
pythondev_help_Aleida_2018-01-26T12:55:49.000048
1,516,971,349.000048
31,456
pythondev
help
I like `snakeviz`
2018-01-26T12:56:08.000192
Aleida
pythondev_help_Aleida_2018-01-26T12:56:08.000192
1,516,971,368.000192
31,457
pythondev
help
I didn't think snakeviz supported 3.6?
2018-01-26T13:06:28.000439
Lai
pythondev_help_Lai_2018-01-26T13:06:28.000439
1,516,971,988.000439
31,458
pythondev
help
OHH, now I see
2018-01-26T13:09:28.000378
Lai
pythondev_help_Lai_2018-01-26T13:09:28.000378
1,516,972,168.000378
31,459
pythondev
help
lemme try that...
2018-01-26T13:09:30.000348
Lai
pythondev_help_Lai_2018-01-26T13:09:30.000348
1,516,972,170.000348
31,460
pythondev
help
Hello! I need help with this function: ``` def test(key, i=1): url = urlparse(URL + 'issue/' + key + '-' + str(i)) try: task = interaction(url, 'GET', None) return task except Exception: i += 1 test(key, i) ``` As you can see I try to return the result of the f...
2018-01-26T14:28:35.000190
Flo
pythondev_help_Flo_2018-01-26T14:28:35.000190
1,516,976,915.00019
31,461
pythondev
help
<@Flo> I don't see you returning anything in the except clause
2018-01-26T14:50:03.000339
Lai
pythondev_help_Lai_2018-01-26T14:50:03.000339
1,516,978,203.000339
31,462
pythondev
help
<@Lai> But I need return from try statement only.
2018-01-26T14:51:27.000632
Flo
pythondev_help_Flo_2018-01-26T14:51:27.000632
1,516,978,287.000632
31,463
pythondev
help
<@Flo> So this is a recursive function correct?
2018-01-26T14:57:32.000115
Lai
pythondev_help_Lai_2018-01-26T14:57:32.000115
1,516,978,652.000115
31,464
pythondev
help
How many times is exept Exception called
2018-01-26T14:57:40.001003
Lai
pythondev_help_Lai_2018-01-26T14:57:40.001003
1,516,978,660.001003
31,465
pythondev
help
Yes, that's right it's recursive.
2018-01-26T14:58:31.000447
Flo
pythondev_help_Flo_2018-01-26T14:58:31.000447
1,516,978,711.000447
31,466
pythondev
help
The number of exceptions is varies. Is it important?
2018-01-26T14:59:22.000170
Flo
pythondev_help_Flo_2018-01-26T14:59:22.000170
1,516,978,762.00017
31,467
pythondev
help
its possible to have a case of infinite recursion
2018-01-26T15:42:28.000550
Floy
pythondev_help_Floy_2018-01-26T15:42:28.000550
1,516,981,348.00055
31,468
pythondev
help
since you don’t have a base case
2018-01-26T15:42:38.000503
Floy
pythondev_help_Floy_2018-01-26T15:42:38.000503
1,516,981,358.000503
31,469
pythondev
help
He needs to return the `test` in the exception clause. Nothing ever returns that, so after the first call calls `test` it doesn't return that value, so there's now way for the thing to bubble up
2018-01-26T15:45:17.000337
Lai
pythondev_help_Lai_2018-01-26T15:45:17.000337
1,516,981,517.000337
31,470
pythondev
help
What returns `test(key, i)`? Nothing. so nothing is ever returned from the function if that `test` is called
2018-01-26T15:45:52.000430
Lai
pythondev_help_Lai_2018-01-26T15:45:52.000430
1,516,981,552.00043
31,471
pythondev
help
Please, advise, how should rewrite this function to return only error-free results of the function `interaction`?
2018-01-26T15:56:35.000417
Flo
pythondev_help_Flo_2018-01-26T15:56:35.000417
1,516,982,195.000417
31,472
pythondev
help
Don't use try except like that, for one
2018-01-26T15:56:55.000599
Lai
pythondev_help_Lai_2018-01-26T15:56:55.000599
1,516,982,215.000599
31,473
pythondev
help
Do proper checks, and use exceptions properly
2018-01-26T15:57:07.000245
Lai
pythondev_help_Lai_2018-01-26T15:57:07.000245
1,516,982,227.000245
31,474
pythondev
help
Why is interaction raising an exception?
2018-01-26T15:57:26.000181
Lai
pythondev_help_Lai_2018-01-26T15:57:26.000181
1,516,982,246.000181
31,475
pythondev
help
IF YOU MUST throw, match on a more specific error, like `PageNotFound` error, return that one, and properly handle the other exception cases
2018-01-26T15:58:17.000269
Lai
pythondev_help_Lai_2018-01-26T15:58:17.000269
1,516,982,297.000269
31,476
pythondev
help
`interaction` is function which interacts with rest api, so it raise exception if status of request is no 200.
2018-01-26T16:01:08.000666
Flo
pythondev_help_Flo_2018-01-26T16:01:08.000666
1,516,982,468.000666
31,477
pythondev
help
<@Lai> thanks for the advice! :taco: I'll try to study try.. except a bit more.
2018-01-26T16:05:45.000391
Flo
pythondev_help_Flo_2018-01-26T16:05:45.000391
1,516,982,745.000391
31,478
pythondev
help
Hi, I want to read the messages of a private channel. How can I do that? I have already joined that channel from my slack account. I want to write a script which can get me all the messages!
2018-01-26T16:40:23.000434
Gail
pythondev_help_Gail_2018-01-26T16:40:23.000434
1,516,984,823.000434
31,479
pythondev
help
this claims to support private channel and DM exports: <https://gist.github.com/Chandler/fb7a070f52883849de35>
2018-01-26T16:45:16.000229
Nicolette
pythondev_help_Nicolette_2018-01-26T16:45:16.000229
1,516,985,116.000229
31,480
pythondev
help
<@Nicolette> - I am already looking at this! Lets see if I could make it work! Thanks :slightly_smiling_face:
2018-01-26T16:46:57.000415
Gail
pythondev_help_Gail_2018-01-26T16:46:57.000415
1,516,985,217.000415
31,481
pythondev
help
Hey friends. What postgresql library do you recommend? I'm writing a tool to pull data from our database to debug issues
2018-01-26T20:40:22.000204
Lai
pythondev_help_Lai_2018-01-26T20:40:22.000204
1,516,999,222.000204
31,482
pythondev
help
Pretty basic stuff
2018-01-26T20:40:33.000196
Lai
pythondev_help_Lai_2018-01-26T20:40:33.000196
1,516,999,233.000196
31,483
pythondev
help
<@Lai> you'll get a lot of use out of SQLAlchemy but the learning curve can be a bit of a...cliff
2018-01-26T21:12:26.000171
Garrett
pythondev_help_Garrett_2018-01-26T21:12:26.000171
1,517,001,146.000171
31,484
pythondev
help
psycopg2
2018-01-26T21:16:18.000229
Sharee
pythondev_help_Sharee_2018-01-26T21:16:18.000229
1,517,001,378.000229
31,485
pythondev
help
hey, does anyone know how to send emails from docker container?
2018-01-26T21:23:34.000264
Maisie
pythondev_help_Maisie_2018-01-26T21:23:34.000264
1,517,001,814.000264
31,486
pythondev
help
just curious. the PEP 567 was recently accepted. What does this mean for frameworks like flask that use it heavily? <https://www.python.org/dev/peps/pep-0567/>
2018-01-26T21:40:20.000175
Heriberto
pythondev_help_Heriberto_2018-01-26T21:40:20.000175
1,517,002,820.000175
31,487
pythondev
help
Hey-o, where is the best place to get feedback for beginner projects? I have a simple program that 'works' but I would like feedback on how to make the code better/more efficient. Reddit? Stack Overflow? A channel here? They are all new to me so trying find the best 'culture' for feedback. Help a newbie out. Thanks :sl...
2018-01-26T21:55:52.000261
Madlyn
pythondev_help_Madlyn_2018-01-26T21:55:52.000261
1,517,003,752.000261
31,488
pythondev
help
here is good for most general questions.
2018-01-26T21:56:44.000146
Heriberto
pythondev_help_Heriberto_2018-01-26T21:56:44.000146
1,517,003,804.000146
31,489
pythondev
help
if you have a project on github you can link it for code samples as well.
2018-01-26T21:57:02.000216
Heriberto
pythondev_help_Heriberto_2018-01-26T21:57:02.000216
1,517,003,822.000216
31,490
pythondev
help
a lot of people here also also fans of reddit/r/python (many here came from there).
2018-01-26T21:57:39.000025
Heriberto
pythondev_help_Heriberto_2018-01-26T21:57:39.000025
1,517,003,859.000025
31,491
pythondev
help
<@Madlyn> ^^
2018-01-26T21:57:46.000040
Heriberto
pythondev_help_Heriberto_2018-01-26T21:57:46.000040
1,517,003,866.00004
31,492
pythondev
help
Thanks <@Heriberto> , I'll put it on github so I can share.
2018-01-26T22:02:07.000052
Madlyn
pythondev_help_Madlyn_2018-01-26T22:02:07.000052
1,517,004,127.000052
31,493
pythondev
help
if its small it can be a gist too.
2018-01-26T22:06:13.000233
Heriberto
pythondev_help_Heriberto_2018-01-26T22:06:13.000233
1,517,004,373.000233
31,494
pythondev
help
<@Garrett> SQLAlchemy is amazing, great suggestion
2018-01-26T23:15:32.000003
Lai
pythondev_help_Lai_2018-01-26T23:15:32.000003
1,517,008,532.000003
31,495
pythondev
help
NOT opting into the ORM at this point
2018-01-26T23:15:37.000066
Lai
pythondev_help_Lai_2018-01-26T23:15:37.000066
1,517,008,537.000066
31,496
pythondev
help
But it has a nice API for executing escaped string queries
2018-01-26T23:15:59.000137
Lai
pythondev_help_Lai_2018-01-26T23:15:59.000137
1,517,008,559.000137
31,497
pythondev
help
<@Madlyn> there are good help sites. <https://codereview.stackexchange.com/> is another.
2018-01-27T00:01:51.000212
Roselyn
pythondev_help_Roselyn_2018-01-27T00:01:51.000212
1,517,011,311.000212
31,498
pythondev
help
It means nothing for flask etc. The pep is mainly about taking the concept of thread locals and making it more generic so that it also works on coroutines (async functions). Thread locals as they currently exist, wont change.
2018-01-27T00:12:07.000109
Ariane
pythondev_help_Ariane_2018-01-27T00:12:07.000109
1,517,011,927.000109
31,499
pythondev
help
<@Lai> if you dont want a full orm, the sqlalchemy core is still quite good.
2018-01-27T00:12:45.000144
Heriberto
pythondev_help_Heriberto_2018-01-27T00:12:45.000144
1,517,011,965.000144
31,500
pythondev
help
connect to an smtp server.
2018-01-27T00:12:47.000020
Ariane
pythondev_help_Ariane_2018-01-27T00:12:47.000020
1,517,011,967.00002
31,501
pythondev
help
ah ok. thanks.
2018-01-27T00:13:16.000173
Heriberto
pythondev_help_Heriberto_2018-01-27T00:13:16.000173
1,517,011,996.000173
31,502
pythondev
help
<@Ariane> :taco:
2018-01-27T00:13:26.000234
Heriberto
pythondev_help_Heriberto_2018-01-27T00:13:26.000234
1,517,012,006.000234
31,503
pythondev
help
haha , i have some issues with that , lose the comunication with the smtp server in the process,it works on my machine, but not from the docker container <@Ariane>
2018-01-27T00:35:57.000059
Maisie
pythondev_help_Maisie_2018-01-27T00:35:57.000059
1,517,013,357.000059
31,504
pythondev
help
Weird. Outgoing network should work the exact same
2018-01-27T01:11:14.000240
Ariane
pythondev_help_Ariane_2018-01-27T01:11:14.000240
1,517,015,474.00024
31,505
pythondev
help
Hi, I am trying to augment the RNN in <https://github.com/OpenNMT/OpenNMT-py> with a hierarchical softmax layer, does anyone know where to get started?
2018-01-27T04:00:53.000316
Jessie
pythondev_help_Jessie_2018-01-27T04:00:53.000316
1,517,025,653.000316
31,506
pythondev
help
+-+
2018-01-27T08:21:50.000030
Estell
pythondev_help_Estell_2018-01-27T08:21:50.000030
1,517,041,310.00003
31,507
pythondev
help
how to read both stdout and stderr in seperate channels in a while loop?
2018-01-27T11:02:02.000175
Stefan
pythondev_help_Stefan_2018-01-27T11:02:02.000175
1,517,050,922.000175
31,508
pythondev
help
Hi! I am sort of intermediate in Python programming and would like to delve more into the algorithmic and analytic side of it. Where can I find resources for algorithm analysis and designing? Thanks!
2018-01-27T11:07:35.000073
Stanley
pythondev_help_Stanley_2018-01-27T11:07:35.000073
1,517,051,255.000073
31,509
pythondev
help
<@Stanley> you mean like e.g. implemented the new fastest sorting method?
2018-01-27T11:58:34.000067
Stefan
pythondev_help_Stefan_2018-01-27T11:58:34.000067
1,517,054,314.000067
31,510
pythondev
help
<@Stefan> yup, sort of. I am already familiar with the basic sorting techniques and want to study more about algorithms and their implementation and all.
2018-01-27T12:12:48.000071
Stanley
pythondev_help_Stanley_2018-01-27T12:12:48.000071
1,517,055,168.000071
31,511
pythondev
help
That sounds very generic to me...
2018-01-27T12:16:31.000087
Stefan
pythondev_help_Stefan_2018-01-27T12:16:31.000087
1,517,055,391.000087
31,512
pythondev
help
<@Stanley> check out our learning resources on algorithms: <https://github.com/pyslackers/learning-resources/blob/master/topics/algorithms.md>
2018-01-27T12:22:10.000133
Brande
pythondev_help_Brande_2018-01-27T12:22:10.000133
1,517,055,730.000133
31,513
pythondev
help
the video at the bottom is an entire free course on algorithms if you want to go that deep. not all of this is implemented in python, but there is a repo of algorithms implemented in python here: <https://github.com/TheAlgorithms/Python>
2018-01-27T12:22:57.000165
Brande
pythondev_help_Brande_2018-01-27T12:22:57.000165
1,517,055,777.000165
31,514
pythondev
help
<@Brande> Thanks for your reply. It is exactly what I was looking for.
2018-01-27T12:27:23.000145
Stanley
pythondev_help_Stanley_2018-01-27T12:27:23.000145
1,517,056,043.000145
31,515
pythondev
help
also <@Stefan> what did you mean by “separate channels”
2018-01-27T12:29:48.000016
Brande
pythondev_help_Brande_2018-01-27T12:29:48.000016
1,517,056,188.000016
31,516
pythondev
help
@joe how can I make sure I read error and output separately, but non blocking
2018-01-27T12:32:40.000117
Stefan
pythondev_help_Stefan_2018-01-27T12:32:40.000117
1,517,056,360.000117
31,517
pythondev
help
Maybe delegate.py I'm thinking now
2018-01-27T12:32:58.000145
Stefan
pythondev_help_Stefan_2018-01-27T12:32:58.000145
1,517,056,378.000145
31,518
pythondev
help
In a subprocess?
2018-01-27T12:34:22.000174
Brande
pythondev_help_Brande_2018-01-27T12:34:22.000174
1,517,056,462.000174
31,519
pythondev
help
Best way to get `25` and `31` out of `From 25 January 2018 to 31 January 2018`? Dynamic string, but I don’t care about the year. Using `[\d]{2}` but that also hits `2018` since its 2 or more I think? Also tried `[\d]{2,}` :confused:
2018-01-27T12:42:47.000131
Breana
pythondev_help_Breana_2018-01-27T12:42:47.000131
1,517,056,967.000131
31,520
pythondev
help
The docs also say `{m} exactly m occurrences` but `{2}` hits `2018` :confounded:
2018-01-27T12:44:39.000028
Breana
pythondev_help_Breana_2018-01-27T12:44:39.000028
1,517,057,079.000028
31,521
pythondev
help
`r'(?&lt;!\d)(\d{2})(?!\d)'` should work, it ensures there are no digits before/after
2018-01-27T12:50:47.000018
Brande
pythondev_help_Brande_2018-01-27T12:50:47.000018
1,517,057,447.000018
31,522
pythondev
help
Great. Thanks <@Brande> :taco: :taco:
2018-01-27T12:52:57.000044
Breana
pythondev_help_Breana_2018-01-27T12:52:57.000044
1,517,057,577.000044
31,523