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 | Knowing how to ask a good question is a highly invaluable skill that will benefit you greatly in any career. Two good resources for suggestions and strategies to help you structure and phrase your question to make it easier for those here to understand your problem and help you work to a solution are:
• <https://www.mikeash.com/getting_answers.html>
• <https://stackoverflow.com/help/how-to-ask>
| 2019-02-21T08:52:20.131700 | Leana | pythondev_help_Leana_2019-02-21T08:52:20.131700 | 1,550,739,140.1317 | 9,821 |
pythondev | help | <https://www.google.com/search?client=firefox-b-d&q=how+i+can+get+mx+record+with+python%3F> | 2019-02-21T08:52:25.131900 | Jonas | pythondev_help_Jonas_2019-02-21T08:52:25.131900 | 1,550,739,145.1319 | 9,822 |
pythondev | help | Thanks for the help mate! | 2019-02-21T08:59:15.132600 | Lorinda | pythondev_help_Lorinda_2019-02-21T08:59:15.132600 | 1,550,739,555.1326 | 9,823 |
pythondev | help | <@Karen> <https://pypi.org/project/SPF2IP/> maybe? | 2019-02-21T09:01:20.133000 | Yaeko | pythondev_help_Yaeko_2019-02-21T09:01:20.133000 | 1,550,739,680.133 | 9,824 |
pythondev | help | I have a celery `shared_task` and I want to pass in api after it's been initialised in another function. How do I do this with the following code?
How do I pass the variable api to set_client in these two functions?
When I try this I receive the following error.
`in mb_account_bal`
`api = get_client(api)`
`UnboundLocalError: local variable 'api' referenced before assignment`
```from backend.models import MBLogin
from API import APIClient
from celery import shared_task```
```def set_client():
userfield = 'username'
passfield = 'password'
login_obj = MBlogin.objects.first()
username = getattr(login_obj,userfield)
password = getattr(login_obj,passfield)
api = APIClient(username, password)
return api
def get_client(api):
if not api.session_token:
api.login()
return api
@shared_task()
def mb_account_bal():
api = get_client(api)
r = api.account.get_account(balance_only=True)
print(r)``` | 2019-02-21T09:01:32.133300 | Franklyn | pythondev_help_Franklyn_2019-02-21T09:01:32.133300 | 1,550,739,692.1333 | 9,825 |
pythondev | help | Np! | 2019-02-21T09:02:42.133400 | Ashley | pythondev_help_Ashley_2019-02-21T09:02:42.133400 | 1,550,739,762.1334 | 9,826 |
pythondev | help | also, <@Jolanda> there’s a <#C0LN2AD7T|flask> channel here for a more targeted topic | 2019-02-21T09:19:23.134400 | Hiroko | pythondev_help_Hiroko_2019-02-21T09:19:23.134400 | 1,550,740,763.1344 | 9,827 |
pythondev | help | <@Franklyn> you're passing a varialbe that doesn't exist to `get-client` | 2019-02-21T09:28:08.134900 | Mica | pythondev_help_Mica_2019-02-21T09:28:08.134900 | 1,550,741,288.1349 | 9,828 |
pythondev | help | the simpliest way i can think off is passing the `api` instance to the clery task | 2019-02-21T09:28:23.135400 | Mica | pythondev_help_Mica_2019-02-21T09:28:23.135400 | 1,550,741,303.1354 | 9,829 |
pythondev | help | I doubt that would work, the values need to be serialised to JSON | 2019-02-21T09:32:00.136100 | Jonas | pythondev_help_Jonas_2019-02-21T09:32:00.136100 | 1,550,741,520.1361 | 9,830 |
pythondev | help | I recommend passing the username and password to the celery task | 2019-02-21T09:32:16.136500 | Jonas | pythondev_help_Jonas_2019-02-21T09:32:16.136500 | 1,550,741,536.1365 | 9,831 |
pythondev | help | The username and password are for updating a third party class and subclass that manage a whole bunch of stuff including request.session. That will add complications | 2019-02-21T09:36:19.139100 | Franklyn | pythondev_help_Franklyn_2019-02-21T09:36:19.139100 | 1,550,741,779.1391 | 9,832 |
pythondev | help | you have those complications already | 2019-02-21T09:38:10.139600 | Jonas | pythondev_help_Jonas_2019-02-21T09:38:10.139600 | 1,550,741,890.1396 | 9,833 |
pythondev | help | problem is, a celery task relies on data that can be serialized and transported | 2019-02-21T09:38:17.140000 | Hiroko | pythondev_help_Hiroko_2019-02-21T09:38:17.140000 | 1,550,741,897.14 | 9,834 |
pythondev | help | the celery task runs in a different process, maybe a different machine at a different time. | 2019-02-21T09:38:29.140500 | Jonas | pythondev_help_Jonas_2019-02-21T09:38:29.140500 | 1,550,741,909.1405 | 9,835 |
pythondev | help | the worker and task are running separately from the code you’re instanciating an object, so you need to use serialization to pack in data that task needs to run in order to transport it | 2019-02-21T09:38:51.141100 | Hiroko | pythondev_help_Hiroko_2019-02-21T09:38:51.141100 | 1,550,741,931.1411 | 9,836 |
pythondev | help | and you need to design your systems to work in this way if you want background tasks. | 2019-02-21T09:40:39.142300 | Jonas | pythondev_help_Jonas_2019-02-21T09:40:39.142300 | 1,550,742,039.1423 | 9,837 |
pythondev | help | it gets really tricky if the credentials are time-bound as well | 2019-02-21T09:41:00.142900 | Jonas | pythondev_help_Jonas_2019-02-21T09:41:00.142900 | 1,550,742,060.1429 | 9,838 |
pythondev | help | Hmm. For storing login credentials that this APICient relies on within a django project. Is it possible to have them in a django model with rest framework so they can be serialised and de-serialised then passed to the task? Would that be a good approach? I'd like the flexibility to edit the values from the admin page on the fly. | 2019-02-21T09:43:59.145500 | Franklyn | pythondev_help_Franklyn_2019-02-21T09:43:59.145500 | 1,550,742,239.1455 | 9,839 |
pythondev | help | you seem to be storing sensitive account credentials | 2019-02-21T09:45:42.145900 | Jonas | pythondev_help_Jonas_2019-02-21T09:45:42.145900 | 1,550,742,342.1459 | 9,840 |
pythondev | help | be very, very careful with how you handle these usernames and passwords, especially if they are customer details | 2019-02-21T09:45:59.146400 | Jonas | pythondev_help_Jonas_2019-02-21T09:45:59.146400 | 1,550,742,359.1464 | 9,841 |
pythondev | help | and, as part of that, store them for as shorter time as possible. Things in databases tend to stay around forever. | 2019-02-21T09:46:15.146800 | Jonas | pythondev_help_Jonas_2019-02-21T09:46:15.146800 | 1,550,742,375.1468 | 9,842 |
pythondev | help | <@Jonas> there not customer details so there's no worry about this. | 2019-02-21T09:48:33.147900 | Franklyn | pythondev_help_Franklyn_2019-02-21T09:48:33.147900 | 1,550,742,513.1479 | 9,843 |
pythondev | help | ye, creating a serialiser makes sense, also maybe a dedicated worker and def a dedicated queue if you're working with credentials, this should make sure those tasks are always executed and not waiting in whatever you're using as the queue handler | 2019-02-21T09:55:30.149300 | Mica | pythondev_help_Mica_2019-02-21T09:55:30.149300 | 1,550,742,930.1493 | 9,844 |
pythondev | help | Does anyone know if it's possible to perform sequential filters using regex? I have the following so far and I'm trying to get to the account_id by performing a second filter on the re.split output: | 2019-02-21T12:54:15.152000 | Granville | pythondev_help_Granville_2019-02-21T12:54:15.152000 | 1,550,753,655.152 | 9,845 |
pythondev | help | You could just do `re.search('accounts/(\w+)/scopes', text)` | 2019-02-21T12:57:31.153100 | Sparkle | pythondev_help_Sparkle_2019-02-21T12:57:31.153100 | 1,550,753,851.1531 | 9,846 |
pythondev | help | Also is the account id always consistent. E.g sfdc account ids are always 15 or 18 char | 2019-02-21T12:59:22.153600 | Sparkle | pythondev_help_Sparkle_2019-02-21T12:59:22.153600 | 1,550,753,962.1536 | 9,847 |
pythondev | help | Hi Aurielle, I'm not sure that'd work because I have an entire list of HTML URIs it would have to go to and filter on the word containing the colon in the end | 2019-02-21T13:00:25.153800 | Granville | pythondev_help_Granville_2019-02-21T13:00:25.153800 | 1,550,754,025.1538 | 9,848 |
pythondev | help | So what is the actual expected outcome? | 2019-02-21T13:01:41.154000 | Sparkle | pythondev_help_Sparkle_2019-02-21T13:01:41.154000 | 1,550,754,101.154 | 9,849 |
pythondev | help | Is it the literal word with a colon or the values in a live page that goes in place of that word | 2019-02-21T13:02:10.154200 | Sparkle | pythondev_help_Sparkle_2019-02-21T13:02:10.154200 | 1,550,754,130.1542 | 9,850 |
pythondev | help | what about str.split('/')[-2] ? | 2019-02-21T13:15:09.154400 | Deon | pythondev_help_Deon_2019-02-21T13:15:09.154400 | 1,550,754,909.1544 | 9,851 |
pythondev | help | str being the url | 2019-02-21T13:15:17.154600 | Deon | pythondev_help_Deon_2019-02-21T13:15:17.154600 | 1,550,754,917.1546 | 9,852 |
pythondev | help | What would be the best way to count elements in a list that are like this:
`a = [[numpy array, 0], [numpy array, 1], [numpy array, 9]....,]` | 2019-02-21T13:19:16.156500 | Henrietta | pythondev_help_Henrietta_2019-02-21T13:19:16.156500 | 1,550,755,156.1565 | 9,853 |
pythondev | help | is a simple `for` loop the best or I can make use of `Counter` from `collections`? | 2019-02-21T13:19:51.157200 | Henrietta | pythondev_help_Henrietta_2019-02-21T13:19:51.157200 | 1,550,755,191.1572 | 9,854 |
pythondev | help | I have a dictionary like so;
```
type(info_map[ne])
>>dict
```
I am trying to add a new key value pair like so;
```
info_map[ne]['new_key'] = new_val
```
But I am getting an error. Is this the correct way? | 2019-02-21T13:27:44.159900 | Arturo | pythondev_help_Arturo_2019-02-21T13:27:44.159900 | 1,550,755,664.1599 | 9,855 |
pythondev | help | which error? | 2019-02-21T13:28:14.160100 | Claudine | pythondev_help_Claudine_2019-02-21T13:28:14.160100 | 1,550,755,694.1601 | 9,856 |
pythondev | help | it just doesn't print anything | 2019-02-21T13:28:29.160400 | Arturo | pythondev_help_Arturo_2019-02-21T13:28:29.160400 | 1,550,755,709.1604 | 9,857 |
pythondev | help | its really weird, my works code base and it simply doesn't print it | 2019-02-21T13:28:51.160800 | Arturo | pythondev_help_Arturo_2019-02-21T13:28:51.160800 | 1,550,755,731.1608 | 9,858 |
pythondev | help | like you run that and then do `print(info_map[ne]['new_key'])` and no output hm? | 2019-02-21T13:29:40.161200 | Claudine | pythondev_help_Claudine_2019-02-21T13:29:40.161200 | 1,550,755,780.1612 | 9,859 |
pythondev | help | yup | 2019-02-21T13:32:27.161400 | Arturo | pythondev_help_Arturo_2019-02-21T13:32:27.161400 | 1,550,755,947.1614 | 9,860 |
pythondev | help | really odd | 2019-02-21T13:32:31.161600 | Arturo | pythondev_help_Arturo_2019-02-21T13:32:31.161600 | 1,550,755,951.1616 | 9,861 |
pythondev | help | Maybe try `repr()` in case it's printing an empty string or something. | 2019-02-21T13:33:22.162000 | Sasha | pythondev_help_Sasha_2019-02-21T13:33:22.162000 | 1,550,756,002.162 | 9,862 |
pythondev | help | still nothing | 2019-02-21T13:37:30.162200 | Arturo | pythondev_help_Arturo_2019-02-21T13:37:30.162200 | 1,550,756,250.1622 | 9,863 |
pythondev | help | really odd | 2019-02-21T13:37:40.162400 | Arturo | pythondev_help_Arturo_2019-02-21T13:37:40.162400 | 1,550,756,260.1624 | 9,864 |
pythondev | help | when I print the value there is something there | 2019-02-21T13:37:50.162700 | Arturo | pythondev_help_Arturo_2019-02-21T13:37:50.162700 | 1,550,756,270.1627 | 9,865 |
pythondev | help | can you show some surrounding code? | 2019-02-21T13:38:12.163400 | Clemmie | pythondev_help_Clemmie_2019-02-21T13:38:12.163400 | 1,550,756,292.1634 | 9,866 |
pythondev | help | when I print the keys of;
```
info_map[ne]
```
It shows the keys | 2019-02-21T13:38:26.163700 | Arturo | pythondev_help_Arturo_2019-02-21T13:38:26.163700 | 1,550,756,306.1637 | 9,867 |
pythondev | help | not sure I understand the question.. why not len(a) ? | 2019-02-21T13:39:53.163800 | Deon | pythondev_help_Deon_2019-02-21T13:39:53.163800 | 1,550,756,393.1638 | 9,868 |
pythondev | help | do you need the count of elements inside each list within the list? | 2019-02-21T13:40:18.164000 | Deon | pythondev_help_Deon_2019-02-21T13:40:18.164000 | 1,550,756,418.164 | 9,869 |
pythondev | help | None | 2019-02-21T13:43:28.164200 | Arturo | pythondev_help_Arturo_2019-02-21T13:43:28.164200 | 1,550,756,608.1642 | 9,870 |
pythondev | help | thing is, each element has a numpy array and a number as second element, that corresponds to the element class | 2019-02-21T13:44:57.164500 | Henrietta | pythondev_help_Henrietta_2019-02-21T13:44:57.164500 | 1,550,756,697.1645 | 9,871 |
pythondev | help | I need to count how many of each class there is | 2019-02-21T13:45:10.164700 | Henrietta | pythondev_help_Henrietta_2019-02-21T13:45:10.164700 | 1,550,756,710.1647 | 9,872 |
pythondev | help | I need to do slices of data for a ML training, and have to keep the proportions from the original dataset, that is too huge | 2019-02-21T13:46:06.165000 | Henrietta | pythondev_help_Henrietta_2019-02-21T13:46:06.165000 | 1,550,756,766.165 | 9,873 |
pythondev | help | It's not really obvious what is going on here. Where is `ne_name` coming from? | 2019-02-21T13:47:24.165800 | Sasha | pythondev_help_Sasha_2019-02-21T13:47:24.165800 | 1,550,756,844.1658 | 9,874 |
pythondev | help | so each list looks like [np.array([1,2,3]), 1, 2, 3]? | 2019-02-21T13:47:32.166000 | Deon | pythondev_help_Deon_2019-02-21T13:47:32.166000 | 1,550,756,852.166 | 9,875 |
pythondev | help | that is `ne` | 2019-02-21T13:47:36.166200 | Arturo | pythondev_help_Arturo_2019-02-21T13:47:36.166200 | 1,550,756,856.1662 | 9,876 |
pythondev | help | changed it to put on here :see_no_evil: | 2019-02-21T13:47:49.166600 | Arturo | pythondev_help_Arturo_2019-02-21T13:47:49.166600 | 1,550,756,869.1666 | 9,877 |
pythondev | help | sorry [np.array([1,2,3]), 1] * | 2019-02-21T13:47:55.166700 | Deon | pythondev_help_Deon_2019-02-21T13:47:55.166700 | 1,550,756,875.1667 | 9,878 |
pythondev | help | yes | 2019-02-21T13:48:00.167000 | Henrietta | pythondev_help_Henrietta_2019-02-21T13:48:00.167000 | 1,550,756,880.167 | 9,879 |
pythondev | help | all the `ne` are `ne_name` on my code | 2019-02-21T13:48:10.167500 | Arturo | pythondev_help_Arturo_2019-02-21T13:48:10.167500 | 1,550,756,890.1675 | 9,880 |
pythondev | help | same for `info_map` vs `RF_info_map`? | 2019-02-21T13:48:31.168100 | Clemmie | pythondev_help_Clemmie_2019-02-21T13:48:31.168100 | 1,550,756,911.1681 | 9,881 |
pythondev | help | it is hard to parse when we need to do on the fly text replacement to read it | 2019-02-21T13:48:46.168500 | Clemmie | pythondev_help_Clemmie_2019-02-21T13:48:46.168500 | 1,550,756,926.1685 | 9,882 |
pythondev | help | Same thing, have made amendments | 2019-02-21T13:49:18.169200 | Arturo | pythondev_help_Arturo_2019-02-21T13:49:18.169200 | 1,550,756,958.1692 | 9,883 |
pythondev | help | I think maybe a for loop is the only way, since Counter can't count lists inside lists by my errors | 2019-02-21T13:49:26.169300 | Henrietta | pythondev_help_Henrietta_2019-02-21T13:49:26.169300 | 1,550,756,966.1693 | 9,884 |
pythondev | help | And could you show some output? | 2019-02-21T13:49:41.169900 | Sasha | pythondev_help_Sasha_2019-02-21T13:49:41.169900 | 1,550,756,981.1699 | 9,885 |
pythondev | help | class_list = [n[-1] for n in a] | 2019-02-21T13:50:34.171000 | Deon | pythondev_help_Deon_2019-02-21T13:50:34.171000 | 1,550,757,034.171 | 9,886 |
pythondev | help | If you take it to it’s smallest bit does the problem still show up? Something like this
```
for ne in info_map.keys():
if "UM" in info_map[ne]:
info_map[ne]["SITE_INFO"] = umtscell_info_list
site_info = info_map[ne]["SITE_INFO"]
print repr(info_map[ne]['SITE_INFO'])
``` | 2019-02-21T13:50:54.171900 | Clemmie | pythondev_help_Clemmie_2019-02-21T13:50:54.171900 | 1,550,757,054.1719 | 9,887 |
pythondev | help | wait, that's it? | 2019-02-21T13:51:21.172000 | Henrietta | pythondev_help_Henrietta_2019-02-21T13:51:21.172000 | 1,550,757,081.172 | 9,888 |
pythondev | help | I'll also note that you seem to be mixing Py2 and Py3 `print` syntax. Any chance that's causing things to not print? | 2019-02-21T13:52:39.172800 | Sasha | pythondev_help_Sasha_2019-02-21T13:52:39.172800 | 1,550,757,159.1728 | 9,889 |
pythondev | help | ah | 2019-02-21T13:52:47.173000 | Arturo | pythondev_help_Arturo_2019-02-21T13:52:47.173000 | 1,550,757,167.173 | 9,890 |
pythondev | help | that could be it | 2019-02-21T13:52:51.173200 | Arturo | pythondev_help_Arturo_2019-02-21T13:52:51.173200 | 1,550,757,171.1732 | 9,891 |
pythondev | help | but the `rnc` name still prints and the is py3 syntax | 2019-02-21T13:53:17.173800 | Arturo | pythondev_help_Arturo_2019-02-21T13:53:17.173800 | 1,550,757,197.1738 | 9,892 |
pythondev | help | run it see if it's what you want | 2019-02-21T13:53:47.173900 | Deon | pythondev_help_Deon_2019-02-21T13:53:47.173900 | 1,550,757,227.1739 | 9,893 |
pythondev | help | doing it now | 2019-02-21T13:54:04.174100 | Henrietta | pythondev_help_Henrietta_2019-02-21T13:54:04.174100 | 1,550,757,244.1741 | 9,894 |
pythondev | help | Any chance that the code is actually throwing an exception that is being caught and suppressed by surrounding code? | 2019-02-21T13:54:48.174600 | Sasha | pythondev_help_Sasha_2019-02-21T13:54:48.174600 | 1,550,757,288.1746 | 9,895 |
pythondev | help | it gets to the end of the function. As there is a print statement there saying "No node name for ne" | 2019-02-21T13:55:42.175500 | Arturo | pythondev_help_Arturo_2019-02-21T13:55:42.175500 | 1,550,757,342.1755 | 9,896 |
pythondev | help | sorry I would share more with you, but is my works code and don't want to get in trouble | 2019-02-21T13:56:03.176000 | Arturo | pythondev_help_Arturo_2019-02-21T13:56:03.176000 | 1,550,757,363.176 | 9,897 |
pythondev | help | Can you share the output? | 2019-02-21T13:56:15.176200 | Sasha | pythondev_help_Sasha_2019-02-21T13:56:15.176200 | 1,550,757,375.1762 | 9,898 |
pythondev | help | ```
print rnc_name
RNC201
print info_map[ne].keys()
['UM', 'GB']
```
They rest doesn't print anything | 2019-02-21T13:58:32.177300 | Arturo | pythondev_help_Arturo_2019-02-21T13:58:32.177300 | 1,550,757,512.1773 | 9,899 |
pythondev | help | So it doesn't print `this is site info`? | 2019-02-21T13:59:06.177600 | Sasha | pythondev_help_Sasha_2019-02-21T13:59:06.177600 | 1,550,757,546.1776 | 9,900 |
pythondev | help | nope which is really bizarre | 2019-02-21T13:59:26.177900 | Arturo | pythondev_help_Arturo_2019-02-21T13:59:26.177900 | 1,550,757,566.1779 | 9,901 |
pythondev | help | Something is broken in your model of what's going on, I think. Like, it's actually running a different version of the code than what you're editing, or something odd like that. I'd shut everything down and then reload your environment, etc. | 2019-02-21T14:01:41.179300 | Sasha | pythondev_help_Sasha_2019-02-21T14:01:41.179300 | 1,550,757,701.1793 | 9,902 |
pythondev | help | cool will do | 2019-02-21T14:02:10.179500 | Arturo | pythondev_help_Arturo_2019-02-21T14:02:10.179500 | 1,550,757,730.1795 | 9,903 |
pythondev | help | my leave it till tomorrow now, want to go home and do some of my own projects! | 2019-02-21T14:02:31.180000 | Arturo | pythondev_help_Arturo_2019-02-21T14:02:31.180000 | 1,550,757,751.18 | 9,904 |
pythondev | help | thanks <@Sasha> :taco: <@Clemmie> :taco: | 2019-02-21T14:03:04.180600 | Arturo | pythondev_help_Arturo_2019-02-21T14:03:04.180600 | 1,550,757,784.1806 | 9,905 |
pythondev | help | that gives me a list of categories | 2019-02-21T14:05:35.181000 | Henrietta | pythondev_help_Henrietta_2019-02-21T14:05:35.181000 | 1,550,757,935.181 | 9,906 |
pythondev | help | I can Counter that | 2019-02-21T14:05:39.181200 | Henrietta | pythondev_help_Henrietta_2019-02-21T14:05:39.181200 | 1,550,757,939.1812 | 9,907 |
pythondev | help | thanks for the tip <@Deon> :taco: | 2019-02-21T14:05:54.181400 | Henrietta | pythondev_help_Henrietta_2019-02-21T14:05:54.181400 | 1,550,757,954.1814 | 9,908 |
pythondev | help | np | 2019-02-21T14:10:25.181600 | Deon | pythondev_help_Deon_2019-02-21T14:10:25.181600 | 1,550,758,225.1816 | 9,909 |
pythondev | help | Him I’m really new to Python and I was just wondering why do we need virtual environments when running it n terminal? | 2019-02-21T14:16:56.182500 | Cheri | pythondev_help_Cheri_2019-02-21T14:16:56.182500 | 1,550,758,616.1825 | 9,910 |
pythondev | help | That is a long answer, but written up well at <https://realpython.com/python-virtual-environments-a-primer/#why-the-need-for-virtual-environments> | 2019-02-21T14:17:55.183300 | Clemmie | pythondev_help_Clemmie_2019-02-21T14:17:55.183300 | 1,550,758,675.1833 | 9,911 |
pythondev | help | Thanks! | 2019-02-21T14:18:39.184300 | Cheri | pythondev_help_Cheri_2019-02-21T14:18:39.184300 | 1,550,758,719.1843 | 9,912 |
pythondev | help | I’ll have a read | 2019-02-21T14:18:43.184700 | Cheri | pythondev_help_Cheri_2019-02-21T14:18:43.184700 | 1,550,758,723.1847 | 9,913 |
pythondev | help | Also is there no way to store the modules necessary for an application within the application like its done with React/JS? | 2019-02-21T14:19:11.185400 | Cheri | pythondev_help_Cheri_2019-02-21T14:19:11.185400 | 1,550,758,751.1854 | 9,914 |
pythondev | help | You can put the virtual environment in the project, but you still need to activate it | 2019-02-21T14:19:54.186200 | Clemmie | pythondev_help_Clemmie_2019-02-21T14:19:54.186200 | 1,550,758,794.1862 | 9,915 |
pythondev | help | that's actually a pretty solid writeup. Nice link <@Clemmie>! :taco: | 2019-02-21T14:20:09.187100 | Ashley | pythondev_help_Ashley_2019-02-21T14:20:09.187100 | 1,550,758,809.1871 | 9,916 |
pythondev | help | There are also other solutions - Docker containers, VMs etc. but as a base case, and pretty much all the time you want to be using virtual envs | 2019-02-21T14:20:39.187700 | Clemmie | pythondev_help_Clemmie_2019-02-21T14:20:39.187700 | 1,550,758,839.1877 | 9,917 |
pythondev | help | then it get’s into a big discussion of how to manage them - but we can help walk you through that once you have a good handle on _what_ and _why_ they are | 2019-02-21T14:21:09.188900 | Clemmie | pythondev_help_Clemmie_2019-02-21T14:21:09.188900 | 1,550,758,869.1889 | 9,918 |
pythondev | help | <@Cheri> bundling everything together can mess with how python expects to find resources. Typically, people specify their package's dependencies in their `setup.py` file, which is a complex system you don't need to worry about at the moment. What it does is basically tell `pip` to install those dependencies before installing your package itself. So when you run `pip install some_package`, you'd see it install `dependency_a` and `dependency_b` first, and then install `some_package`, all automatically | 2019-02-21T14:23:43.193100 | Ashley | pythondev_help_Ashley_2019-02-21T14:23:43.193100 | 1,550,759,023.1931 | 9,919 |
pythondev | help | bundling them together also means a lot of extra code in the package, and the potential for a lot of duplications of packages existing for the same environment | 2019-02-21T14:24:58.194000 | Ashley | pythondev_help_Ashley_2019-02-21T14:24:58.194000 | 1,550,759,098.194 | 9,920 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.