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 didn't know where to start, this was the largest community I could find :slightly_smiling_face: | 2019-03-18T10:08:06.953000 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:08:06.953000 | 1,552,903,686.953 | 13,921 |
pythondev | help | is there an ml/computervision subchannel here|? | 2019-03-18T10:08:20.953300 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:08:20.953300 | 1,552,903,700.9533 | 13,922 |
pythondev | help | <@Arcelia> I've been working with darknet lately as I'm training a custom model for the yolo plugin of Shinobi (a free, open-source NVR platform written in node) | 2019-03-18T10:15:26.954400 | Ashley | pythondev_help_Ashley_2019-03-18T10:15:26.954400 | 1,552,904,126.9544 | 13,923 |
pythondev | help | there’s a <#C0JB9ATQV|data_science> channel | 2019-03-18T10:16:42.955600 | Hiroko | pythondev_help_Hiroko_2019-03-18T10:16:42.955600 | 1,552,904,202.9556 | 13,924 |
pythondev | help | with darknet you can train it on custom sets of objects, and it's pretty fast. I would recommend using AlexeyAB's fork of it though. It's a bit more stable and produces more accurate models | 2019-03-18T10:16:49.955800 | Ashley | pythondev_help_Ashley_2019-03-18T10:16:49.955800 | 1,552,904,209.9558 | 13,925 |
pythondev | help | I was experimenting with selenium automated testing using a jupyter notebook
it seems Symantec Endpoint Protection on my laptop has classified this as malicious activity and has quarantined jupyter.exe under Python scripts folder and a bunch of files around the*.ipynb notebook
I clicked on "Restore" from symantec thr... | 2019-03-18T10:27:27.959100 | Kristofer | pythondev_help_Kristofer_2019-03-18T10:27:27.959100 | 1,552,904,847.9591 | 13,926 |
pythondev | help | Appreciate it! Googling it now :slightly_smiling_face:, please note I am an absolute beginner. I know roughly that I need to learn about learning, training models and computer vision but not where to look for the resources. | 2019-03-18T10:30:40.959600 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:30:40.959600 | 1,552,905,040.9596 | 13,927 |
pythondev | help | delete symantic? | 2019-03-18T10:30:43.959800 | Hiroko | pythondev_help_Hiroko_2019-03-18T10:30:43.959800 | 1,552,905,043.9598 | 13,928 |
pythondev | help | IIRC that’s fairly heavy on the false positives | 2019-03-18T10:30:59.960100 | Hiroko | pythondev_help_Hiroko_2019-03-18T10:30:59.960100 | 1,552,905,059.9601 | 13,929 |
pythondev | help | any reason you’re using that and not windows defender? | 2019-03-18T10:31:10.960500 | Hiroko | pythondev_help_Hiroko_2019-03-18T10:31:10.960500 | 1,552,905,070.9605 | 13,930 |
pythondev | help | sure. It is very janky to work with, so if you hit any snags, just let me know. I've probably hit the same one's (assuming you're attempting this on Linux) | 2019-03-18T10:31:39.961300 | Ashley | pythondev_help_Ashley_2019-03-18T10:31:39.961300 | 1,552,905,099.9613 | 13,931 |
pythondev | help | :slightly_smiling_face: i wish i could ... i am using my work computer and am bound by org policies ...though they were generous to give me admin permissions on my laptop | 2019-03-18T10:31:44.961600 | Kristofer | pythondev_help_Kristofer_2019-03-18T10:31:44.961600 | 1,552,905,104.9616 | 13,932 |
pythondev | help | I would email your tech support. Feel free to attach jupyter.exe and freak them all out. | 2019-03-18T10:32:16.962100 | Jonas | pythondev_help_Jonas_2019-03-18T10:32:16.962100 | 1,552,905,136.9621 | 13,933 |
pythondev | help | I have to work in Windows, my ultimate goal is to do data mining from a constant video stream. Software that produces the content is only available on windows | 2019-03-18T10:33:29.962200 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:33:29.962200 | 1,552,905,209.9622 | 13,934 |
pythondev | help | ha ha :slightly_smiling_face:
yeah -- i dont have high hopes from our IT ... they may recommend uninstalling everything and reinstalling and all that trial and error. sigh. | 2019-03-18T10:34:57.963400 | Kristofer | pythondev_help_Kristofer_2019-03-18T10:34:57.963400 | 1,552,905,297.9634 | 13,935 |
pythondev | help | Definitely appreciate the offer though! Have to do a bit more reading on this. Seems like this is a pretrained model? | 2019-03-18T10:35:55.963500 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:35:55.963500 | 1,552,905,355.9635 | 13,936 |
pythondev | help | Thanks! Joined it and <#C07F1KB2Q|advanced_python> | 2019-03-18T10:39:34.963700 | Arcelia | pythondev_help_Arcelia_2019-03-18T10:39:34.963700 | 1,552,905,574.9637 | 13,937 |
pythondev | help | AlexeyAB actually made their fork to support Windows and fix a few bugs, but I just used Linux because it's a more solid platform for something like NVR | 2019-03-18T10:42:10.963900 | Ashley | pythondev_help_Ashley_2019-03-18T10:42:10.963900 | 1,552,905,730.9639 | 13,938 |
pythondev | help | it has some pretrained weights, but you can train it on any set of objects assuming you have sufficient training data | 2019-03-18T10:43:02.964100 | Ashley | pythondev_help_Ashley_2019-03-18T10:43:02.964100 | 1,552,905,782.9641 | 13,939 |
pythondev | help | what are you hoping to detect? | 2019-03-18T10:43:15.964300 | Ashley | pythondev_help_Ashley_2019-03-18T10:43:15.964300 | 1,552,905,795.9643 | 13,940 |
pythondev | help | ^update: there were two entries (both from today) in the Threat Protection Logs -- first one said "Restart Required - Quarantined" and the second one said "Restart Processed"
I tried once again the "Restore" action on the first entry and this time it seems to have restored the jupyter.exe to normal functionality
I am... | 2019-03-18T10:48:12.967500 | Kristofer | pythondev_help_Kristofer_2019-03-18T10:48:12.967500 | 1,552,906,092.9675 | 13,941 |
pythondev | help | as a side note, Shinobi has pretty cool plugin support, and it's very lightweight. The yolo plugin can also be configured to store a record of whatever it detected in a DB. You could probably use it to do what you want. I'm not sure how your whole system ties together, so it might not be worth it though | 2019-03-18T10:52:04.967600 | Ashley | pythondev_help_Ashley_2019-03-18T10:52:04.967600 | 1,552,906,324.9676 | 13,942 |
pythondev | help | all, I have a programming approach question may be specific to Python. When parsing strings containing text and delimiters, is it much better to parse syntax on-the-spot as you're iterating through each word/delimiter or pull out what's marked by delimiters, parse, then reinsert back into the marked placeholders? I gue... | 2019-03-18T13:29:13.972600 | Granville | pythondev_help_Granville_2019-03-18T13:29:13.972600 | 1,552,915,753.9726 | 13,943 |
pythondev | help | Depending on the consistency of the delimiters, you could utilize regex capture groups. | 2019-03-18T13:32:34.973700 | Marla | pythondev_help_Marla_2019-03-18T13:32:34.973700 | 1,552,915,954.9737 | 13,944 |
pythondev | help | that's what I was thinking. I'm still trying to determine how to best approach that as the delimiters can vary from a set of enclosed brackets to single colons | 2019-03-18T13:34:09.974700 | Granville | pythondev_help_Granville_2019-03-18T13:34:09.974700 | 1,552,916,049.9747 | 13,945 |
pythondev | help | If the delimiters are cleanly indicated, I tend to `split()` first and tackle each piece second. The exception is when you have issues like "oh, no, that comma is actually within quotes, so it's not a delimiter", where you need to parse the contents as you go just to understand how to split things. | 2019-03-18T13:36:08.976600 | Sasha | pythondev_help_Sasha_2019-03-18T13:36:08.976600 | 1,552,916,168.9766 | 13,946 |
pythondev | help | that makes sense, thanks | 2019-03-18T13:38:25.977700 | Granville | pythondev_help_Granville_2019-03-18T13:38:25.977700 | 1,552,916,305.9777 | 13,947 |
pythondev | help | anyone know of good libraries to run sql queries via the web browser? | 2019-03-18T14:20:00.978100 | Nenita | pythondev_help_Nenita_2019-03-18T14:20:00.978100 | 1,552,918,800.9781 | 13,948 |
pythondev | help | that's kinda taboo | 2019-03-18T14:20:34.978400 | Ashley | pythondev_help_Ashley_2019-03-18T14:20:34.978400 | 1,552,918,834.9784 | 13,949 |
pythondev | help | historically, managing to run SQL queries from a frontend interface was a common approach for hackers | 2019-03-18T14:22:26.979500 | Ashley | pythondev_help_Ashley_2019-03-18T14:22:26.979500 | 1,552,918,946.9795 | 13,950 |
pythondev | help | yep, and the glory days of sql injection | 2019-03-18T14:26:07.979800 | Hiroko | pythondev_help_Hiroko_2019-03-18T14:26:07.979800 | 1,552,919,167.9798 | 13,951 |
pythondev | help | sql server in azure has a query editor | 2019-03-18T14:30:59.980500 | Deon | pythondev_help_Deon_2019-03-18T14:30:59.980500 | 1,552,919,459.9805 | 13,952 |
pythondev | help | relevant: <https://xkcd.com/327/> | 2019-03-18T14:31:08.980700 | Ashley | pythondev_help_Ashley_2019-03-18T14:31:08.980700 | 1,552,919,468.9807 | 13,953 |
pythondev | help | What is the best way to configure Debian 9.5 to use URF8 or allow by default? | 2019-03-18T15:03:51.984400 | Candra | pythondev_help_Candra_2019-03-18T15:03:51.984400 | 1,552,921,431.9844 | 13,954 |
pythondev | help | I installed the `locales` debian package and run:
```
sudo sed -i '/^#.* en_US.* /s/^#//' /etc/locale.gen
sudo locale-gen
export LC_ALL=en_US.UTF8
```
but I’m not sure if this is the “proper” way or more hacky. | 2019-03-18T15:24:19.985600 | Candra | pythondev_help_Candra_2019-03-18T15:24:19.985600 | 1,552,922,659.9856 | 13,955 |
pythondev | help | I have the following snippet that is failing silently. | 2019-03-18T15:46:09.985900 | Jamey | pythondev_help_Jamey_2019-03-18T15:46:09.985900 | 1,552,923,969.9859 | 13,956 |
pythondev | help | The idea is that I use `click` to show the user a number of random values from the News API from which they pick their news source of choice, upon which I return them the headlines from that choice.
It works when I do it without `click` but I'm trying to work out where I get the user to input data so that the prompt sh... | 2019-03-18T15:46:52.986700 | Jamey | pythondev_help_Jamey_2019-03-18T15:46:52.986700 | 1,552,924,012.9867 | 13,957 |
pythondev | help | ```if sources.ok:
source_list = [source['name'] for source in sources.json()['sources']]
full_sources_list = {
source['name']: source['id'] for source in sources.json()['sources']
}
rand_list = sample(source_list, 4)``` | 2019-03-18T15:47:24.986900 | Hiroko | pythondev_help_Hiroko_2019-03-18T15:47:24.986900 | 1,552,924,044.9869 | 13,958 |
pythondev | help | what happens if `sources` is not ok? | 2019-03-18T15:47:55.987600 | Hiroko | pythondev_help_Hiroko_2019-03-18T15:47:55.987600 | 1,552,924,075.9876 | 13,959 |
pythondev | help | I haven't written code for that case but I know it isn't the one failing because when I put `choice` above the `click` declaration, it returns the list of sources as expected. Not great, but it works | 2019-03-18T15:51:34.989200 | Jamey | pythondev_help_Jamey_2019-03-18T15:51:34.989200 | 1,552,924,294.9892 | 13,960 |
pythondev | help | ¯\_(ツ)_/¯ | 2019-03-18T15:51:36.989300 | Jamey | pythondev_help_Jamey_2019-03-18T15:51:36.989300 | 1,552,924,296.9893 | 13,961 |
pythondev | help | Hey guys, I'm working with Python/Django but getting a syntax error trying to create a new route in the global urls.py. First time, and I'm not sure where the syntax error is. | 2019-03-18T16:12:32.990200 | Hayden | pythondev_help_Hayden_2019-03-18T16:12:32.990200 | 1,552,925,552.9902 | 13,962 |
pythondev | help | missing a ) i think? | 2019-03-18T16:13:24.990600 | Deon | pythondev_help_Deon_2019-03-18T16:13:24.990600 | 1,552,925,604.9906 | 13,963 |
pythondev | help | after 'blog.urls') | 2019-03-18T16:13:30.990800 | Deon | pythondev_help_Deon_2019-03-18T16:13:30.990800 | 1,552,925,610.9908 | 13,964 |
pythondev | help | yeah looks like it to me too | 2019-03-18T16:14:01.991200 | Britteny | pythondev_help_Britteny_2019-03-18T16:14:01.991200 | 1,552,925,641.9912 | 13,965 |
pythondev | help | Yeah, that got me to a new error! Thanks <@Deon> | 2019-03-18T16:14:48.991700 | Hayden | pythondev_help_Hayden_2019-03-18T16:14:48.991700 | 1,552,925,688.9917 | 13,966 |
pythondev | help | yw | 2019-03-18T16:14:59.991900 | Deon | pythondev_help_Deon_2019-03-18T16:14:59.991900 | 1,552,925,699.9919 | 13,967 |
pythondev | help | "ValueError: time data '2019-03-15T22:10:40.735258Z' does not match format '%Y-%m-%dT%H:%M:%S.%f%Z'" | 2019-03-18T17:11:02.993200 | Doretta | pythondev_help_Doretta_2019-03-18T17:11:02.993200 | 1,552,929,062.9932 | 13,968 |
pythondev | help | This exception happens when i run my code in Linux, but when I run it on windows it works perfectly fine, here is the line: | 2019-03-18T17:11:58.994100 | Doretta | pythondev_help_Doretta_2019-03-18T17:11:58.994100 | 1,552,929,118.9941 | 13,969 |
pythondev | help | None | 2019-03-18T17:12:04.994200 | Doretta | pythondev_help_Doretta_2019-03-18T17:12:04.994200 | 1,552,929,124.9942 | 13,970 |
pythondev | help | any idea why it is working on windows but failing on linux? | 2019-03-18T17:12:36.994900 | Doretta | pythondev_help_Doretta_2019-03-18T17:12:36.994900 | 1,552,929,156.9949 | 13,971 |
pythondev | help | try %Z instead of %z? | 2019-03-18T17:14:08.995200 | Deon | pythondev_help_Deon_2019-03-18T17:14:08.995200 | 1,552,929,248.9952 | 13,972 |
pythondev | help | and if that doesnt work try .%fZ | 2019-03-18T17:15:27.995500 | Deon | pythondev_help_Deon_2019-03-18T17:15:27.995500 | 1,552,929,327.9955 | 13,973 |
pythondev | help | hmm ok | 2019-03-18T17:16:25.995700 | Doretta | pythondev_help_Doretta_2019-03-18T17:16:25.995700 | 1,552,929,385.9957 | 13,974 |
pythondev | help | let me try | 2019-03-18T17:16:26.995900 | Doretta | pythondev_help_Doretta_2019-03-18T17:16:26.995900 | 1,552,929,386.9959 | 13,975 |
pythondev | help | i already tried %Z but didnt work out, i will try %fZ now | 2019-03-18T17:17:06.996600 | Doretta | pythondev_help_Doretta_2019-03-18T17:17:06.996600 | 1,552,929,426.9966 | 13,976 |
pythondev | help | File "/usr/lib64/python3.6/sre_parse.py", line 759, in _parse
raise source.error(err.msg, len(name) + 1) from None
sre_constants.error: redefinition of group name 'f' as group 8; was group 7 at position 175 | 2019-03-18T17:20:46.997400 | Doretta | pythondev_help_Doretta_2019-03-18T17:20:46.997400 | 1,552,929,646.9974 | 13,977 |
pythondev | help | unfortunately failed | 2019-03-18T17:20:52.997700 | Doretta | pythondev_help_Doretta_2019-03-18T17:20:52.997700 | 1,552,929,652.9977 | 13,978 |
pythondev | help | what version python? | 2019-03-18T17:26:23.997900 | Hiroko | pythondev_help_Hiroko_2019-03-18T17:26:23.997900 | 1,552,929,983.9979 | 13,979 |
pythondev | help | 3.6.7 | 2019-03-18T17:28:24.998100 | Doretta | pythondev_help_Doretta_2019-03-18T17:28:24.998100 | 1,552,930,104.9981 | 13,980 |
pythondev | help | Are you doing %f%fZ? | 2019-03-18T17:30:05.998600 | Sasha | pythondev_help_Sasha_2019-03-18T17:30:05.998600 | 1,552,930,205.9986 | 13,981 |
pythondev | help | ```%f%z``` | 2019-03-18T17:30:19.998800 | Hiroko | pythondev_help_Hiroko_2019-03-18T17:30:19.998800 | 1,552,930,219.9988 | 13,982 |
pythondev | help | `%f` is microsecnd as a decimal number | 2019-03-18T17:30:31.999100 | Hiroko | pythondev_help_Hiroko_2019-03-18T17:30:31.999100 | 1,552,930,231.9991 | 13,983 |
pythondev | help | I was doing %f%fZ, now i did it %fZ and it is working | 2019-03-18T17:34:22.999800 | Doretta | pythondev_help_Doretta_2019-03-18T17:34:22.999800 | 1,552,930,462.9998 | 13,984 |
pythondev | help | thanks | 2019-03-18T17:34:24.000000 | Doretta | pythondev_help_Doretta_2019-03-18T17:34:24.000000 | 1,552,930,464 | 13,985 |
pythondev | help | Can someone tell me why I get this error ' data = list(row[i] for i in included_cols)
NameError: name 'row' is not defined' and suggest how to fix it? Thanks. | 2019-03-18T18:20:42.000100 | Rosalia | pythondev_help_Rosalia_2019-03-18T18:20:42.000100 | 1,552,933,242.0001 | 13,986 |
pythondev | help | for the above, import csv | 2019-03-18T18:35:52.000400 | Rosalia | pythondev_help_Rosalia_2019-03-18T18:35:52.000400 | 1,552,934,152.0004 | 13,987 |
pythondev | help | import .models LatLong | 2019-03-18T18:36:04.000600 | Rosalia | pythondev_help_Rosalia_2019-03-18T18:36:04.000600 | 1,552,934,164.0006 | 13,988 |
pythondev | help | <@Rosalia> That is pretty puzzling to me. Are you really running the code as pasted here, or was there some change from when the error was encountered? | 2019-03-18T18:44:05.001700 | Sasha | pythondev_help_Sasha_2019-03-18T18:44:05.001700 | 1,552,934,645.0017 | 13,989 |
pythondev | help | It's running as it's shown. Darn why does this always happen to me? Here is the wider context. Thanks! | 2019-03-18T18:45:34.001800 | Rosalia | pythondev_help_Rosalia_2019-03-18T18:45:34.001800 | 1,552,934,734.0018 | 13,990 |
pythondev | help | Just for kicks can you paste the full error? | 2019-03-18T18:47:14.002300 | Sasha | pythondev_help_Sasha_2019-03-18T18:47:14.002300 | 1,552,934,834.0023 | 13,991 |
pythondev | help | I'm trying but it's too big for slack. Hmm I can try to do some lines at least! | 2019-03-18T19:15:14.002600 | Rosalia | pythondev_help_Rosalia_2019-03-18T19:15:14.002600 | 1,552,936,514.0026 | 13,992 |
pythondev | help | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/ardrasalemy/TransLoc/Challenge/GeoData-Django/heatmap/management/commands/load_geodata.py", line 11, in <module>
class Command(BaseCommand):
File "/Users/ardrasalemy/TransLoc/Challenge/GeoData-Django/heatmap/ma... | 2019-03-18T19:24:37.002900 | Rosalia | pythondev_help_Rosalia_2019-03-18T19:24:37.002900 | 1,552,937,077.0029 | 13,993 |
pythondev | help | Is that helpful at all? Thanks! | 2019-03-18T19:24:54.003100 | Rosalia | pythondev_help_Rosalia_2019-03-18T19:24:54.003100 | 1,552,937,094.0031 | 13,994 |
pythondev | help | Thanks. Yeah, I mainly just wanted to double-check it. I'm honestly really puzzled. | 2019-03-18T19:27:41.003300 | Sasha | pythondev_help_Sasha_2019-03-18T19:27:41.003300 | 1,552,937,261.0033 | 13,995 |
pythondev | help | Maybe try inserting a `print(row)` above it to see if the variable is known outside of the generator context? | 2019-03-18T19:28:31.003500 | Sasha | pythondev_help_Sasha_2019-03-18T19:28:31.003500 | 1,552,937,311.0035 | 13,996 |
pythondev | help | Is there any chance you have an editor that might have used a different Unicode character in your source code, so that you've effectively got like `for röw in reader`? | 2019-03-18T19:30:15.003700 | Sasha | pythondev_help_Sasha_2019-03-18T19:30:15.003700 | 1,552,937,415.0037 | 13,997 |
pythondev | help | Tabs instead of spaces messing up the indent levels so it thinks it's not actually inside the `for` loop? I'm grasping at straws. | 2019-03-18T19:30:48.003900 | Sasha | pythondev_help_Sasha_2019-03-18T19:30:48.003900 | 1,552,937,448.0039 | 13,998 |
pythondev | help | I thought same and copied code to my editor, and indentation looked fine | 2019-03-18T19:32:45.004200 | Raguel | pythondev_help_Raguel_2019-03-18T19:32:45.004200 | 1,552,937,565.0042 | 13,999 |
pythondev | help | I'm using Visual Studio Code, usually works pretty well for linting and stuff. I'll try the print and report back! | 2019-03-18T19:33:27.004400 | Rosalia | pythondev_help_Rosalia_2019-03-18T19:33:27.004400 | 1,552,937,607.0044 | 14,000 |
pythondev | help | By the way, indexing `row` by number I don't think will work, but that should produce a different error. Also, you don't have to skip the header with a `DictReader` since it reads in the header itself to create the dict keys. | 2019-03-18T19:45:05.004600 | Sasha | pythondev_help_Sasha_2019-03-18T19:45:05.004600 | 1,552,938,305.0046 | 14,001 |
pythondev | help | Thank you Ed! I got the solution. I can paste it for you if you're curious. And you're suggestions are right. | 2019-03-18T21:45:31.005000 | Rosalia | pythondev_help_Rosalia_2019-03-18T21:45:31.005000 | 1,552,945,531.005 | 14,002 |
pythondev | help | Yes, please, I'm very curious what was wrong. | 2019-03-18T21:45:58.005200 | Sasha | pythondev_help_Sasha_2019-03-18T21:45:58.005200 | 1,552,945,558.0052 | 14,003 |
pythondev | help | class Command(BaseCommand):
# ("heatmap/.GeoLite2-City-CSV_20190312/.GeoLite2-City-Blocks-IPv4.csv")
def handle(self, *args, **kwargs):
with open('heatmap/.GeoLite2-City-CSV_20190312/.GeoLite2-City-Blocks-IPv4.csv') as csvfile:
# get number of columns
# num_columns = len(csvfile... | 2019-03-18T21:50:46.005400 | Rosalia | pythondev_help_Rosalia_2019-03-18T21:50:46.005400 | 1,552,945,846.0054 | 14,004 |
pythondev | help | So what was the thing that changed to make the error go away? | 2019-03-18T21:53:32.005600 | Sasha | pythondev_help_Sasha_2019-03-18T21:53:32.005600 | 1,552,946,012.0056 | 14,005 |
pythondev | help | I think the two main problems were the for loop (didn't need it) and also taking out the 'included_cols' line, since as you said, the dictreader read the columns. | 2019-03-18T21:56:02.005800 | Rosalia | pythondev_help_Rosalia_2019-03-18T21:56:02.005800 | 1,552,946,162.0058 | 14,006 |
pythondev | help | Now I need to figure out how to delete 109,000+ model objects that got created during all the testing! Maybe i should just delete the database and recreate it? | 2019-03-18T21:57:48.006000 | Rosalia | pythondev_help_Rosalia_2019-03-18T21:57:48.006000 | 1,552,946,268.006 | 14,007 |
pythondev | help | Hmmm. Still doesn't really explain the NameError. Maybe I'll chalk that up to VSCode getting into a weird state where it was executing a cached .pyc instead of the latest source... | 2019-03-18T21:58:55.006200 | Sasha | pythondev_help_Sasha_2019-03-18T21:58:55.006200 | 1,552,946,335.0062 | 14,008 |
pythondev | help | I guess I mean not the for loop but the data line under it. Still learning myself! | 2019-03-18T22:00:35.006400 | Rosalia | pythondev_help_Rosalia_2019-03-18T22:00:35.006400 | 1,552,946,435.0064 | 14,009 |
pythondev | help | Unable to reproduce `NameError`. It gives `KeyError` and that makes sense. | 2019-03-18T22:34:26.006800 | Raguel | pythondev_help_Raguel_2019-03-18T22:34:26.006800 | 1,552,948,466.0068 | 14,010 |
pythondev | help | <@Sasha> you might be right?: <https://stackoverflow.com/questions/45216264/clear-file-content-cache-in-visual-studio-code> | 2019-03-18T22:36:50.007000 | Raguel | pythondev_help_Raguel_2019-03-18T22:36:50.007000 | 1,552,948,610.007 | 14,011 |
pythondev | help | I probably need to add that to my repertoire for "impossible" behavior... "Are you using an IDE, and have you restarted it?" | 2019-03-18T22:40:27.007300 | Sasha | pythondev_help_Sasha_2019-03-18T22:40:27.007300 | 1,552,948,827.0073 | 14,012 |
pythondev | help | I think a few weeks ago one of you guys told me that the %s style of string formatting is out of fashion but i can't find what i'm supposed to be using instead | 2019-03-18T22:47:14.008300 | Demetrice | pythondev_help_Demetrice_2019-03-18T22:47:14.008300 | 1,552,949,234.0083 | 14,013 |
pythondev | help | What version of python are you on? If python 3.7 then you want f-strings, otherwise you want str.format. <https://realpython.com/python-f-strings/> | 2019-03-18T22:53:42.008700 | Letty | pythondev_help_Letty_2019-03-18T22:53:42.008700 | 1,552,949,622.0087 | 14,014 |
pythondev | help | (that guide covers the basics of str.format too, and what benefits each method has) | 2019-03-18T22:54:32.009000 | Letty | pythondev_help_Letty_2019-03-18T22:54:32.009000 | 1,552,949,672.009 | 14,015 |
pythondev | help | It's something i find myself looking up often. I think i'll save this link. Thank You | 2019-03-18T23:00:59.009200 | Demetrice | pythondev_help_Demetrice_2019-03-18T23:00:59.009200 | 1,552,950,059.0092 | 14,016 |
pythondev | help | Modified it to this:
```
from random import sample
from urllib.parse import urljoin
import click
import requests
from .settings import API_KEY, SOURCES, TOP_HEAD
SOURCE_URL = urljoin(SOURCES, '?apiKey={}'.format(API_KEY))
# TODO: Try a deliberate failure to see how the remote API responds
# so that your code knows ... | 2019-03-19T04:31:27.009700 | Jamey | pythondev_help_Jamey_2019-03-19T04:31:27.009700 | 1,552,969,887.0097 | 14,017 |
pythondev | help | Does anyone understand why I cannot `import redis` in a script, but can do it in a repl?
```
# python dev/tools/update_apps_redis.py
File "/path/to/file.py", line 5, in <module>
import redis
ImportError: No module named redis
```
but
```
# python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 2... | 2019-03-19T05:26:26.011300 | Yaeko | pythondev_help_Yaeko_2019-03-19T05:26:26.011300 | 1,552,973,186.0113 | 14,018 |
pythondev | help | There are no virtualenv or similar involved | 2019-03-19T05:26:37.011800 | Yaeko | pythondev_help_Yaeko_2019-03-19T05:26:37.011800 | 1,552,973,197.0118 | 14,019 |
pythondev | help | try `which python` | 2019-03-19T05:27:04.012200 | Brandi | pythondev_help_Brandi_2019-03-19T05:27:04.012200 | 1,552,973,224.0122 | 14,020 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.