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 know how to use it
2018-01-10T10:11:37.000704
Estrella
pythondev_help_Estrella_2018-01-10T10:11:37.000704
1,515,579,097.000704
28,524
pythondev
help
but the figure is not appearing
2018-01-10T10:11:44.000172
Estrella
pythondev_help_Estrella_2018-01-10T10:11:44.000172
1,515,579,104.000172
28,525
pythondev
help
can i see the code?
2018-01-10T10:12:13.000752
Kacie
pythondev_help_Kacie_2018-01-10T10:12:13.000752
1,515,579,133.000752
28,526
pythondev
help
Im trying to run this notebook <https://github.com/pkmital/tensorflow_tutorials/blob/master/notebooks/03_polynomial_regression.ipynb>
2018-01-10T10:12:16.000555
Estrella
pythondev_help_Estrella_2018-01-10T10:12:16.000555
1,515,579,136.000555
28,527
pythondev
help
<@Kacie>
2018-01-10T10:14:47.000510
Milo
pythondev_help_Milo_2018-01-10T10:14:47.000510
1,515,579,287.00051
28,528
pythondev
help
should I use the `.eval`
2018-01-10T10:14:55.000437
Milo
pythondev_help_Milo_2018-01-10T10:14:55.000437
1,515,579,295.000437
28,529
pythondev
help
method
2018-01-10T10:15:04.000324
Milo
pythondev_help_Milo_2018-01-10T10:15:04.000324
1,515,579,304.000324
28,530
pythondev
help
<@Estrella> idk what your setup is right now im short on time :disappointed:
2018-01-10T10:15:19.000288
Kacie
pythondev_help_Kacie_2018-01-10T10:15:19.000288
1,515,579,319.000288
28,531
pythondev
help
<@Milo> whats up
2018-01-10T10:15:24.000272
Kacie
pythondev_help_Kacie_2018-01-10T10:15:24.000272
1,515,579,324.000272
28,532
pythondev
help
you said you wanted to make a dictionary
2018-01-10T10:15:30.000432
Kacie
pythondev_help_Kacie_2018-01-10T10:15:30.000432
1,515,579,330.000432
28,533
pythondev
help
so make it?
2018-01-10T10:15:32.000607
Kacie
pythondev_help_Kacie_2018-01-10T10:15:32.000607
1,515,579,332.000607
28,534
pythondev
help
yes but each of the keys is within the string as well, its json object that has been stringified from jquery
2018-01-10T10:16:23.000423
Milo
pythondev_help_Milo_2018-01-10T10:16:23.000423
1,515,579,383.000423
28,535
pythondev
help
but I want to use the data in flask
2018-01-10T10:16:38.000389
Milo
pythondev_help_Milo_2018-01-10T10:16:38.000389
1,515,579,398.000389
28,536
pythondev
help
kk so do you know how to split up strings?
2018-01-10T10:17:55.000283
Kacie
pythondev_help_Kacie_2018-01-10T10:17:55.000283
1,515,579,475.000283
28,537
pythondev
help
you have to break them apart temporarily
2018-01-10T10:18:03.000090
Kacie
pythondev_help_Kacie_2018-01-10T10:18:03.000090
1,515,579,483.00009
28,538
pythondev
help
and re arrange the data to the shape/size you want
2018-01-10T10:18:25.000604
Kacie
pythondev_help_Kacie_2018-01-10T10:18:25.000604
1,515,579,505.000604
28,539
pythondev
help
there is no magic function
2018-01-10T10:18:30.000890
Kacie
pythondev_help_Kacie_2018-01-10T10:18:30.000890
1,515,579,510.00089
28,540
pythondev
help
use jsonpickle to convert the json obj to a python dict
2018-01-10T10:19:08.000689
Porsha
pythondev_help_Porsha_2018-01-10T10:19:08.000689
1,515,579,548.000689
28,541
pythondev
help
or that but thats not a full dict in proper terms is it?
2018-01-10T10:19:43.000313
Kacie
pythondev_help_Kacie_2018-01-10T10:19:43.000313
1,515,579,583.000313
28,542
pythondev
help
no that is just the value of one of the keys
2018-01-10T10:20:51.000530
Milo
pythondev_help_Milo_2018-01-10T10:20:51.000530
1,515,579,651.00053
28,543
pythondev
help
where is that data coming from? is that going to be what is sent over to your service?
2018-01-10T10:21:01.000163
Davina
pythondev_help_Davina_2018-01-10T10:21:01.000163
1,515,579,661.000163
28,544
pythondev
help
you said you wanted to use flask so is there a GET with all those params to your endpoint?
2018-01-10T10:21:45.000654
Davina
pythondev_help_Davina_2018-01-10T10:21:45.000654
1,515,579,705.000654
28,545
pythondev
help
no I post to but then use jquery to post json string
2018-01-10T10:22:22.000249
Milo
pythondev_help_Milo_2018-01-10T10:22:22.000249
1,515,579,742.000249
28,546
pythondev
help
use `get_json()`
2018-01-10T10:22:33.000572
Porsha
pythondev_help_Porsha_2018-01-10T10:22:33.000572
1,515,579,753.000572
28,547
pythondev
help
`post_data = request.get_json()`
2018-01-10T10:23:02.000185
Porsha
pythondev_help_Porsha_2018-01-10T10:23:02.000185
1,515,579,782.000185
28,548
pythondev
help
I have but it returns the value of the 'form' as that string I put above
2018-01-10T10:23:05.000870
Milo
pythondev_help_Milo_2018-01-10T10:23:05.000870
1,515,579,785.00087
28,549
pythondev
help
So you're posting from a form?
2018-01-10T10:23:27.000886
Porsha
pythondev_help_Porsha_2018-01-10T10:23:27.000886
1,515,579,807.000886
28,550
pythondev
help
yes
2018-01-10T10:23:33.000129
Milo
pythondev_help_Milo_2018-01-10T10:23:33.000129
1,515,579,813.000129
28,551
pythondev
help
request.form
2018-01-10T10:23:40.000661
Davina
pythondev_help_Davina_2018-01-10T10:23:40.000661
1,515,579,820.000661
28,552
pythondev
help
So that's unlikely to be json
2018-01-10T10:23:49.000266
Porsha
pythondev_help_Porsha_2018-01-10T10:23:49.000266
1,515,579,829.000266
28,553
pythondev
help
but as there is a jquery plugin, I need use js to post
2018-01-10T10:23:52.000409
Milo
pythondev_help_Milo_2018-01-10T10:23:52.000409
1,515,579,832.000409
28,554
pythondev
help
package everything into a json obj and send using ajax or the jquery .post method
2018-01-10T10:24:40.000147
Porsha
pythondev_help_Porsha_2018-01-10T10:24:40.000147
1,515,579,880.000147
28,555
pythondev
help
``` $('[name=pri1]').click(function() { event.preventDefault(); var x = $('.data').treeview('selectedValues'); //console.log($('form').serialize()); data = { 'form':$('form').serialize(), 'categories':x } var settings = { url: '<http://127.0.0.1:5000/tracker>', contentTyp...
2018-01-10T10:24:57.000272
Milo
pythondev_help_Milo_2018-01-10T10:24:57.000272
1,515,579,897.000272
28,556
pythondev
help
this is what I have done on js side
2018-01-10T10:25:06.000096
Milo
pythondev_help_Milo_2018-01-10T10:25:06.000096
1,515,579,906.000096
28,557
pythondev
help
can you show the data object?
2018-01-10T10:25:55.000320
Porsha
pythondev_help_Porsha_2018-01-10T10:25:55.000320
1,515,579,955.00032
28,558
pythondev
help
amended above
2018-01-10T10:26:47.000460
Milo
pythondev_help_Milo_2018-01-10T10:26:47.000460
1,515,580,007.00046
28,559
pythondev
help
I get the data through on flask side; ``` post_data = request.get_json() #but post_data['form'] prints the joined string ```
2018-01-10T10:28:13.000835
Milo
pythondev_help_Milo_2018-01-10T10:28:13.000835
1,515,580,093.000835
28,560
pythondev
help
what happens when you `console.log(data)`
2018-01-10T10:29:38.000352
Porsha
pythondev_help_Porsha_2018-01-10T10:29:38.000352
1,515,580,178.000352
28,561
pythondev
help
Does it print as a json obj?
2018-01-10T10:29:59.000545
Porsha
pythondev_help_Porsha_2018-01-10T10:29:59.000545
1,515,580,199.000545
28,562
pythondev
help
yes
2018-01-10T10:33:23.000846
Milo
pythondev_help_Milo_2018-01-10T10:33:23.000846
1,515,580,403.000846
28,563
pythondev
help
What is the `$('form').serialize()` data. I think that's where you're having issues
2018-01-10T10:33:24.000380
Porsha
pythondev_help_Porsha_2018-01-10T10:33:24.000380
1,515,580,404.00038
28,564
pythondev
help
I just had a thought, instead of using `$('form').serialize` I could parse each `input` element individually using their id?
2018-01-10T10:34:15.000486
Milo
pythondev_help_Milo_2018-01-10T10:34:15.000486
1,515,580,455.000486
28,565
pythondev
help
and add it to the data obj
2018-01-10T10:34:27.001075
Milo
pythondev_help_Milo_2018-01-10T10:34:27.001075
1,515,580,467.001075
28,566
pythondev
help
So the user is filling out input fields?
2018-01-10T10:34:48.000059
Porsha
pythondev_help_Porsha_2018-01-10T10:34:48.000059
1,515,580,488.000059
28,567
pythondev
help
yes
2018-01-10T10:34:53.000277
Milo
pythondev_help_Milo_2018-01-10T10:34:53.000277
1,515,580,493.000277
28,568
pythondev
help
Ok cool, yeah store them as variables then pass into the json obj
2018-01-10T10:35:05.000441
Porsha
pythondev_help_Porsha_2018-01-10T10:35:05.000441
1,515,580,505.000441
28,569
pythondev
help
and the `var x` is checkboxes
2018-01-10T10:35:11.000889
Milo
pythondev_help_Milo_2018-01-10T10:35:11.000889
1,515,580,511.000889
28,570
pythondev
help
so all your data is under data[form][field] it looks like
2018-01-10T10:35:36.000589
Davina
pythondev_help_Davina_2018-01-10T10:35:36.000589
1,515,580,536.000589
28,571
pythondev
help
I did try that but then because its a string it did not work and the json is being converted into a string when posting
2018-01-10T10:36:20.000449
Milo
pythondev_help_Milo_2018-01-10T10:36:20.000449
1,515,580,580.000449
28,572
pythondev
help
What is the plugin you're using?
2018-01-10T10:37:15.000784
Porsha
pythondev_help_Porsha_2018-01-10T10:37:15.000784
1,515,580,635.000784
28,573
pythondev
help
<https://www.jquery-az.com/jquery-treeview-with-checkboxes-2-examples-with-bootstrap/>
2018-01-10T10:37:32.000450
Milo
pythondev_help_Milo_2018-01-10T10:37:32.000450
1,515,580,652.00045
28,574
pythondev
help
Don't use JSON.stringify
2018-01-10T10:37:35.000075
Ngoc
pythondev_help_Ngoc_2018-01-10T10:37:35.000075
1,515,580,655.000075
28,575
pythondev
help
I think it has caused more problems then anything
2018-01-10T10:37:48.000607
Milo
pythondev_help_Milo_2018-01-10T10:37:48.000607
1,515,580,668.000607
28,576
pythondev
help
<@Ngoc> but when I tried to send the data obj nothing happens
2018-01-10T10:38:10.000850
Milo
pythondev_help_Milo_2018-01-10T10:38:10.000850
1,515,580,690.00085
28,577
pythondev
help
You should try using regular html form tags and request.form in flask
2018-01-10T10:39:02.000770
Porsha
pythondev_help_Porsha_2018-01-10T10:39:02.000770
1,515,580,742.00077
28,578
pythondev
help
Would make life easier
2018-01-10T10:39:11.000561
Porsha
pythondev_help_Porsha_2018-01-10T10:39:11.000561
1,515,580,751.000561
28,579
pythondev
help
:point_up:
2018-01-10T10:39:16.000199
Davina
pythondev_help_Davina_2018-01-10T10:39:16.000199
1,515,580,756.000199
28,580
pythondev
help
also breaking things up and building your data obj manually will probably help.
2018-01-10T10:39:31.000036
Davina
pythondev_help_Davina_2018-01-10T10:39:31.000036
1,515,580,771.000036
28,581
pythondev
help
Or, if you really wan't that nested check box feature, remove the form tags and just grab all the form data using jquery
2018-01-10T10:40:05.000034
Porsha
pythondev_help_Porsha_2018-01-10T10:40:05.000034
1,515,580,805.000034
28,582
pythondev
help
yup have been thinking about that, in the time I have been faffing around with this I could have probably built my own treeview! I'm just not that great with javascript
2018-01-10T10:40:08.000609
Milo
pythondev_help_Milo_2018-01-10T10:40:08.000609
1,515,580,808.000609
28,583
pythondev
help
I have the jquery stuff wrapped within my own form
2018-01-10T10:41:08.000662
Milo
pythondev_help_Milo_2018-01-10T10:41:08.000662
1,515,580,868.000662
28,584
pythondev
help
```&lt;p&gt; &lt;input name="has_ga" type="checkbox" id="has_ga" value="true" /&gt; &lt;label for="has_ga"&gt;Google Analytics&lt;/label&gt; &lt;/p&gt;```
2018-01-10T10:42:37.000606
Porsha
pythondev_help_Porsha_2018-01-10T10:42:37.000606
1,515,580,957.000606
28,585
pythondev
help
```var $googleAnalytics = $("#has_ga").is(":checked");```
2018-01-10T10:42:59.000531
Porsha
pythondev_help_Porsha_2018-01-10T10:42:59.000531
1,515,580,979.000531
28,586
pythondev
help
jquery will return True if the box is ticked
2018-01-10T10:43:28.000417
Porsha
pythondev_help_Porsha_2018-01-10T10:43:28.000417
1,515,581,008.000417
28,587
pythondev
help
Use $.ajax()
2018-01-10T10:43:30.000283
Ngoc
pythondev_help_Ngoc_2018-01-10T10:43:30.000283
1,515,581,010.000283
28,588
pythondev
help
$.post('superman', { field1: "hello", field2 : "hello2"}, function(returnedData){ console.log(returnedData); }, 'json');
2018-01-10T10:46:42.000080
Ngoc
pythondev_help_Ngoc_2018-01-10T10:46:42.000080
1,515,581,202.00008
28,589
pythondev
help
$post(url, data, success, dataType)
2018-01-10T10:47:36.000278
Ngoc
pythondev_help_Ngoc_2018-01-10T10:47:36.000278
1,515,581,256.000278
28,590
pythondev
help
I think you're misusing that method
2018-01-10T10:48:12.000107
Ngoc
pythondev_help_Ngoc_2018-01-10T10:48:12.000107
1,515,581,292.000107
28,591
pythondev
help
<@Porsha>are those arbitrarly chosen names and id?
2018-01-10T10:50:00.000361
Milo
pythondev_help_Milo_2018-01-10T10:50:00.000361
1,515,581,400.000361
28,592
pythondev
help
I have a issue, I hate working with time, and it's probably why I am always late to events also. But, I want to show what a time range in Asia is for the users local time. Like this : <http://forex.timezoneconverter.com/?timezone=Europe/Berlin&amp;refresh=5>
2018-01-10T10:50:39.000308
Arnita
pythondev_help_Arnita_2018-01-10T10:50:39.000308
1,515,581,439.000308
28,593
pythondev
help
yes
2018-01-10T10:52:05.000533
Porsha
pythondev_help_Porsha_2018-01-10T10:52:05.000533
1,515,581,525.000533
28,594
pythondev
help
```$(document).ready(function(){ // Form submit is the ID of the submit button $("#form_submit").click(function(){ // Gets the text input from the company_name input var $companyName = $("#company_name").val(); // Gets True/false from the has_ga checkbox var $googleAnalytics = $("#has_ga").is(":checked"); ...
2018-01-10T10:52:10.000995
Porsha
pythondev_help_Porsha_2018-01-10T10:52:10.000995
1,515,581,530.000995
28,595
pythondev
help
Optionally you don't have to use the settings variable, you can just pass all the info into the `$.post()` method
2018-01-10T10:53:23.000179
Porsha
pythondev_help_Porsha_2018-01-10T10:53:23.000179
1,515,581,603.000179
28,596
pythondev
help
cool, thank you for the help. Next time I think I am just going to have to learn a little more js and build the treeview myself!
2018-01-10T10:54:56.000455
Milo
pythondev_help_Milo_2018-01-10T10:54:56.000455
1,515,581,696.000455
28,597
pythondev
help
Hello i'm using Openpyxl to try to unhide column A in all sheets in an excel document. I have tried the below but when it saves the fields are still hidden: ```import openpyxl wb = openpyxl.load_workbook('testing.xlsx') ws = wb.active wb['URFI'].column_dimensions['A'].hidden = False wb.save('testing2.xlsx') ``` Does ...
2018-01-10T11:44:19.000689
Titus
pythondev_help_Titus_2018-01-10T11:44:19.000689
1,515,584,659.000689
28,598
pythondev
help
Just as an FYI, to get each one of those lines formatted that way, you used a `single tick`. If instead of one you ```used 3 it would all be put in a single block ```
2018-01-10T12:07:23.000501
Dominica
pythondev_help_Dominica_2018-01-10T12:07:23.000501
1,515,586,043.000501
28,599
pythondev
help
Thanks! :slightly_smiling_face:
2018-01-10T12:13:38.000653
Titus
pythondev_help_Titus_2018-01-10T12:13:38.000653
1,515,586,418.000653
28,600
pythondev
help
nice!
2018-01-10T12:14:28.000479
Dominica
pythondev_help_Dominica_2018-01-10T12:14:28.000479
1,515,586,468.000479
28,601
pythondev
help
I think that needs to be `json.dumps(MARKET_CENTER)`
2018-01-10T12:36:51.000051
Dominica
pythondev_help_Dominica_2018-01-10T12:36:51.000051
1,515,587,811.000051
28,602
pythondev
help
That gives me TypeError: string indices must be integers
2018-01-10T12:37:20.000281
Arnita
pythondev_help_Arnita_2018-01-10T12:37:20.000281
1,515,587,840.000281
28,603
pythondev
help
lines 2 - 10 essentially define a dict. Have to convert that to JSON before it can be used as such.
2018-01-10T12:38:18.000322
Dominica
pythondev_help_Dominica_2018-01-10T12:38:18.000322
1,515,587,898.000322
28,604
pythondev
help
<https://stackoverflow.com/questions/26745519/converting-dictionary-to-json-in-python>
2018-01-10T12:39:48.000017
Dominica
pythondev_help_Dominica_2018-01-10T12:39:48.000017
1,515,587,988.000017
28,605
pythondev
help
Got it, thanks
2018-01-10T12:47:27.000384
Arnita
pythondev_help_Arnita_2018-01-10T12:47:27.000384
1,515,588,447.000384
28,606
pythondev
help
Hi, sorry for the re-post, I’m not trying to spam you all but thought my question may have gone unnoticed. “What do you all use for development and deployment of Lambda functions and are you using the AWS SDK?”
2018-01-10T13:26:21.000004
Elias
pythondev_help_Elias_2018-01-10T13:26:21.000004
1,515,590,781.000004
28,607
pythondev
help
Take a look at this: <https://github.com/aws/chalice>
2018-01-10T15:12:38.000208
Georgann
pythondev_help_Georgann_2018-01-10T15:12:38.000208
1,515,597,158.000208
28,608
pythondev
help
Question, so I hid a column that was Visible with openpyxl and then saved that file as testing2.xlsx I then opened testing2.xlsx with openpyxl and un-hid the column and re-saved the file as testing3.xlsx When I open testing3.xlsx the column that I had hid and un-hid is not there. Has anyone else experienced this probl...
2018-01-10T17:08:42.000108
Titus
pythondev_help_Titus_2018-01-10T17:08:42.000108
1,515,604,122.000108
28,609
pythondev
help
<@Titus> I have a feeling this is a pretty isolated thing you’re working with
2018-01-10T17:20:07.000293
Floy
pythondev_help_Floy_2018-01-10T17:20:07.000293
1,515,604,807.000293
28,610
pythondev
help
it might be better for you to post on the project github
2018-01-10T17:20:52.000207
Floy
pythondev_help_Floy_2018-01-10T17:20:52.000207
1,515,604,852.000207
28,611
pythondev
help
or write a question on stackoverflow
2018-01-10T17:21:19.000379
Floy
pythondev_help_Floy_2018-01-10T17:21:19.000379
1,515,604,879.000379
28,612
pythondev
help
if nothing else, you’d expose your problem to a more targeted audience
2018-01-10T17:22:32.000265
Floy
pythondev_help_Floy_2018-01-10T17:22:32.000265
1,515,604,952.000265
28,613
pythondev
help
<@Floy> Yeah it is, I will post a question to stackoverflow / github project page. Plus after reading through their documentation it might be a possible bug
2018-01-10T17:23:01.000353
Titus
pythondev_help_Titus_2018-01-10T17:23:01.000353
1,515,604,981.000353
28,614
pythondev
help
interesting, and that would be something that would be good to raise to the attention of the maintainers
2018-01-10T17:23:30.000484
Floy
pythondev_help_Floy_2018-01-10T17:23:30.000484
1,515,605,010.000484
28,615
pythondev
help
Running `pip list` in an active virtualenv should only list local installed packages in the env right?
2018-01-10T17:46:09.000157
Porsha
pythondev_help_Porsha_2018-01-10T17:46:09.000157
1,515,606,369.000157
28,616
pythondev
help
I'm running `pip list` and `pip list --local` inside my active virtualenv and it's listing all global packages installed on my machine
2018-01-10T17:47:55.000351
Porsha
pythondev_help_Porsha_2018-01-10T17:47:55.000351
1,515,606,475.000351
28,617
pythondev
help
And any `pip install some-package` is just returning `Requirement already satisfied`,.. When it isn't.
2018-01-10T17:50:14.000029
Porsha
pythondev_help_Porsha_2018-01-10T17:50:14.000029
1,515,606,614.000029
28,618
pythondev
help
what does `which pip` return?
2018-01-10T17:50:35.000343
Noel
pythondev_help_Noel_2018-01-10T17:50:35.000343
1,515,606,635.000343
28,619
pythondev
help
I'm probably missing something stupid but it always worked for me in the past
2018-01-10T17:50:41.000085
Porsha
pythondev_help_Porsha_2018-01-10T17:50:41.000085
1,515,606,641.000085
28,620
pythondev
help
ah
2018-01-10T17:51:04.000451
Porsha
pythondev_help_Porsha_2018-01-10T17:51:04.000451
1,515,606,664.000451
28,621
pythondev
help
it's returning a path on another drive
2018-01-10T17:51:18.000207
Porsha
pythondev_help_Porsha_2018-01-10T17:51:18.000207
1,515,606,678.000207
28,622
pythondev
help
I created a new venv in a new folder on the same drive and `pip list` works just fine... Weird :thinking_face:
2018-01-10T18:04:43.000287
Porsha
pythondev_help_Porsha_2018-01-10T18:04:43.000287
1,515,607,483.000287
28,623