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
we connect to the bastion proxy via some rackspace ScaleFT magic
2018-03-15T11:58:38.000033
Elisha
pythondev_help_Elisha_2018-03-15T11:58:38.000033
1,521,115,118.000033
39,124
pythondev
help
i think i understand what you're talking about writing and it would be super useful
2018-03-15T11:59:18.000091
Elisha
pythondev_help_Elisha_2018-03-15T11:59:18.000091
1,521,115,158.000091
39,125
pythondev
help
Can I share what I have written so far?
2018-03-15T11:59:42.000201
Romona
pythondev_help_Romona_2018-03-15T11:59:42.000201
1,521,115,182.000201
39,126
pythondev
help
yea definitely
2018-03-15T12:00:25.000051
Elisha
pythondev_help_Elisha_2018-03-15T12:00:25.000051
1,521,115,225.000051
39,127
pythondev
help
```from paramiko import SSHClient from sshtunnel import SSHTunnelForwarder import os import pandas as pd import pymysql as db proxy_hostname = '<http://bastion.XXXXX.com|bastion.XXXXX.com>' proxy_username = 'ron' proxy_port = 22 os.chdir('/Users/rarevalo/.ssh/') key_filename='/Users/rarevalo/.ssh/id_rsa' proxy_clien...
2018-03-15T12:00:42.000725
Romona
pythondev_help_Romona_2018-03-15T12:00:42.000725
1,521,115,242.000725
39,128
pythondev
help
It times out at `conn=db.connect(host='<http://mysql-replica.servers.XXXXX.me|mysql-replica.servers.XXXXX.me>',`
2018-03-15T12:02:44.000271
Romona
pythondev_help_Romona_2018-03-15T12:02:44.000271
1,521,115,364.000271
39,129
pythondev
help
i cant run python 2 cause ive installed 36 version how can i use vvirtualenv to solve thi,or is there someother way
2018-03-15T12:32:31.000129
Remona
pythondev_help_Remona_2018-03-15T12:32:31.000129
1,521,117,151.000129
39,130
pythondev
help
ive tried to rename my environment to path python 2
2018-03-15T12:32:58.000841
Remona
pythondev_help_Remona_2018-03-15T12:32:58.000841
1,521,117,178.000841
39,131
pythondev
help
can you use `virtualenv -p python2`
2018-03-15T12:34:37.000712
Terrence
pythondev_help_Terrence_2018-03-15T12:34:37.000712
1,521,117,277.000712
39,132
pythondev
help
<@Remona> I'm afraid to step on this path, but how exactly did you install python 3.6? What's your OS?
2018-03-15T12:34:39.000188
Aleida
pythondev_help_Aleida_2018-03-15T12:34:39.000188
1,521,117,279.000188
39,133
pythondev
help
7
2018-03-15T12:35:47.000904
Remona
pythondev_help_Remona_2018-03-15T12:35:47.000904
1,521,117,347.000904
39,134
pythondev
help
win7?
2018-03-15T12:38:22.000322
Terrence
pythondev_help_Terrence_2018-03-15T12:38:22.000322
1,521,117,502.000322
39,135
pythondev
help
yes
2018-03-15T12:38:55.000608
Remona
pythondev_help_Remona_2018-03-15T12:38:55.000608
1,521,117,535.000608
39,136
pythondev
help
personally I recommend using python3 most applications work with 3, but if you def need to you should be able to specify with `virtualenv -p &lt;path_to_python2&gt;` though I’d imagine if it’s anything like `pipenv` it’ll destroy your current venv and rebuild with the specified python version, so you’ll need to run rei...
2018-03-15T12:41:08.000911
Terrence
pythondev_help_Terrence_2018-03-15T12:41:08.000911
1,521,117,668.000911
39,137
pythondev
help
You can keep your logging but just log to the NullHandler. Then anyone that uses your library can decide if they want to activate the logs from your library or not. Typically you would not have custom logging configuration in the library and leave the customization to the user
2018-03-15T12:51:02.000494
Genevie
pythondev_help_Genevie_2018-03-15T12:51:02.000494
1,521,118,262.000494
39,138
pythondev
help
I have what may be a silly pytest question. Is it a bad design if my test does not call assert? Like if I'm writing a test to check if my db connection is alive, and the function throws an exception if it can't connect... there really is nothing to assert, you just have the test complete or throw an exception right?
2018-03-15T12:54:03.000771
Grazyna
pythondev_help_Grazyna_2018-03-15T12:54:03.000771
1,521,118,443.000771
39,139
pythondev
help
<@Leandra> in that case you'll test your DB client. It's likely tested already, so your test won't test anything remotely useful
2018-03-15T12:57:05.000430
Aleida
pythondev_help_Aleida_2018-03-15T12:57:05.000430
1,521,118,625.00043
39,140
pythondev
help
Test your business logic instead
2018-03-15T12:57:14.000855
Aleida
pythondev_help_Aleida_2018-03-15T12:57:14.000855
1,521,118,634.000855
39,141
pythondev
help
Yeah I see what you mean, if it's down then everything will blow up anyway
2018-03-15T12:58:08.000752
Grazyna
pythondev_help_Grazyna_2018-03-15T12:58:08.000752
1,521,118,688.000752
39,142
pythondev
help
Exactly
2018-03-15T13:00:36.000264
Aleida
pythondev_help_Aleida_2018-03-15T13:00:36.000264
1,521,118,836.000264
39,143
pythondev
help
Can anyone help me in giving ideas for flask projects?
2018-03-15T14:00:35.000859
Freeda
pythondev_help_Freeda_2018-03-15T14:00:35.000859
1,521,122,435.000859
39,144
pythondev
help
what topic approx?+) Like: finance, ml, visualization...
2018-03-15T14:05:03.000365
Alyse
pythondev_help_Alyse_2018-03-15T14:05:03.000365
1,521,122,703.000365
39,145
pythondev
help
ML, text analysis, NLP, application driven using database such as Mongodb.
2018-03-15T14:08:53.000327
Freeda
pythondev_help_Freeda_2018-03-15T14:08:53.000327
1,521,122,933.000327
39,146
pythondev
help
<@Remona> did you uninstall py v2? or you just install v3 on a fresh system?
2018-03-15T14:20:21.000331
Terica
pythondev_help_Terica_2018-03-15T14:20:21.000331
1,521,123,621.000331
39,147
pythondev
help
if you had 2 prior install 3, it should still be available
2018-03-15T14:20:42.000035
Terica
pythondev_help_Terica_2018-03-15T14:20:42.000035
1,521,123,642.000035
39,148
pythondev
help
<@Remona> the best thing is to remove every python... Download anaconda 3 it would contain python 3.6, (mostly used) and you can create a virtualenv for py2.7 for whenever u need. No need to keep 2 python's
2018-03-15T14:21:53.000121
Freeda
pythondev_help_Freeda_2018-03-15T14:21:53.000121
1,521,123,713.000121
39,149
pythondev
help
yeah ive decided im just gonna do it on py3
2018-03-15T14:21:58.000523
Remona
pythondev_help_Remona_2018-03-15T14:21:58.000523
1,521,123,718.000523
39,150
pythondev
help
No, don't remove all Pythons if your system came with one
2018-03-15T14:29:01.000493
Garrett
pythondev_help_Garrett_2018-03-15T14:29:01.000493
1,521,124,141.000493
39,151
pythondev
help
It's likely that system tools rely on that exact Python
2018-03-15T14:29:09.000754
Garrett
pythondev_help_Garrett_2018-03-15T14:29:09.000754
1,521,124,149.000754
39,152
pythondev
help
yep
2018-03-15T14:29:23.000270
Terica
pythondev_help_Terica_2018-03-15T14:29:23.000270
1,521,124,163.00027
39,153
pythondev
help
add but don’t remove
2018-03-15T14:29:27.000618
Terica
pythondev_help_Terica_2018-03-15T14:29:27.000618
1,521,124,167.000618
39,154
pythondev
help
normally with the appropriate shebang, the run will use the appropriate version
2018-03-15T14:30:00.000254
Terica
pythondev_help_Terica_2018-03-15T14:30:00.000254
1,521,124,200.000254
39,155
pythondev
help
and you can force it to at the run time
2018-03-15T14:30:25.000094
Terica
pythondev_help_Terica_2018-03-15T14:30:25.000094
1,521,124,225.000094
39,156
pythondev
help
yeah, <@Remona>, you should just leave your pythons as mentioned. :point_up: I have python 2 and 3 installed, so I just have to use `python3`, `pip3` when I am wanting that version for my projects
2018-03-15T14:32:39.000222
Kemberly
pythondev_help_Kemberly_2018-03-15T14:32:39.000222
1,521,124,359.000222
39,157
pythondev
help
`python3 -m pip install &lt;package&gt;` is better/safer than `pip3 install &lt;package&gt;`, just FYI
2018-03-15T14:33:31.000104
Garrett
pythondev_help_Garrett_2018-03-15T14:33:31.000104
1,521,124,411.000104
39,158
pythondev
help
good to know, thanks!
2018-03-15T14:35:45.000524
Kemberly
pythondev_help_Kemberly_2018-03-15T14:35:45.000524
1,521,124,545.000524
39,159
pythondev
help
I am surprised
2018-03-15T14:37:08.000232
Terica
pythondev_help_Terica_2018-03-15T14:37:08.000232
1,521,124,628.000232
39,160
pythondev
help
to me it does the same
2018-03-15T14:39:00.000604
Terica
pythondev_help_Terica_2018-03-15T14:39:00.000604
1,521,124,740.000604
39,161
pythondev
help
what’s different?
2018-03-15T14:39:03.000676
Terica
pythondev_help_Terica_2018-03-15T14:39:03.000676
1,521,124,743.000676
39,162
pythondev
help
And is there any helpful resource on these sorts of issues concerning differentiating/installing between python versions that we might find for <@Remona>? (I could probably use it too, haha.) A quick search and I am seeing a bunch of SO questions.
2018-03-15T14:39:11.000177
Kemberly
pythondev_help_Kemberly_2018-03-15T14:39:11.000177
1,521,124,751.000177
39,163
pythondev
help
Using an explicit version of Python to do the installation.
2018-03-15T14:39:33.000360
Garrett
pythondev_help_Garrett_2018-03-15T14:39:33.000360
1,521,124,773.00036
39,164
pythondev
help
Here's something about python on windows and running multiple versions that might help
2018-03-15T14:45:45.000245
Kemberly
pythondev_help_Kemberly_2018-03-15T14:45:45.000245
1,521,125,145.000245
39,165
pythondev
help
<https://docs.python.org/3/using/windows.html>
2018-03-15T14:45:46.000581
Kemberly
pythondev_help_Kemberly_2018-03-15T14:45:46.000581
1,521,125,146.000581
39,166
pythondev
help
my preference is to keep everything contained in docker containers, prevents the mess on my system
2018-03-15T14:46:01.000269
Zack
pythondev_help_Zack_2018-03-15T14:46:01.000269
1,521,125,161.000269
39,167
pythondev
help
yep
2018-03-15T14:46:22.000728
Terica
pythondev_help_Terica_2018-03-15T14:46:22.000728
1,521,125,182.000728
39,168
pythondev
help
How about a chat-bot-buddy? People should write down a short text, for example "How was my day so far". and chat bot needs to use sentiment analysis to either cheer up, or give props and so on
2018-03-15T14:46:37.000389
Alyse
pythondev_help_Alyse_2018-03-15T14:46:37.000389
1,521,125,197.000389
39,169
pythondev
help
that’s something I am looking into
2018-03-15T14:46:56.000357
Terica
pythondev_help_Terica_2018-03-15T14:46:56.000357
1,521,125,216.000357
39,170
pythondev
help
I like that too but it's a _bit much_ to ask of a newcomer
2018-03-15T14:46:57.000544
Garrett
pythondev_help_Garrett_2018-03-15T14:46:57.000544
1,521,125,217.000544
39,171
pythondev
help
You can have a DB for users to keep track of their mood or even topics that concern them
2018-03-15T14:47:42.000245
Alyse
pythondev_help_Alyse_2018-03-15T14:47:42.000245
1,521,125,262.000245
39,172
pythondev
help
<@Zack> are you using volumes to access easily to source code?
2018-03-15T14:47:43.000393
Terica
pythondev_help_Terica_2018-03-15T14:47:43.000393
1,521,125,263.000393
39,173
pythondev
help
honestly given the confusion stuff like virtualenvs cause, I dunno. seems not too much of a reach. :stuck_out_tongue:
2018-03-15T14:47:56.000357
Zack
pythondev_help_Zack_2018-03-15T14:47:56.000357
1,521,125,276.000357
39,174
pythondev
help
or dev then git pull from it?
2018-03-15T14:48:03.000620
Terica
pythondev_help_Terica_2018-03-15T14:48:03.000620
1,521,125,283.00062
39,175
pythondev
help
<@Terica> yeah, mount the source directory into the container
2018-03-15T14:48:23.000038
Zack
pythondev_help_Zack_2018-03-15T14:48:23.000038
1,521,125,303.000038
39,176
pythondev
help
interesting, and the follow up question, how much do you push to prod via docker container?
2018-03-15T14:50:54.000546
Terica
pythondev_help_Terica_2018-03-15T14:50:54.000546
1,521,125,454.000546
39,177
pythondev
help
how often or what kind of things?
2018-03-15T14:51:55.000326
Zack
pythondev_help_Zack_2018-03-15T14:51:55.000326
1,521,125,515.000326
39,178
pythondev
help
how oftern
2018-03-15T14:52:17.000482
Terica
pythondev_help_Terica_2018-03-15T14:52:17.000482
1,521,125,537.000482
39,179
pythondev
help
percentage of code that will stick in a container after dev
2018-03-15T14:52:32.000559
Terica
pythondev_help_Terica_2018-03-15T14:52:32.000559
1,521,125,552.000559
39,180
pythondev
help
depends on the project, but almost all of my stuff ends up in containers. the exception being my prod database I’ll usually use something like RDS or Dynamo and for frontend I’ll generally generate a static set of files and serve them from s3
2018-03-15T14:53:41.000573
Zack
pythondev_help_Zack_2018-03-15T14:53:41.000573
1,521,125,621.000573
39,181
pythondev
help
in here we are pretty much old fashion, 1 vm 1 app
2018-03-15T14:53:56.000677
Terica
pythondev_help_Terica_2018-03-15T14:53:56.000677
1,521,125,636.000677
39,182
pythondev
help
but say like an API layer for example will be containers, or the work I’m doing now is on deploying machine learning stuff, each part of our pipeline is in containers
2018-03-15T14:54:14.000188
Zack
pythondev_help_Zack_2018-03-15T14:54:14.000188
1,521,125,654.000188
39,183
pythondev
help
got it
2018-03-15T14:54:33.000426
Terica
pythondev_help_Terica_2018-03-15T14:54:33.000426
1,521,125,673.000426
39,184
pythondev
help
usually I’ll selectively release a container to prod though, I’ve rarely done a full continuous release directly to prod
2018-03-15T14:55:15.000053
Zack
pythondev_help_Zack_2018-03-15T14:55:15.000053
1,521,125,715.000053
39,185
pythondev
help
so often CI builds and deploys into staging, and then it’s a choice to push the container to prod
2018-03-15T14:55:28.000193
Zack
pythondev_help_Zack_2018-03-15T14:55:28.000193
1,521,125,728.000193
39,186
pythondev
help
we are currently working on a project to implement a full CI env for our dev based on gitlab/k8/jenkins
2018-03-15T14:59:07.000262
Terica
pythondev_help_Terica_2018-03-15T14:59:07.000262
1,521,125,947.000262
39,187
pythondev
help
or a ideas collection site. With a forum and a catalog to search for ideas tagged by technologies, description, people making it, some links...
2018-03-15T14:59:27.000009
Alyse
pythondev_help_Alyse_2018-03-15T14:59:27.000009
1,521,125,967.000009
39,188
pythondev
help
this will reduce the 1200+ VMs running for dev/test/valid
2018-03-15T14:59:34.000479
Terica
pythondev_help_Terica_2018-03-15T14:59:34.000479
1,521,125,974.000479
39,189
pythondev
help
or at least this is the goal :wink:
2018-03-15T14:59:49.000602
Terica
pythondev_help_Terica_2018-03-15T14:59:49.000602
1,521,125,989.000602
39,190
pythondev
help
oh nice, sounds like a good project
2018-03-15T15:00:01.000351
Zack
pythondev_help_Zack_2018-03-15T15:00:01.000351
1,521,126,001.000351
39,191
pythondev
help
one of
2018-03-15T15:00:01.000733
Terica
pythondev_help_Terica_2018-03-15T15:00:01.000733
1,521,126,001.000733
39,192
pythondev
help
will see how people embraces the change
2018-03-15T15:00:37.000599
Terica
pythondev_help_Terica_2018-03-15T15:00:37.000599
1,521,126,037.000599
39,193
pythondev
help
just put them into the basement if they don’t. :stuck_out_tongue:
2018-03-15T15:00:59.000504
Zack
pythondev_help_Zack_2018-03-15T15:00:59.000504
1,521,126,059.000504
39,194
pythondev
help
looool
2018-03-15T15:01:09.000777
Terica
pythondev_help_Terica_2018-03-15T15:01:09.000777
1,521,126,069.000777
39,195
pythondev
help
actually, this is where my team is
2018-03-15T15:02:54.000036
Terica
pythondev_help_Terica_2018-03-15T15:02:54.000036
1,521,126,174.000036
39,196
pythondev
help
If anyone has any experience with Docusign, I am currently trying to edit a custom field from their api, however when I am trying to get the id of the field via a list from the rest api it isn't showing up. I have tried searching both templateApi and Envelope APi with `ListDocumentFields` and `ListCustomFields`, and bo...
2018-03-15T15:16:47.000412
Henrietta
pythondev_help_Henrietta_2018-03-15T15:16:47.000412
1,521,127,007.000412
39,197
pythondev
help
Nice.... Thanksss
2018-03-15T15:16:59.000180
Freeda
pythondev_help_Freeda_2018-03-15T15:16:59.000180
1,521,127,019.00018
39,198
pythondev
help
Alright, I may have found something, but it looks like the sdk doesn't include that functionality so I will try to build it, *fingers crossed
2018-03-15T15:28:40.000253
Henrietta
pythondev_help_Henrietta_2018-03-15T15:28:40.000253
1,521,127,720.000253
39,199
pythondev
help
any pycharm users? one of our developers used it to add some `try/except` to some large blocks of code — a stopgap intervention on some bad code that has to be bandaided in a point release — and it seems as if it might have reformatted the blocks that he indented in the process
2018-03-15T15:56:12.000056
Kieth
pythondev_help_Kieth_2018-03-15T15:56:12.000056
1,521,129,372.000056
39,200
pythondev
help
or possibly wrapped lines that were too long when indented
2018-03-15T15:57:11.000472
Kieth
pythondev_help_Kieth_2018-03-15T15:57:11.000472
1,521,129,431.000472
39,201
pythondev
help
i’m wondering if that’s a sort of thing pycharm might do, and if so how to disable it… it’s probably very nice formatting but difficult to inspect the PR to ensure with these changes entangled in the same diff
2018-03-15T15:57:16.000471
Kieth
pythondev_help_Kieth_2018-03-15T15:57:16.000471
1,521,129,436.000471
39,202
pythondev
help
`alt+shift+f` to reformat
2018-03-15T15:57:19.000056
Kemberly
pythondev_help_Kemberly_2018-03-15T15:57:19.000056
1,521,129,439.000056
39,203
pythondev
help
it won’t ever reformat if you don’t do `alt-shift-f`?
2018-03-15T15:57:40.000712
Kieth
pythondev_help_Kieth_2018-03-15T15:57:40.000712
1,521,129,460.000712
39,204
pythondev
help
That shortcut works for getting proper formatting for python code (and other languages btw) and might help you get your indentation issue sorted out.
2018-03-15T16:02:56.000110
Kemberly
pythondev_help_Kemberly_2018-03-15T16:02:56.000110
1,521,129,776.00011
39,205
pythondev
help
at some point soon maybe we’ll let pycharm reformat all this old crapy code for us, then put that in as its own diff :slightly_smiling_face:
2018-03-15T16:05:26.000150
Kieth
pythondev_help_Kieth_2018-03-15T16:05:26.000150
1,521,129,926.00015
39,206
pythondev
help
np+)
2018-03-15T16:14:43.000063
Alyse
pythondev_help_Alyse_2018-03-15T16:14:43.000063
1,521,130,483.000063
39,207
pythondev
help
<@Kieth> PyCharm formatting settings are in File &gt; Settings &gt; Editor &gt; Code Style &gt; Python. You probably want to push the hard wrap way out, disable wrap on typing, keep line breaks when reformatting, and disable "ensure right margin is not exceeded".
2018-03-15T16:35:14.000565
Liane
pythondev_help_Liane_2018-03-15T16:35:14.000565
1,521,131,714.000565
39,208
pythondev
help
thanks… the dev just went ahead and used a less helpful text editor for this particular edit :slightly_smiling_face:
2018-03-15T16:36:13.000467
Kieth
pythondev_help_Kieth_2018-03-15T16:36:13.000467
1,521,131,773.000467
39,209
pythondev
help
heh :stuck_out_tongue:
2018-03-15T16:36:24.000198
Liane
pythondev_help_Liane_2018-03-15T16:36:24.000198
1,521,131,784.000198
39,210
pythondev
help
<@Liane> that was way more helpful :taco:
2018-03-15T16:38:50.000403
Kemberly
pythondev_help_Kemberly_2018-03-15T16:38:50.000403
1,521,131,930.000403
39,211
pythondev
help
are global and local variables a important part of the language or can i just skip that if i dont understand it?
2018-03-15T17:07:14.000116
Remona
pythondev_help_Remona_2018-03-15T17:07:14.000116
1,521,133,634.000116
39,212
pythondev
help
it is kind of important :stuck_out_tongue:
2018-03-15T17:12:44.000004
Terica
pythondev_help_Terica_2018-03-15T17:12:44.000004
1,521,133,964.000004
39,213
pythondev
help
to avoid scratching your head
2018-03-15T17:13:31.000501
Terica
pythondev_help_Terica_2018-03-15T17:13:31.000501
1,521,134,011.000501
39,214
pythondev
help
<@Remona> You should ask what you don't understand. Maybe if someone else explain it you will :slightly_smiling_face:
2018-03-15T17:16:06.000161
Micki
pythondev_help_Micki_2018-03-15T17:16:06.000161
1,521,134,166.000161
39,215
pythondev
help
As a general remark, I would say the basics are pretty important, like the foundation of a house. You want a good, solid foundation to build upon.
2018-03-15T17:17:58.000305
Kemberly
pythondev_help_Kemberly_2018-03-15T17:17:58.000305
1,521,134,278.000305
39,216
pythondev
help
I would say `local` and `global` scope are important to learn!
2018-03-15T17:21:58.000220
Shaun
pythondev_help_Shaun_2018-03-15T17:21:58.000220
1,521,134,518.00022
39,217
pythondev
help
You may not need to use the global keyword too often - but the idea of scope is important.
2018-03-15T17:22:56.000450
Grazyna
pythondev_help_Grazyna_2018-03-15T17:22:56.000450
1,521,134,576.00045
39,218
pythondev
help
The python docs now have a really good introduction to the language. I've enjoyed reading it even 5 years into programming in python.
2018-03-15T17:24:27.000573
Shaun
pythondev_help_Shaun_2018-03-15T17:24:27.000573
1,521,134,667.000573
39,219
pythondev
help
<https://docs.python.org/3.8/tutorial/index.html>
2018-03-15T17:24:28.000490
Shaun
pythondev_help_Shaun_2018-03-15T17:24:28.000490
1,521,134,668.00049
39,220
pythondev
help
:point_up: yes, and reading docs is a big part of the job of a developer, so it's good to dig in. And ask any question, no worries at all.
2018-03-15T17:26:24.000580
Kemberly
pythondev_help_Kemberly_2018-03-15T17:26:24.000580
1,521,134,784.00058
39,221
pythondev
help
You should almost never need `global`
2018-03-15T17:31:18.000480
Garrett
pythondev_help_Garrett_2018-03-15T17:31:18.000480
1,521,135,078.00048
39,222
pythondev
help
Hello Guys :slightly_smiling_face:
2018-03-16T02:27:05.000068
Madonna
pythondev_help_Madonna_2018-03-16T02:27:05.000068
1,521,167,225.000068
39,223