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
no error message ,but nothing appear on chrome
2018-03-01T14:51:07.000173
Vinita
pythondev_help_Vinita_2018-03-01T14:51:07.000173
1,519,915,867.000173
36,824
pythondev
help
`marquee`?
2018-03-01T14:52:37.000195
Floy
pythondev_help_Floy_2018-03-01T14:52:37.000195
1,519,915,957.000195
36,825
pythondev
help
it nothing it just about html tag
2018-03-01T14:53:46.000126
Vinita
pythondev_help_Vinita_2018-03-01T14:53:46.000126
1,519,916,026.000126
36,826
pythondev
help
Can anyone help me with one book of computer vision opencv.TIA
2018-03-01T15:02:49.000504
Pamala
pythondev_help_Pamala_2018-03-01T15:02:49.000504
1,519,916,569.000504
36,827
pythondev
help
<@Vinita> i’d still remove the `marquee` tags as they arent really supported anymore and could lead to unexpected behavior that are going to just make debugging harder
2018-03-01T15:04:47.000549
Brande
pythondev_help_Brande_2018-03-01T15:04:47.000549
1,519,916,687.000549
36,828
pythondev
help
<@Brande> do anything ,code is in your court:grin:
2018-03-01T15:06:20.000615
Vinita
pythondev_help_Vinita_2018-03-01T15:06:20.000615
1,519,916,780.000615
36,829
pythondev
help
<@Sandra> do you need both versions installed? Unless you already have, create a virtual environment that has the needed version of python installed. and then install the pytest module.
2018-03-01T15:10:13.000017
Sha
pythondev_help_Sha_2018-03-01T15:10:13.000017
1,519,917,013.000017
36,830
pythondev
help
unless you have an error message or something I cant really help. Do you know if your DB connection string is correct? ¯\_(ツ)_/¯
2018-03-01T15:11:51.000629
Brande
pythondev_help_Brande_2018-03-01T15:11:51.000629
1,519,917,111.000629
36,831
pythondev
help
so no error,as far as db is concerned here it is very sort
2018-03-01T15:15:06.000238
Vinita
pythondev_help_Vinita_2018-03-01T15:15:06.000238
1,519,917,306.000238
36,832
pythondev
help
the route works fine, the template isn't loading though
2018-03-01T15:15:33.000708
Kristin
pythondev_help_Kristin_2018-03-01T15:15:33.000708
1,519,917,333.000708
36,833
pythondev
help
<@Kristin> yes you are right
2018-03-01T15:16:23.000257
Vinita
pythondev_help_Vinita_2018-03-01T15:16:23.000257
1,519,917,383.000257
36,834
pythondev
help
template isn't been working
2018-03-01T15:16:49.000425
Vinita
pythondev_help_Vinita_2018-03-01T15:16:49.000425
1,519,917,409.000425
36,835
pythondev
help
it would give you an error if the template wasn't loading though :thinking_face:
2018-03-01T15:17:29.000683
Kristin
pythondev_help_Kristin_2018-03-01T15:17:29.000683
1,519,917,449.000683
36,836
pythondev
help
Is there anything there if you view source in the browser on the blank page?
2018-03-01T15:18:06.000215
Leanora
pythondev_help_Leanora_2018-03-01T15:18:06.000215
1,519,917,486.000215
36,837
pythondev
help
is there anything in index.html ?
2018-03-01T15:19:11.000032
Kristin
pythondev_help_Kristin_2018-03-01T15:19:11.000032
1,519,917,551.000032
36,838
pythondev
help
and did you save it
2018-03-01T15:19:25.000371
Kristin
pythondev_help_Kristin_2018-03-01T15:19:25.000371
1,519,917,565.000371
36,839
pythondev
help
<@Vinita> but if you right click and choose view source or prepend `view-source:` to the url
2018-03-01T15:20:07.000197
Leanora
pythondev_help_Leanora_2018-03-01T15:20:07.000197
1,519,917,607.000197
36,840
pythondev
help
ok
2018-03-01T15:21:23.000046
Vinita
pythondev_help_Vinita_2018-03-01T15:21:23.000046
1,519,917,683.000046
36,841
pythondev
help
I believe its because of the commas in the input elements
2018-03-01T15:22:11.000474
Leanora
pythondev_help_Leanora_2018-03-01T15:22:11.000474
1,519,917,731.000474
36,842
pythondev
help
chrome isn't rendering but the server is passing it through successfully
2018-03-01T15:22:30.000512
Leanora
pythondev_help_Leanora_2018-03-01T15:22:30.000512
1,519,917,750.000512
36,843
pythondev
help
I have restarted the server and code again it worked partially means there is somthong on screen BUt not full
2018-03-01T15:24:40.000535
Vinita
pythondev_help_Vinita_2018-03-01T15:24:40.000535
1,519,917,880.000535
36,844
pythondev
help
only user name ,nothing else in form
2018-03-01T15:25:10.000267
Vinita
pythondev_help_Vinita_2018-03-01T15:25:10.000267
1,519,917,910.000267
36,845
pythondev
help
Can you view the source and see what's there?
2018-03-01T15:25:36.000614
Leanora
pythondev_help_Leanora_2018-03-01T15:25:36.000614
1,519,917,936.000614
36,846
pythondev
help
that will probably help you debug it as chrome should highlight the invalid html
2018-03-01T15:25:51.000447
Leanora
pythondev_help_Leanora_2018-03-01T15:25:51.000447
1,519,917,951.000447
36,847
pythondev
help
Yes you need to remove all of the commas within the elements
2018-03-01T15:29:22.000332
Leanora
pythondev_help_Leanora_2018-03-01T15:29:22.000332
1,519,918,162.000332
36,848
pythondev
help
<@Leanora> you mean these elements (&lt;input type="Email" name="email_id", type="text" ,value={{ request.form.e_mail }}/&gt;)
2018-03-01T15:31:32.000232
Vinita
pythondev_help_Vinita_2018-03-01T15:31:32.000232
1,519,918,292.000232
36,849
pythondev
help
Yes, those shouldnt have commas between them
2018-03-01T15:32:49.000191
Brande
pythondev_help_Brande_2018-03-01T15:32:49.000191
1,519,918,369.000191
36,850
pythondev
help
if you aren't too familiar with html it might make sense to go through one or two tutorials about that specifically since adding in server side templating throws an extra area of complexity in right off the bat
2018-03-01T15:34:09.000355
Leanora
pythondev_help_Leanora_2018-03-01T15:34:09.000355
1,519,918,449.000355
36,851
pythondev
help
ok.i will go again well,if you can see post_user method in python,is right way to take dat from form and passing it to data base
2018-03-01T15:44:48.000385
Vinita
pythondev_help_Vinita_2018-03-01T15:44:48.000385
1,519,919,088.000385
36,852
pythondev
help
I'm not familiar enough with flask or sqlalchemy to be able to discuss the best way if that's what you're looking for, are you getting a specific error there?
2018-03-01T15:49:06.000594
Leanora
pythondev_help_Leanora_2018-03-01T15:49:06.000594
1,519,919,346.000594
36,853
pythondev
help
there is a channel for flask at <#C0LN2AD7T|flask>
2018-03-01T15:49:58.000372
Floy
pythondev_help_Floy_2018-03-01T15:49:58.000372
1,519,919,398.000372
36,854
pythondev
help
Hi guys how can I pass a data from a middleware like a host that I will get in every request to a router to set the database
2018-03-01T16:39:24.000170
Logan
pythondev_help_Logan_2018-03-01T16:39:24.000170
1,519,922,364.00017
36,855
pythondev
help
Using what? Would be helpful to know what you're using
2018-03-01T16:44:22.000308
Floy
pythondev_help_Floy_2018-03-01T16:44:22.000308
1,519,922,662.000308
36,856
pythondev
help
threading
2018-03-01T16:48:01.000575
Logan
pythondev_help_Logan_2018-03-01T16:48:01.000575
1,519,922,881.000575
36,857
pythondev
help
Is this the right approach to handle this condition in python?
2018-03-01T17:07:47.000389
Kelsey
pythondev_help_Kelsey_2018-03-01T17:07:47.000389
1,519,924,067.000389
36,858
pythondev
help
```http_auth = False if kwargs.get('username') is not None or kwargs.get('password') is not None: http_auth = True```
2018-03-01T17:07:49.000327
Kelsey
pythondev_help_Kelsey_2018-03-01T17:07:49.000327
1,519,924,069.000327
36,859
pythondev
help
is that logic the pythonic way or is there a better way.
2018-03-01T17:08:20.000241
Kelsey
pythondev_help_Kelsey_2018-03-01T17:08:20.000241
1,519,924,100.000241
36,860
pythondev
help
Can the username or password be an empty string or the number 0?
2018-03-01T17:09:42.000472
Garrett
pythondev_help_Garrett_2018-03-01T17:09:42.000472
1,519,924,182.000472
36,861
pythondev
help
yea
2018-03-01T17:12:24.000222
Kelsey
pythondev_help_Kelsey_2018-03-01T17:12:24.000222
1,519,924,344.000222
36,862
pythondev
help
in fact yea it can
2018-03-01T17:12:43.000640
Kelsey
pythondev_help_Kelsey_2018-03-01T17:12:43.000640
1,519,924,363.00064
36,863
pythondev
help
Then, no, I think you have the correct approach. You should really only compare to `None` (and always use `is` when doing so), if other false-y values could still be correct.
2018-03-01T17:14:05.000489
Garrett
pythondev_help_Garrett_2018-03-01T17:14:05.000489
1,519,924,445.000489
36,864
pythondev
help
ok great, so it looks good? Thanks for your feedback <@Garrett>
2018-03-01T17:15:00.000533
Kelsey
pythondev_help_Kelsey_2018-03-01T17:15:00.000533
1,519,924,500.000533
36,865
pythondev
help
I might use `any()` instead of the `or` since that leads to a long line, but, yeah, it looks fine
2018-03-01T17:15:31.000269
Garrett
pythondev_help_Garrett_2018-03-01T17:15:31.000269
1,519,924,531.000269
36,866
pythondev
help
how would you use `any()`
2018-03-01T17:16:00.000606
Kelsey
pythondev_help_Kelsey_2018-03-01T17:16:00.000606
1,519,924,560.000606
36,867
pythondev
help
``` if any([ kwargs.get('username') is not None, kwargs.get('password') is not None ]): ```
2018-03-01T17:16:36.000180
Garrett
pythondev_help_Garrett_2018-03-01T17:16:36.000180
1,519,924,596.00018
36,868
pythondev
help
If *any* of those evaluate as `True`, the `if` will pass
2018-03-01T17:16:52.000624
Garrett
pythondev_help_Garrett_2018-03-01T17:16:52.000624
1,519,924,612.000624
36,869
pythondev
help
OOO nice, that does look nice!
2018-03-01T17:17:27.000036
Kelsey
pythondev_help_Kelsey_2018-03-01T17:17:27.000036
1,519,924,647.000036
36,870
pythondev
help
You can replace an `and` with `all()` if you want. Same idea
2018-03-01T17:18:58.000120
Garrett
pythondev_help_Garrett_2018-03-01T17:18:58.000120
1,519,924,738.00012
36,871
pythondev
help
Neither is better/worse than the other, just changes how something reads and how much space it takes up
2018-03-01T17:19:15.000625
Garrett
pythondev_help_Garrett_2018-03-01T17:19:15.000625
1,519,924,755.000625
36,872
pythondev
help
ok great! this is awesome stuff. I really thank you for the suggestions and knowledge
2018-03-01T17:20:06.000121
Kelsey
pythondev_help_Kelsey_2018-03-01T17:20:06.000121
1,519,924,806.000121
36,873
pythondev
help
Of course! Good luck w/ your project
2018-03-01T17:21:46.000140
Garrett
pythondev_help_Garrett_2018-03-01T17:21:46.000140
1,519,924,906.00014
36,874
pythondev
help
appreciate it!
2018-03-01T17:27:34.000195
Kelsey
pythondev_help_Kelsey_2018-03-01T17:27:34.000195
1,519,925,254.000195
36,875
pythondev
help
I am new to python, i have installed python IDE. what is the best way to debug the code and see after every loop how code is executed and what value those variable posses. like we do in other programming lang like C/C++ with breakpoint.
2018-03-02T00:03:18.000120
Refugia
pythondev_help_Refugia_2018-03-02T00:03:18.000120
1,519,948,998.00012
36,876
pythondev
help
<@Refugia> <https://www.jetbrains.com/pycharm/>
2018-03-02T00:25:21.000091
Aleida
pythondev_help_Aleida_2018-03-02T00:25:21.000091
1,519,950,321.000091
36,877
pythondev
help
pradeep, the debugger in pycharm is nice like malinoff suggested. If you want to do it more "manually", you can use `<https://docs.python.org/3/library/pdb.html>`. Also...
2018-03-02T00:26:20.000087
Monroe
pythondev_help_Monroe_2018-03-02T00:26:20.000087
1,519,950,380.000087
36,878
pythondev
help
When you use `python` or `python3` on the command line, there are a variety of options ```python -h usage: /usr/bin/python3.6 [option] ... [-c cmd | -m mod | file | -] [arg] ... Options and arguments (and corresponding environment variables): -b : issue warnings about str(bytes_instance), str(bytearray_instance) ...
2018-03-02T00:27:56.000094
Monroe
pythondev_help_Monroe_2018-03-02T00:27:56.000094
1,519,950,476.000094
36,879
pythondev
help
`-i` may address some of your interests. If you are coming from a C background, you might find the `dis` module more to your liking.
2018-03-02T00:28:43.000069
Monroe
pythondev_help_Monroe_2018-03-02T00:28:43.000069
1,519,950,523.000069
36,880
pythondev
help
`<https://docs.python.org/3/library/dis.html?highlight=dis#module-dis>`
2018-03-02T00:29:12.000151
Monroe
pythondev_help_Monroe_2018-03-02T00:29:12.000151
1,519,950,552.000151
36,881
pythondev
help
sure thanks, that helps
2018-03-02T00:29:40.000056
Refugia
pythondev_help_Refugia_2018-03-02T00:29:40.000056
1,519,950,580.000056
36,882
pythondev
help
also note, python uses name assignment similar to an memory pointer, but you may not find that the state is the same after execution as during.
2018-03-02T00:30:54.000058
Monroe
pythondev_help_Monroe_2018-03-02T00:30:54.000058
1,519,950,654.000058
36,883
pythondev
help
because everything is an object and some objects get consumed, they may not exist in the same way that you may be used to
2018-03-02T00:32:09.000076
Monroe
pythondev_help_Monroe_2018-03-02T00:32:09.000076
1,519,950,729.000076
36,884
pythondev
help
Hi all! I need some help.
2018-03-02T06:03:01.000408
Margarete
pythondev_help_Margarete_2018-03-02T06:03:01.000408
1,519,970,581.000408
36,885
pythondev
help
how to set coordinate in loop?
2018-03-02T06:04:43.000188
Margarete
pythondev_help_Margarete_2018-03-02T06:04:43.000188
1,519,970,683.000188
36,886
pythondev
help
may be need change with on for?
2018-03-02T06:05:17.000212
Margarete
pythondev_help_Margarete_2018-03-02T06:05:17.000212
1,519,970,717.000212
36,887
pythondev
help
I would approach it differently. Have all your methods return the data to be written to the file
2018-03-02T09:32:37.000266
Floy
pythondev_help_Floy_2018-03-02T09:32:37.000266
1,519,983,157.000266
36,888
pythondev
help
so your project would be structured like ``` def run(): data_section = call_method_one(param_1, param_2) second_section = call_method_two(param_3, param_4) # open file # write data above to file # save file ```
2018-03-02T09:33:27.000478
Floy
pythondev_help_Floy_2018-03-02T09:33:27.000478
1,519,983,207.000478
36,889
pythondev
help
that way, you have your open, write and close in one place
2018-03-02T09:35:00.000489
Floy
pythondev_help_Floy_2018-03-02T09:35:00.000489
1,519,983,300.000489
36,890
pythondev
help
call_method_one n call_method_two are haveing nested for loop and during the loop condition i m writing data into excel. do u advice that i run the same for loop again on #write data above file line ?
2018-03-02T09:41:12.000536
Refugia
pythondev_help_Refugia_2018-03-02T09:41:12.000536
1,519,983,672.000536
36,891
pythondev
help
do you need to write to file at that point?
2018-03-02T09:42:09.000767
Floy
pythondev_help_Floy_2018-03-02T09:42:09.000767
1,519,983,729.000767
36,892
pythondev
help
yep
2018-03-02T09:42:17.000355
Refugia
pythondev_help_Refugia_2018-03-02T09:42:17.000355
1,519,983,737.000355
36,893
pythondev
help
both in fact more such method which i m calling are wirting some or other data into excel during ensted for loop or other condition
2018-03-02T09:42:49.000524
Refugia
pythondev_help_Refugia_2018-03-02T09:42:49.000524
1,519,983,769.000524
36,894
pythondev
help
alright.
2018-03-02T09:43:20.000598
Floy
pythondev_help_Floy_2018-03-02T09:43:20.000598
1,519,983,800.000598
36,895
pythondev
help
previously i was opening and saving the file within each method, and it was working well. so i through to remove this repitative opening/saving task seperertly
2018-03-02T09:43:27.000041
Refugia
pythondev_help_Refugia_2018-03-02T09:43:27.000041
1,519,983,807.000041
36,896
pythondev
help
so, why not pass in the open file instance to the method
2018-03-02T09:43:31.000030
Floy
pythondev_help_Floy_2018-03-02T09:43:31.000030
1,519,983,811.00003
36,897
pythondev
help
you open one place, pass it to a method as a parameter, and write to the file in that method
2018-03-02T09:43:49.000389
Floy
pythondev_help_Floy_2018-03-02T09:43:49.000389
1,519,983,829.000389
36,898
pythondev
help
sounds intersting ? could u share some pointers ? i m new , not sure how to do it
2018-03-02T09:46:10.000531
Refugia
pythondev_help_Refugia_2018-03-02T09:46:10.000531
1,519,983,970.000531
36,899
pythondev
help
so, you have an open file, right?
2018-03-02T09:50:16.000452
Floy
pythondev_help_Floy_2018-03-02T09:50:16.000452
1,519,984,216.000452
36,900
pythondev
help
and when you pass it to a method, you’re passing that instance, so you can act upon it
2018-03-02T09:50:36.000454
Floy
pythondev_help_Floy_2018-03-02T09:50:36.000454
1,519,984,236.000454
36,901
pythondev
help
so, make those methods to take in that open file
2018-03-02T09:51:39.000329
Floy
pythondev_help_Floy_2018-03-02T09:51:39.000329
1,519,984,299.000329
36,902
pythondev
help
as a parameter
2018-03-02T09:52:02.000052
Floy
pythondev_help_Floy_2018-03-02T09:52:02.000052
1,519,984,322.000052
36,903
pythondev
help
sorry i had to reboot my machine, i m back now
2018-03-02T10:32:58.000030
Refugia
pythondev_help_Refugia_2018-03-02T10:32:58.000030
1,519,986,778.00003
36,904
pythondev
help
no i dont have open file. i hav existing file which i load , write and save it. if i open the excel file while running the code then python would give an error that unable to access fie
2018-03-02T10:34:09.000010
Refugia
pythondev_help_Refugia_2018-03-02T10:34:09.000010
1,519,986,849.00001
36,905
pythondev
help
by the way i started getting this exception
2018-03-02T10:35:00.000398
Refugia
pythondev_help_Refugia_2018-03-02T10:35:00.000398
1,519,986,900.000398
36,906
pythondev
help
File "C:\Program Files\Python36\lib\site-packages\openpyxl\writer\workbook.py", line 95, in write_workbook wb.views[0].activeTab = active IndexError: list index out of range
2018-03-02T10:35:02.000091
Refugia
pythondev_help_Refugia_2018-03-02T10:35:02.000091
1,519,986,902.000091
36,907
pythondev
help
it making my excel file current and i m unable to open it. so i m again downloading it gtom googlesheet where i uploaded initially for backup
2018-03-02T10:35:35.000691
Refugia
pythondev_help_Refugia_2018-03-02T10:35:35.000691
1,519,986,935.000691
36,908
pythondev
help
that might be why
2018-03-02T10:44:44.000466
Floy
pythondev_help_Floy_2018-03-02T10:44:44.000466
1,519,987,484.000466
36,909
pythondev
help
have you gone through this?
2018-03-02T10:45:34.000023
Floy
pythondev_help_Floy_2018-03-02T10:45:34.000023
1,519,987,534.000023
36,910
pythondev
help
<https://openpyxl.readthedocs.io/en/stable/usage.html>
2018-03-02T10:45:34.000505
Floy
pythondev_help_Floy_2018-03-02T10:45:34.000505
1,519,987,534.000505
36,911
pythondev
help
seems like you’re missing a number of things with the basics
2018-03-02T10:45:48.000769
Floy
pythondev_help_Floy_2018-03-02T10:45:48.000769
1,519,987,548.000769
36,912
pythondev
help
sure i will chck this one, yeah i m new instead of reading much i started coding :smile:
2018-03-02T10:48:12.000551
Refugia
pythondev_help_Refugia_2018-03-02T10:48:12.000551
1,519,987,692.000551
36,913
pythondev
help
i m not developer by the way, just started learning :wink:
2018-03-02T10:48:28.000795
Refugia
pythondev_help_Refugia_2018-03-02T10:48:28.000795
1,519,987,708.000795
36,914
pythondev
help
one more thing, i keep getting this warning on my python interpreter. I googled and found this code which would supress the warning. but i still get this warning after including this in my code
2018-03-02T10:49:43.000469
Refugia
pythondev_help_Refugia_2018-03-02T10:49:43.000469
1,519,987,783.000469
36,915
pythondev
help
DeprecationWarning: Call to deprecated function get_sheet_by_name (Use wb[sheetname]).
2018-03-02T10:50:01.000307
Refugia
pythondev_help_Refugia_2018-03-02T10:50:01.000307
1,519,987,801.000307
36,916
pythondev
help
and ti have added following piece in my code
2018-03-02T10:50:22.000823
Refugia
pythondev_help_Refugia_2018-03-02T10:50:22.000823
1,519,987,822.000823
36,917
pythondev
help
def fxn(): warnings.warn("deprecated", DeprecationWarning) with warnings.catch_warnings(): warnings.simplefilter("ignore") fxn()
2018-03-02T10:50:24.000707
Refugia
pythondev_help_Refugia_2018-03-02T10:50:24.000707
1,519,987,824.000707
36,918
pythondev
help
you can use triple backticks for multiple line code formatting
2018-03-02T10:54:42.000561
Floy
pythondev_help_Floy_2018-03-02T10:54:42.000561
1,519,988,082.000561
36,919
pythondev
help
warnings are just a heads up
2018-03-02T10:55:00.000738
Floy
pythondev_help_Floy_2018-03-02T10:55:00.000738
1,519,988,100.000738
36,920
pythondev
help
I just look at them, and if they’re relevant, I make a note or comment and then go on
2018-03-02T10:55:25.000075
Floy
pythondev_help_Floy_2018-03-02T10:55:25.000075
1,519,988,125.000075
36,921
pythondev
help
well deprecation warning are best to fix. Even more if just starting the project. But yeah you can deal with that later
2018-03-02T10:56:04.000636
Micki
pythondev_help_Micki_2018-03-02T10:56:04.000636
1,519,988,164.000636
36,922
pythondev
help
deprecation warnings can also be a sign that whatever tutorial you’re following is out-of-date, meaning there’s a chance you’re going to run into bigger problems.
2018-03-02T10:57:10.000245
Stacia
pythondev_help_Stacia_2018-03-02T10:57:10.000245
1,519,988,230.000245
36,923