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 | Yup. and yet, i will ask her, we are not in same place. I am in china and she’s in AU. so can ask her to join later, may be tomorrow | 2019-06-03T10:21:57.484900 | Starla | pythondev_help_Starla_2019-06-03T10:21:57.484900 | 1,559,557,317.4849 | 26,521 |
pythondev | help | Sounds good | 2019-06-03T10:22:28.485100 | Ashley | pythondev_help_Ashley_2019-06-03T10:22:28.485100 | 1,559,557,348.4851 | 26,522 |
pythondev | help | Thanks for u guys help and advice | 2019-06-03T10:24:43.485400 | Starla | pythondev_help_Starla_2019-06-03T10:24:43.485400 | 1,559,557,483.4854 | 26,523 |
pythondev | help | :+1: | 2019-06-03T10:26:41.485600 | Ashley | pythondev_help_Ashley_2019-06-03T10:26:41.485600 | 1,559,557,601.4856 | 26,524 |
pythondev | help | Sadly, I'm not familiar with pyspark | 2019-06-03T10:29:50.485700 | Marth | pythondev_help_Marth_2019-06-03T10:29:50.485700 | 1,559,557,790.4857 | 26,525 |
pythondev | help | Can anyone suggest me to work on some open source projects. I am a beginner | 2019-06-03T10:44:00.487000 | Terrie | pythondev_help_Terrie_2019-06-03T10:44:00.487000 | 1,559,558,640.487 | 26,526 |
pythondev | help | Python based, or any language? | 2019-06-03T10:47:03.487300 | Teresa | pythondev_help_Teresa_2019-06-03T10:47:03.487300 | 1,559,558,823.4873 | 26,527 |
pythondev | help | Python and react js. | 2019-06-03T10:50:18.487900 | Terrie | pythondev_help_Terrie_2019-06-03T10:50:18.487900 | 1,559,559,018.4879 | 26,528 |
pythondev | help | Hey guys | 2019-06-03T10:57:02.488500 | Bethanie | pythondev_help_Bethanie_2019-06-03T10:57:02.488500 | 1,559,559,422.4885 | 26,529 |
pythondev | help | ```a = [1,2,3]
b = a
a.append(4)
print(b)``` | 2019-06-03T10:57:57.489300 | Bethanie | pythondev_help_Bethanie_2019-06-03T10:57:57.489300 | 1,559,559,477.4893 | 26,530 |
pythondev | help | How can I avoid b becoming 1,2,3,4? | 2019-06-03T10:58:03.489500 | Bethanie | pythondev_help_Bethanie_2019-06-03T10:58:03.489500 | 1,559,559,483.4895 | 26,531 |
pythondev | help | <https://stackoverflow.com/questions/3978492/fastest-way-to-duplicate-an-array-in-javascript-slice-vs-for-loop> | 2019-06-03T10:58:49.489900 | Teresa | pythondev_help_Teresa_2019-06-03T10:58:49.489900 | 1,559,559,529.4899 | 26,532 |
pythondev | help | <@Teresa> the question is python | 2019-06-03T10:59:19.490600 | Hiroko | pythondev_help_Hiroko_2019-06-03T10:59:19.490600 | 1,559,559,559.4906 | 26,533 |
pythondev | help | Ooops | 2019-06-03T10:59:25.491000 | Teresa | pythondev_help_Teresa_2019-06-03T10:59:25.491000 | 1,559,559,565.491 | 26,534 |
pythondev | help | <@Bethanie>, use copy | 2019-06-03T10:59:29.491400 | Hiroko | pythondev_help_Hiroko_2019-06-03T10:59:29.491400 | 1,559,559,569.4914 | 26,535 |
pythondev | help | Sorry | 2019-06-03T10:59:29.491500 | Teresa | pythondev_help_Teresa_2019-06-03T10:59:29.491500 | 1,559,559,569.4915 | 26,536 |
pythondev | help | Awesome thanks | 2019-06-03T10:59:35.492000 | Bethanie | pythondev_help_Bethanie_2019-06-03T10:59:35.492000 | 1,559,559,575.492 | 26,537 |
pythondev | help | a.copy() | 2019-06-03T10:59:37.492200 | Bethanie | pythondev_help_Bethanie_2019-06-03T10:59:37.492200 | 1,559,559,577.4922 | 26,538 |
pythondev | help | Quick question though, why does this happen/ | 2019-06-03T10:59:53.493000 | Bethanie | pythondev_help_Bethanie_2019-06-03T10:59:53.493000 | 1,559,559,593.493 | 26,539 |
pythondev | help | when you do `b = a`, you’re assigning a reference from A to B | 2019-06-03T10:59:57.493200 | Hiroko | pythondev_help_Hiroko_2019-06-03T10:59:57.493200 | 1,559,559,597.4932 | 26,540 |
pythondev | help | Python is by reference? | 2019-06-03T11:00:08.494000 | Bethanie | pythondev_help_Bethanie_2019-06-03T11:00:08.494000 | 1,559,559,608.494 | 26,541 |
pythondev | help | (Fairly new) | 2019-06-03T11:00:13.494400 | Bethanie | pythondev_help_Bethanie_2019-06-03T11:00:13.494400 | 1,559,559,613.4944 | 26,542 |
pythondev | help | its referring to the original list, and theres no implicit copying involved | 2019-06-03T11:00:16.494500 | Hiroko | pythondev_help_Hiroko_2019-06-03T11:00:16.494500 | 1,559,559,616.4945 | 26,543 |
pythondev | help | Hello, Is there a way of using pyspark or python without pandas I can get the difference of two data frame columns in pandas it is df1.columns(df2.columns) | 2019-06-03T11:00:45.495200 | Serita | pythondev_help_Serita_2019-06-03T11:00:45.495200 | 1,559,559,645.4952 | 26,544 |
pythondev | help | <https://jeffknupp.com/blog/2012/11/13/is-python-callbyvalue-or-callbyreference-neither/> | 2019-06-03T11:00:47.495400 | Hiroko | pythondev_help_Hiroko_2019-06-03T11:00:47.495400 | 1,559,559,647.4954 | 26,545 |
pythondev | help | I recall reading some article saying neither | 2019-06-03T11:01:00.495800 | Bethanie | pythondev_help_Bethanie_2019-06-03T11:01:00.495800 | 1,559,559,660.4958 | 26,546 |
pythondev | help | Oh I guess what I read is true <@Hiroko> thanks | 2019-06-03T11:01:22.496300 | Bethanie | pythondev_help_Bethanie_2019-06-03T11:01:22.496300 | 1,559,559,682.4963 | 26,547 |
pythondev | help | <@Terrie> If you're just looking for project ideas to learn with:
• <https://projecteuler.net/archives>
• <https://www.dreamincode.net/forums/topic/78802-martyr2s-mega-project-ideas-list/>
• <https://github.com/karan/Projects/>
If you are actually looking for an Open Source project to contribute to:
• <https://www.firsttimersonly.com/>
• <https://www.codetriage.com/?language=Python>
• <https://github.com/MunGell/awesome-for-beginners#python> | 2019-06-03T11:10:20.497900 | Carmen | pythondev_help_Carmen_2019-06-03T11:10:20.497900 | 1,559,560,220.4979 | 26,548 |
pythondev | help | Hey has anyone tried this app Link Reminder? It's in the Slack `New & Noteworthy` section: <http://r.labfortysix.com/link-reminder-1>
I'm interested in using it for my company, just want to get some feedback in case someone here has used it before. Looks pretty interesting, you add the bot to your work channel and it automatically creates reminders as your team chats, then if someone's done their task, it sends you a DM so you don't have to waste time or feel awkward following up with people. | 2019-06-03T11:13:02.498100 | Thelma | pythondev_help_Thelma_2019-06-03T11:13:02.498100 | 1,559,560,382.4981 | 26,549 |
pythondev | help | <@Deana> didn't see any answer to your issue.. but from the looks of the traceback.. your python is trying to call python2 an not python3 ?? | 2019-06-03T11:23:46.001900 | Dorothy | pythondev_help_Dorothy_2019-06-03T11:23:46.001900 | 1,559,561,026.0019 | 26,550 |
pythondev | help | <@Dorothy> yes, I believe because MacOS runs Python2.7 natively for a lot of system utils… but I still get the same hanging issue when I run a script and explicitly call Python3.7, like I did just now….
```
(myvenv) nyb-m-hernandezj:Scripts jovanhernandez$ python3 argos_config_setup.py
Traceback (most recent call last):
File "argos_config_setup.py", line 240, in <module>
check_config_table()
File "argos_config_setup.py", line 16, in check_config_table
response = client.describe_table(TableName=argos_config_table)
File "/Users/jovanhernandez/.virtualenvs/myvenv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/Users/jovanhernandez/.virtualenvs/myvenv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the DescribeTable operation: The security token included in the request is invalid.
###IGNORE THE ABOVE###
^CException ignored in: <module 'threading' from '/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py'>
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 1281, in _shutdown
t.join()
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 1032, in join
self._wait_for_tstate_lock()
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 1048, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt
``` | 2019-06-03T11:25:08.002900 | Deana | pythondev_help_Deana_2019-06-03T11:25:08.002900 | 1,559,561,108.0029 | 26,551 |
pythondev | help | Even when I provide the proper security token/credentials, and the script executes properly, my terminal still hangs I need to cancel out with Ctrl+C | 2019-06-03T11:26:17.003800 | Deana | pythondev_help_Deana_2019-06-03T11:26:17.003800 | 1,559,561,177.0038 | 26,552 |
pythondev | help | This could totally be my inexperience and ignorance of how Python works and this could be totally expected behavior based on the code in the script, but I just find it odd it happens on a bunch of different Python scripts from a bunch of different repos, so I thought it could be a system wide issue and not a code specific issue | 2019-06-03T11:28:07.004900 | Deana | pythondev_help_Deana_2019-06-03T11:28:07.004900 | 1,559,561,287.0049 | 26,553 |
pythondev | help | <@Deana> you should always operate in a virtual env | 2019-06-03T11:28:14.005100 | Ashley | pythondev_help_Ashley_2019-06-03T11:28:14.005100 | 1,559,561,294.0051 | 26,554 |
pythondev | help | it helps with a lot of this | 2019-06-03T11:28:39.005800 | Ashley | pythondev_help_Ashley_2019-06-03T11:28:39.005800 | 1,559,561,319.0058 | 26,555 |
pythondev | help | <@Ashley> lol yes I did install and start this practice after this headache… and now I feel I’ve created such a mess it’s hard to untangle | 2019-06-03T11:28:41.005900 | Deana | pythondev_help_Deana_2019-06-03T11:28:41.005900 | 1,559,561,321.0059 | 26,556 |
pythondev | help | shouldn't be too difficult | 2019-06-03T11:29:06.006100 | Ashley | pythondev_help_Ashley_2019-06-03T11:29:06.006100 | 1,559,561,346.0061 | 26,557 |
pythondev | help | do you have brew installed? | 2019-06-03T11:29:11.006500 | Ashley | pythondev_help_Ashley_2019-06-03T11:29:11.006500 | 1,559,561,351.0065 | 26,558 |
pythondev | help | I’m using brew as my package manager | 2019-06-03T11:29:30.006800 | Deana | pythondev_help_Deana_2019-06-03T11:29:30.006800 | 1,559,561,370.0068 | 26,559 |
pythondev | help | awesome | 2019-06-03T11:29:34.007000 | Ashley | pythondev_help_Ashley_2019-06-03T11:29:34.007000 | 1,559,561,374.007 | 26,560 |
pythondev | help | so you installed python 3 with brew? | 2019-06-03T11:29:47.007300 | Ashley | pythondev_help_Ashley_2019-06-03T11:29:47.007300 | 1,559,561,387.0073 | 26,561 |
pythondev | help | yes
```nyb-m-hernandezj:Scripts jovanhernandez$ which python3
/usr/local/bin/python3``` | 2019-06-03T11:30:14.007600 | Deana | pythondev_help_Deana_2019-06-03T11:30:14.007600 | 1,559,561,414.0076 | 26,562 |
pythondev | help | hmm | 2019-06-03T11:30:29.008000 | Ashley | pythondev_help_Ashley_2019-06-03T11:30:29.008000 | 1,559,561,429.008 | 26,563 |
pythondev | help | ok, so that should all be good | 2019-06-03T11:30:45.008200 | Ashley | pythondev_help_Ashley_2019-06-03T11:30:45.008200 | 1,559,561,445.0082 | 26,564 |
pythondev | help | so as long as you reference that when you make a virtual env, you should be fine | 2019-06-03T11:31:15.008800 | Ashley | pythondev_help_Ashley_2019-06-03T11:31:15.008800 | 1,559,561,475.0088 | 26,565 |
pythondev | help | when the virtual env is active, just make sure you ahve all the resources you need through pip | 2019-06-03T11:31:46.009300 | Ashley | pythondev_help_Ashley_2019-06-03T11:31:46.009300 | 1,559,561,506.0093 | 26,566 |
pythondev | help | maybe i need to recreate my virtualenv | 2019-06-03T11:31:48.009400 | Deana | pythondev_help_Deana_2019-06-03T11:31:48.009400 | 1,559,561,508.0094 | 26,567 |
pythondev | help | that can help sometimes | 2019-06-03T11:31:55.009600 | Ashley | pythondev_help_Ashley_2019-06-03T11:31:55.009600 | 1,559,561,515.0096 | 26,568 |
pythondev | help | just make sure that nothing is installed at the system level | 2019-06-03T11:32:04.009900 | Ashley | pythondev_help_Ashley_2019-06-03T11:32:04.009900 | 1,559,561,524.0099 | 26,569 |
pythondev | help | yea i think thats what the issue is. perhaps I should purge any instance of python3 and then activate virtualenv and install python3 again in the virtualenv? | 2019-06-03T11:32:35.010600 | Deana | pythondev_help_Deana_2019-06-03T11:32:35.010600 | 1,559,561,555.0106 | 26,570 |
pythondev | help | leave python2.7 as the only version of python on the system level? | 2019-06-03T11:32:47.010900 | Deana | pythondev_help_Deana_2019-06-03T11:32:47.010900 | 1,559,561,567.0109 | 26,571 |
pythondev | help | no, you'll need python 3 at the system level | 2019-06-03T11:33:04.011200 | Ashley | pythondev_help_Ashley_2019-06-03T11:33:04.011200 | 1,559,561,584.0112 | 26,572 |
pythondev | help | that way you can make a copy of it when you make a python 3 virtual env | 2019-06-03T11:33:22.011500 | Ashley | pythondev_help_Ashley_2019-06-03T11:33:22.011500 | 1,559,561,602.0115 | 26,573 |
pythondev | help | got it | 2019-06-03T11:33:27.011700 | Deana | pythondev_help_Deana_2019-06-03T11:33:27.011700 | 1,559,561,607.0117 | 26,574 |
pythondev | help | however, some stuff may have gotten installed at the system level that shouldn't have | 2019-06-03T11:33:42.012100 | Ashley | pythondev_help_Ashley_2019-06-03T11:33:42.012100 | 1,559,561,622.0121 | 26,575 |
pythondev | help | try running `python3 -m pip freeze` | 2019-06-03T11:33:57.012500 | Ashley | pythondev_help_Ashley_2019-06-03T11:33:57.012500 | 1,559,561,637.0125 | 26,576 |
pythondev | help | (without the virtualenv) | 2019-06-03T11:34:01.012700 | Ashley | pythondev_help_Ashley_2019-06-03T11:34:01.012700 | 1,559,561,641.0127 | 26,577 |
pythondev | help | and then `python2 -m pip freeze` | 2019-06-03T11:34:18.013000 | Ashley | pythondev_help_Ashley_2019-06-03T11:34:18.013000 | 1,559,561,658.013 | 26,578 |
pythondev | help | these will show you what packages were installed through pip at the system level | 2019-06-03T11:34:40.013500 | Ashley | pythondev_help_Ashley_2019-06-03T11:34:40.013500 | 1,559,561,680.0135 | 26,579 |
pythondev | help | I got
```nyb-m-hernandezj:Scripts jovanhernandez$ python2 -m pip freeze
-bash: python2: command not found``` | 2019-06-03T11:34:41.013600 | Deana | pythondev_help_Deana_2019-06-03T11:34:41.013600 | 1,559,561,681.0136 | 26,580 |
pythondev | help | but got a huge output of version when running python3 -m pip freeze | 2019-06-03T11:34:50.014000 | Deana | pythondev_help_Deana_2019-06-03T11:34:50.014000 | 1,559,561,690.014 | 26,581 |
pythondev | help | oh, then just `python` | 2019-06-03T11:35:06.014300 | Ashley | pythondev_help_Ashley_2019-06-03T11:35:06.014300 | 1,559,561,706.0143 | 26,582 |
pythondev | help | got it | 2019-06-03T11:35:20.014800 | Deana | pythondev_help_Deana_2019-06-03T11:35:20.014800 | 1,559,561,720.0148 | 26,583 |
pythondev | help | and yeah, I would wipe those out with `python3 -m pip uninstall <packages>` | 2019-06-03T11:35:25.015000 | Ashley | pythondev_help_Ashley_2019-06-03T11:35:25.015000 | 1,559,561,725.015 | 26,584 |
pythondev | help | `python3 -m` basically says "evaluate this as though I referenced the next thing as a module within `python3`" | 2019-06-03T11:36:18.016100 | Ashley | pythondev_help_Ashley_2019-06-03T11:36:18.016100 | 1,559,561,778.0161 | 26,585 |
pythondev | help | am i replaced `<packages>` with something specific? or can I just * wildcard it | 2019-06-03T11:36:23.016300 | Deana | pythondev_help_Deana_2019-06-03T11:36:23.016300 | 1,559,561,783.0163 | 26,586 |
pythondev | help | I've never tried `*` | 2019-06-03T11:36:36.016500 | Ashley | pythondev_help_Ashley_2019-06-03T11:36:36.016500 | 1,559,561,796.0165 | 26,587 |
pythondev | help | it might work | 2019-06-03T11:36:42.016700 | Ashley | pythondev_help_Ashley_2019-06-03T11:36:42.016700 | 1,559,561,802.0167 | 26,588 |
pythondev | help | but if not, just list all the installed packages | 2019-06-03T11:36:58.017200 | Ashley | pythondev_help_Ashley_2019-06-03T11:36:58.017200 | 1,559,561,818.0172 | 26,589 |
pythondev | help | for python3 that is | 2019-06-03T11:37:11.017400 | Ashley | pythondev_help_Ashley_2019-06-03T11:37:11.017400 | 1,559,561,831.0174 | 26,590 |
pythondev | help | you can do the same thing with python 2 | 2019-06-03T11:37:19.017900 | Ashley | pythondev_help_Ashley_2019-06-03T11:37:19.017900 | 1,559,561,839.0179 | 26,591 |
pythondev | help | I have about 30 packages when listed… :sweat_smile: | 2019-06-03T11:37:25.018100 | Deana | pythondev_help_Deana_2019-06-03T11:37:25.018100 | 1,559,561,845.0181 | 26,592 |
pythondev | help | ```nyb-m-hernandezj:Scripts jovanhernandez$ python3 -m pip freeze
alabaster==0.7.12
asn1crypto==0.24.0
astroid==2.2.5
atomicwrites==1.3.0
attrs==19.1.0
aws-sam-translator==1.11.0
aws-xray-sdk==2.4.2
awscli==1.16.160
Babel==2.6.0
boto==2.49.0
boto3==1.9.142
botocore==1.12.150
certifi==2019.3.9
cffi==1.12.3
cfn-flip==1.2.0
cfn-lint==0.19.1
chardet==3.0.4
Click==7.0
colorama==0.3.9
coverage==4.5.3
cryptography==2.6.1
docker==3.7.2
docker-pycreds==0.4.0
docutils==0.14
ecdsa==0.13.2
future==0.17.1
idna==2.8
imagesize==1.1.0
isort==4.3.20
Jinja2==2.10.1
jmespath==0.9.4
jsondiff==1.1.2
jsonpatch==1.23
jsonpickle==1.1
jsonpointer==2.0
jsonschema==2.6.0
lazy-object-proxy==1.4.1
MarkupSafe==1.1.1
mccabe==0.6.1
mock==3.0.4
more-itertools==7.0.0
moto==1.3.8
packaging==19.0
Pallets-Sphinx-Themes==1.1.4
pluggy==0.9.0
py==1.8.0
pyasn1==0.4.5
pycparser==2.19
Pygments==2.3.1
pylint==2.3.1
pyparsing==2.4.0
pystache==0.5.4
pytest==4.4.1
python-dateutil==2.8.0
python-jose==3.0.1
pytz==2019.1
PyYAML==3.13
requests==2.21.0
responses==0.10.6
rsa==3.4.2
s3transfer==0.2.0
six==1.12.0
snowballstemmer==1.2.1
Sphinx==2.0.1
sphinx-rtd-theme==0.4.3
sphinxcontrib-applehelp==1.0.1
sphinxcontrib-devhelp==1.0.1
sphinxcontrib-htmlhelp==1.0.2
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.2
sphinxcontrib-serializinghtml==1.1.3
sphinxjp.themes.dotted==0.1.2
troposphere==2.4.6
typed-ast==1.3.5
urllib3==1.24.3
virtualenv==16.6.0
websocket-client==0.56.0
Werkzeug==0.15.2
wrapt==1.11.1
xmltodict==0.12.0``` | 2019-06-03T11:37:28.018300 | Deana | pythondev_help_Deana_2019-06-03T11:37:28.018300 | 1,559,561,848.0183 | 26,593 |
pythondev | help | yeah, this might clear that problem up haha | 2019-06-03T11:37:41.018600 | Ashley | pythondev_help_Ashley_2019-06-03T11:37:41.018600 | 1,559,561,861.0186 | 26,594 |
pythondev | help | ok i’ll try and go this route and see where it takes me, will update with new info when available, but hopefully I won’t need to. thanks | 2019-06-03T11:38:57.019300 | Deana | pythondev_help_Deana_2019-06-03T11:38:57.019300 | 1,559,561,937.0193 | 26,595 |
pythondev | help | sounds good | 2019-06-03T11:39:08.019500 | Ashley | pythondev_help_Ashley_2019-06-03T11:39:08.019500 | 1,559,561,948.0195 | 26,596 |
pythondev | help | no problem! | 2019-06-03T11:39:10.019700 | Ashley | pythondev_help_Ashley_2019-06-03T11:39:10.019700 | 1,559,561,950.0197 | 26,597 |
pythondev | help | Thank you <@Carmen> | 2019-06-03T11:44:32.020100 | Terrie | pythondev_help_Terrie_2019-06-03T11:44:32.020100 | 1,559,562,272.0201 | 26,598 |
pythondev | help | thank you | 2019-06-03T11:46:39.020200 | Serita | pythondev_help_Serita_2019-06-03T11:46:39.020200 | 1,559,562,399.0202 | 26,599 |
pythondev | help | Hi everyone! I've been toying around with some opencv in Python concerning gender classification. And I had a question concerning the text. Is it possible to output the gender to the console instead of on the image overlay ? Can't seem to find any suggestions directly on stackoverflow or anything.
i can output it to the image itself, but ideally I want to output it to a string | 2019-06-03T15:18:19.024800 | Lucius | pythondev_help_Lucius_2019-06-03T15:18:19.024800 | 1,559,575,099.0248 | 26,600 |
pythondev | help | nvm :') found my mistake :') | 2019-06-03T15:28:29.025000 | Lucius | pythondev_help_Lucius_2019-06-03T15:28:29.025000 | 1,559,575,709.025 | 26,601 |
pythondev | help | Is there anyone using aiohttp?
Is it okay to declare multiple nested sessions?
```async with aiohttp.ClientSession() as session:```
For example if you have a main async method.
```loop = asyncio.get_event_loop()
loop.run_until_complete(main())```
inside this main function your are doing multiple async requests and maybe inside one of those you’re going another async request. Is it possible to redeclare that session, or do i need to pass is down the chain? | 2019-06-03T15:32:02.025200 | Pura | pythondev_help_Pura_2019-06-03T15:32:02.025200 | 1,559,575,922.0252 | 26,602 |
pythondev | help | It's best to "pass it down the chain" otherwise you don't use the first sessions connection pool with keepalive or its cookie jar.
If you don't care about those then you can create another session. | 2019-06-03T16:01:54.028300 | Elane | pythondev_help_Elane_2019-06-03T16:01:54.028300 | 1,559,577,714.0283 | 26,603 |
pythondev | help | anyone using python with vim? i am slowly considering using vim full time instead of pycharm. but i am looking for elements to replace all the nice fatures. i found vim-jedi, which is nice, but i need some way for the editor to highlight syntax errors or undefined variables being used etc. any tips? | 2019-06-03T17:05:44.029900 | Christina | pythondev_help_Christina_2019-06-03T17:05:44.029900 | 1,559,581,544.0299 | 26,604 |
pythondev | help | <@Christina> check out neomake <https://github.com/neomake/neomake> | 2019-06-03T17:55:28.030800 | Lashawna | pythondev_help_Lashawna_2019-06-03T17:55:28.030800 | 1,559,584,528.0308 | 26,605 |
pythondev | help | I’m using <https://github.com/python-mode/python-mode>
not sure if it has a solution for that problem. | 2019-06-03T18:02:15.031800 | Brain | pythondev_help_Brain_2019-06-03T18:02:15.031800 | 1,559,584,935.0318 | 26,606 |
pythondev | help | Trying to use `docker-compose` and keep getting an error along the lines of `Error loading Python lib` when I google search I see a bunch of errors not answered by the docker team on github and was wondering if anyone knew what the issue was/how to resolve? Thanks in advance | 2019-06-03T22:51:35.035000 | Ursula | pythondev_help_Ursula_2019-06-03T22:51:35.035000 | 1,559,602,295.035 | 26,607 |
pythondev | help | <@Brain> & <@Lashawna> cool! I'll look at those! Thank you :) | 2019-06-04T01:07:39.002100 | Christina | pythondev_help_Christina_2019-06-04T01:07:39.002100 | 1,559,610,459.0021 | 26,608 |
pythondev | help | is it possible to schedule async functions in apache airflow?
For example scheduling the fetching of data using aiohttp. | 2019-06-04T03:10:53.003100 | Pura | pythondev_help_Pura_2019-06-04T03:10:53.003100 | 1,559,617,853.0031 | 26,609 |
pythondev | help | from flask import request
@app.route('/todo/api/v1.0/tasks', methods=['POST'])
def create_task():
if not request.json or not 'title' in request.json:
abort(400)
task = {
'id': tasks[-1]['id'] + 1,
'title': request.json['title'],
'description': request.json.get('description', ""),
'done': False
}
tasks.append(task)
return jsonify({'task': task}), 201 | 2019-06-04T03:43:30.003700 | Adalberto | pythondev_help_Adalberto_2019-06-04T03:43:30.003700 | 1,559,619,810.0037 | 26,610 |
pythondev | help | Hey can someone tell me how to request this using python shell
import requests
r = <http://requests.post|requests.post>(url="<http://localhost:5000/todo/api/v1.0/tasks>", data={'title' : "Third data"}) | 2019-06-04T03:45:31.005300 | Adalberto | pythondev_help_Adalberto_2019-06-04T03:45:31.005300 | 1,559,619,931.0053 | 26,611 |
pythondev | help | i made request like this but shows error 400
r = <http://requests.post|requests.post>(url="<http://localhost:5000/todo/api/v1.0/tasks>", data={'title' : "Third data"}) | 2019-06-04T03:47:25.006100 | Adalberto | pythondev_help_Adalberto_2019-06-04T03:47:25.006100 | 1,559,620,045.0061 | 26,612 |
pythondev | help | seems like you are also missing flask part there | 2019-06-04T03:51:14.007000 | Rikki | pythondev_help_Rikki_2019-06-04T03:51:14.007000 | 1,559,620,274.007 | 26,613 |
pythondev | help | ```from flask import Flask
app = Flask(__name__)``` | 2019-06-04T03:51:20.007300 | Rikki | pythondev_help_Rikki_2019-06-04T03:51:20.007300 | 1,559,620,280.0073 | 26,614 |
pythondev | help | Change `data=` to `json=` so it sends the content-type as `application/json`. | 2019-06-04T03:51:24.007500 | Nancee | pythondev_help_Nancee_2019-06-04T03:51:24.007500 | 1,559,620,284.0075 | 26,615 |
pythondev | help | It would be better if you can share entire code somewhere like pastebin or gists or github | 2019-06-04T03:52:02.008000 | Rikki | pythondev_help_Rikki_2019-06-04T03:52:02.008000 | 1,559,620,322.008 | 26,616 |
pythondev | help | Anyone around to help me with an error Django is throwing me? I understand somewhat at a fundamental level why I’m being thrown the error but struggling to find a solution. `Reverse for 'editblog' with arguments '('',)' not found. 1 pattern(s) tried: ['editblog/(?P<entry_id>[0-9]+)/$']` | 2019-06-04T04:02:00.009300 | Derek | pythondev_help_Derek_2019-06-04T04:02:00.009300 | 1,559,620,920.0093 | 26,617 |
pythondev | help | <https://stackoverflow.com/questions/50014809/reverse-for-update-comment-with-arguments-not-found-1-patterns-trie?noredirect=1#comment87046628_50014809> | 2019-06-04T04:03:36.009400 | Guillermina | pythondev_help_Guillermina_2019-06-04T04:03:36.009400 | 1,559,621,016.0094 | 26,618 |
pythondev | help | I’ve had a look at that. My view seems to work, but the link I’m trying to create on my index page seems to be the culprit. | 2019-06-04T04:05:46.009700 | Derek | pythondev_help_Derek_2019-06-04T04:05:46.009700 | 1,559,621,146.0097 | 26,619 |
pythondev | help | None | 2019-06-04T04:06:16.010300 | Derek | pythondev_help_Derek_2019-06-04T04:06:16.010300 | 1,559,621,176.0103 | 26,620 |
Subsets and Splits