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 | Do we have a computer vision / ocr or ML channel? I have an interesting problem and not enough relevant knowledge to decide how to approach it | 2019-04-14T04:02:58.332600 | Jettie | pythondev_help_Jettie_2019-04-14T04:02:58.332600 | 1,555,214,578.3326 | 18,721 |
pythondev | help | The closest is probably <#C0JB9ATQV|data_science> | 2019-04-14T04:07:06.332900 | Sasha | pythondev_help_Sasha_2019-04-14T04:07:06.332900 | 1,555,214,826.3329 | 18,722 |
pythondev | help | :thinking_face: | 2019-04-14T04:15:06.333100 | Jettie | pythondev_help_Jettie_2019-04-14T04:15:06.333100 | 1,555,215,306.3331 | 18,723 |
pythondev | help | Ok, thank you!!! | 2019-04-14T07:37:44.333400 | Leonia | pythondev_help_Leonia_2019-04-14T07:37:44.333400 | 1,555,227,464.3334 | 18,724 |
pythondev | help | Any tips for getting started in contributing to the Python open source project? | 2019-04-14T09:59:07.333900 | Hanna | pythondev_help_Hanna_2019-04-14T09:59:07.333900 | 1,555,235,947.3339 | 18,725 |
pythondev | help | Good morning everyone. Anybody wanna take a stab at helping me resolve what I think is a circular import problem in a django app? I'll have to share a bunch of code so didn't wanna flood the chat | 2019-04-14T10:09:36.334800 | Frankie | pythondev_help_Frankie_2019-04-14T10:09:36.334800 | 1,555,236,576.3348 | 18,726 |
pythondev | help | I think it's just bad the way I've designed it so I'm trying to rearrange things a bit | 2019-04-14T10:10:10.335200 | Frankie | pythondev_help_Frankie_2019-04-14T10:10:10.335200 | 1,555,236,610.3352 | 18,727 |
pythondev | help | basically the problem is I have an API which I built as a project app, which supplies all the data for my site and it uses DRF. However, I also have a blog app, which uses wagtail, which also uses DRF. So I had to do some custom permissions magic cause Wagtail was trying to send its API requests through my personal API's custom permissions classes, and now I've got a permissions module in my API app which I need in my `settings.py`, but the permissions module requires some things out of `settings.py` to determine the permissions. Lol | 2019-04-14T10:12:49.337800 | Frankie | pythondev_help_Frankie_2019-04-14T10:12:49.337800 | 1,555,236,769.3378 | 18,728 |
pythondev | help | Here is some relevant info if it helps.
My API's *custom_permissions.py:*
```
from rest_framework.permissions import BasePermission
from rest_framework.exceptions import MethodNotAllowed
from django.conf import settings
CURRENT_FREE_TICKERS = settings.CURRENT_FREE_TICKERS
CURRENT_LANDING_PAGE_VALID_TICKERS = settings.CURRENT_LANDING_PAGE_VALID_TICKERS
CURRENT_LANDING_PAGE_VALID_INDICATORS = settings.CURRENT_LANDING_PAGE_VALID_INDICATORS
CURRENT_VALID_REFERERS = settings.CURRENT_VALID_REFERERS
class IsPremium(BasePermission):
"""
API restriction to premium users only.
"""
def has_permission(self, request, view):
# Do stuff w/ variables from above to determine permissions
```
*settings/base.py:*
```
import os, sys
# For local dev
if os.environ.get('DJANGO_ENV') == 'DEV':
from . import env_dev as env
else:
from . import env
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps'))
# Env settings
SECRET_KEY = env.SECRET_KEY
DEBUG = env.DEBUG
... other vars
CURRENT_FREE_TICKERS = env.CURRENT_FREE_TICKERS
CURRENT_LANDING_PAGE_VALID_TICKERS = env.CURRENT_LANDING_PAGE_VALID_TICKERS
CURRENT_LANDING_PAGE_VALID_INDICATORS = env.CURRENT_LANDING_PAGE_VALID_INDICATORS
CURRENT_VALID_REFERERS = env.CURRENT_VALID_REFERERS
# Custom permissions for personal API
from lfa_lite.apps.api.permissions.custom_permissions import IsPremium
# ... other settings
# Default DRF stuff for Wagtail to segregate it from my API
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
),
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
)
}
# For my personal API. Checks both IsAuthenticated as well as custom stuff
LFA_API_SETTINGS = {
'DEFAULT_PERMISSION_CLASSES': (
IsPremium,
)
}
```
Snippet of my API's *views.py*:
```
from rest_framework.viewsets import ViewSet
from rest_framework.decorators import action
from django.conf import settings
# Get default perms from settings, so I can change it in only one place if needed, or add more perms
LFA_DEFAULT_PERMS = settings.LFA_API_SETTINGS['DEFAULT_PERMISSION_CLASSES']
class SomeViewSet(ViewSet):
permission_classes = LFA_DEFAULT_PERMS
@action(methods=['post'], detail=False)
def some_action(self, request, format=None):
# Do stuff
@action(methods=['post'], detail=False)
def some_other_action(self, request, format=None):
# Do other stuff
class OtherViewSet(ViewSet):
permission_classes = LFA_DEFAULT_PERMS
@action(methods=['post'], detail=False)
def some_different_action(self, request, format=None):
# Do different stuff
@action(methods=['post'], detail=False)
def some_other_different_action(self, request, format=None):
# Do other different stuff
# ... lots more ViewSets and APIViews
```
The actual issue is that when I launch it into my staging environment on AWS (elastic beanstalk) the `SECRET_KEY` is coming back as empty, I think because the circular dependency is causing it to fail loading the settings. In staging, I use a staging.py settings file which basically is just `from base import *` and adds a few other variables for AWS and my live database and stuff. | 2019-04-14T10:26:27.347500 | Frankie | pythondev_help_Frankie_2019-04-14T10:26:27.347500 | 1,555,237,587.3475 | 18,729 |
pythondev | help | So it turns out if I remove the `IsPremium` import from base.py and the one setting that uses it, and instead import `IsPremium` directly into custom_permissions.py, the app deploys normally but fails data migrations. That's a different problem, but I'm still wondering if anyone can see a way to be able to control the default permissions class in settings.py instead of having to do it in the API views like this:
```
from .permissions.custom_permissions import IsPremium
LFA_DEFAULT_PERMS = (IsPremium,)
```
It would just be nice to have a single place to manage everything where the settings for DRF already live. :man-shrugging: | 2019-04-14T10:49:34.350000 | Frankie | pythondev_help_Frankie_2019-04-14T10:49:34.350000 | 1,555,238,974.35 | 18,730 |
pythondev | help | None | 2019-04-14T12:57:55.350400 | Hai | pythondev_help_Hai_2019-04-14T12:57:55.350400 | 1,555,246,675.3504 | 18,731 |
pythondev | help | what is the format of the output? | 2019-04-14T12:58:13.350900 | Hai | pythondev_help_Hai_2019-04-14T12:58:13.350900 | 1,555,246,693.3509 | 18,732 |
pythondev | help | that doesn't seem like python to me... | 2019-04-14T13:01:13.351200 | Frankie | pythondev_help_Frankie_2019-04-14T13:01:13.351200 | 1,555,246,873.3512 | 18,733 |
pythondev | help | yes its a groovy | 2019-04-14T13:01:21.351600 | Hai | pythondev_help_Hai_2019-04-14T13:01:21.351600 | 1,555,246,881.3516 | 18,734 |
pythondev | help | lists in python are separated by commas | 2019-04-14T13:01:26.351800 | Frankie | pythondev_help_Frankie_2019-04-14T13:01:26.351800 | 1,555,246,886.3518 | 18,735 |
pythondev | help | my bad forgot to mention its a groovy | 2019-04-14T13:01:37.352200 | Hai | pythondev_help_Hai_2019-04-14T13:01:37.352200 | 1,555,246,897.3522 | 18,736 |
pythondev | help | I don't know what a groovy is :slightly_smiling_face: | 2019-04-14T13:01:46.352400 | Frankie | pythondev_help_Frankie_2019-04-14T13:01:46.352400 | 1,555,246,906.3524 | 18,737 |
pythondev | help | okay | 2019-04-14T13:01:55.352600 | Hai | pythondev_help_Hai_2019-04-14T13:01:55.352600 | 1,555,246,915.3526 | 18,738 |
pythondev | help | is that just a JSON string? | 2019-04-14T13:04:30.352800 | Frankie | pythondev_help_Frankie_2019-04-14T13:04:30.352800 | 1,555,247,070.3528 | 18,739 |
pythondev | help | if so you can just use `.replace(';', ',')` to replace all the semicolons w/ commas and then `json.loads()` | 2019-04-14T13:05:57.354100 | Frankie | pythondev_help_Frankie_2019-04-14T13:05:57.354100 | 1,555,247,157.3541 | 18,740 |
pythondev | help | i have a json string so am getting the values from a json string and am getting the values in that format | 2019-04-14T13:06:03.354300 | Hai | pythondev_help_Hai_2019-04-14T13:06:03.354300 | 1,555,247,163.3543 | 18,741 |
pythondev | help | i tried that but in groovy i dont think we have json.loads() | 2019-04-14T13:06:23.354700 | Hai | pythondev_help_Hai_2019-04-14T13:06:23.354700 | 1,555,247,183.3547 | 18,742 |
pythondev | help | what is groovy?? | 2019-04-14T13:06:33.354900 | Frankie | pythondev_help_Frankie_2019-04-14T13:06:33.354900 | 1,555,247,193.3549 | 18,743 |
pythondev | help | that would help, lol | 2019-04-14T13:06:39.355100 | Frankie | pythondev_help_Frankie_2019-04-14T13:06:39.355100 | 1,555,247,199.3551 | 18,744 |
pythondev | help | its a scripting language close to java syntax | 2019-04-14T13:07:08.355600 | Hai | pythondev_help_Hai_2019-04-14T13:07:08.355600 | 1,555,247,228.3556 | 18,745 |
pythondev | help | <http://groovy-lang.org> | 2019-04-14T13:07:18.355800 | Shelby | pythondev_help_Shelby_2019-04-14T13:07:18.355800 | 1,555,247,238.3558 | 18,746 |
pythondev | help | ah ok. I mean ... isn't this a python channel? Lol not trying to be rude just wondering if you have a python question | 2019-04-14T13:08:04.356500 | Frankie | pythondev_help_Frankie_2019-04-14T13:08:04.356500 | 1,555,247,284.3565 | 18,747 |
pythondev | help | I don't think I can help cause I don't know groovy :confused: | 2019-04-14T13:08:32.357400 | Frankie | pythondev_help_Frankie_2019-04-14T13:08:32.357400 | 1,555,247,312.3574 | 18,748 |
pythondev | help | yaa its my mistake i was just curious if someone know's groovy | 2019-04-14T13:08:39.357500 | Hai | pythondev_help_Hai_2019-04-14T13:08:39.357500 | 1,555,247,319.3575 | 18,749 |
pythondev | help | no worries. I thought this was strictly for python help but I guess I could be wrong. | 2019-04-14T13:09:00.357900 | Frankie | pythondev_help_Frankie_2019-04-14T13:09:00.357900 | 1,555,247,340.3579 | 18,750 |
pythondev | help | okay | 2019-04-14T13:09:09.358100 | Hai | pythondev_help_Hai_2019-04-14T13:09:09.358100 | 1,555,247,349.3581 | 18,751 |
pythondev | help | Maybe try this discord channel? <https://discordapp.com/channels/181866934353133570/181871712151928834> it seems like it's for general programming. | 2019-04-14T13:09:37.358500 | Frankie | pythondev_help_Frankie_2019-04-14T13:09:37.358500 | 1,555,247,377.3585 | 18,752 |
pythondev | help | okay | 2019-04-14T13:09:49.358800 | Hai | pythondev_help_Hai_2019-04-14T13:09:49.358800 | 1,555,247,389.3588 | 18,753 |
pythondev | help | Hi guys. Anyone familiar with django internationalization? I'm getting some weird behavior in my views.py:
```
from django.utils import translation
print(request.session[translation.LANGUAGE_SESSION_KEY]) # Outputs the proper active language
print(translation.get_language()) # Always outputs the default language defined in settings.py
```
also translation.activate() doesn't persist across requests. And translation.gettext() always uses the default language. Any ideas? | 2019-04-14T17:21:54.363100 | Reanna | pythondev_help_Reanna_2019-04-14T17:21:54.363100 | 1,555,262,514.3631 | 18,754 |
pythondev | help | I'm using the built-in i18n set_language route to toggle languages. | 2019-04-14T17:22:53.363700 | Reanna | pythondev_help_Reanna_2019-04-14T17:22:53.363700 | 1,555,262,573.3637 | 18,755 |
pythondev | help | just checking, but are you following the location rules for setting the middleware? | 2019-04-14T17:25:04.364300 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:25:04.364300 | 1,555,262,704.3643 | 18,756 |
pythondev | help | <https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#how-django-discovers-language-preference> | 2019-04-14T17:25:11.364500 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:25:11.364500 | 1,555,262,711.3645 | 18,757 |
pythondev | help | Yes, the middleware is included and in the correct location. Url language prefixes are functional so the middleware must be working.. | 2019-04-14T17:27:26.365900 | Reanna | pythondev_help_Reanna_2019-04-14T17:27:26.365900 | 1,555,262,846.3659 | 18,758 |
pythondev | help | gotcha | 2019-04-14T17:27:41.366300 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:27:41.366300 | 1,555,262,861.3663 | 18,759 |
pythondev | help | having `activate` not persist across requests is probably standard behavior | 2019-04-14T17:27:54.366700 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:27:54.366700 | 1,555,262,874.3667 | 18,760 |
pythondev | help | <https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#explicitly-setting-the-active-language> | 2019-04-14T17:28:08.366900 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:28:08.366900 | 1,555,262,888.3669 | 18,761 |
pythondev | help | >>>You’ve already been introduced to django.utils.translation.activate(). That applies to the current thread only. To persist the language for the entire session, also modify LANGUAGE_SESSION_KEY in the session: | 2019-04-14T17:28:16.367100 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:28:16.367100 | 1,555,262,896.3671 | 18,762 |
pythondev | help | >>>You would typically want to use both: django.utils.translation.activate() will change the language for this thread, and modifying the session makes this preference persist in future requests. | 2019-04-14T17:28:35.367300 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:28:35.367300 | 1,555,262,915.3673 | 18,763 |
pythondev | help | I see. So now this is quite strange... the session has the corrent language set, but gettext() always uses the default language - this is the bug I'm originally trying to solve. | 2019-04-14T17:29:52.368500 | Reanna | pythondev_help_Reanna_2019-04-14T17:29:52.368500 | 1,555,262,992.3685 | 18,764 |
pythondev | help | And translation.get_language() is also not correct... I wonder how where it get's the language from if not from the request object | 2019-04-14T17:30:33.369200 | Reanna | pythondev_help_Reanna_2019-04-14T17:30:33.369200 | 1,555,263,033.3692 | 18,765 |
pythondev | help | have you tried using with lazy? | 2019-04-14T17:31:10.369600 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:31:10.369600 | 1,555,263,070.3696 | 18,766 |
pythondev | help | <https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#lazy-translations> | 2019-04-14T17:31:28.369800 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:31:28.369800 | 1,555,263,088.3698 | 18,767 |
pythondev | help | No, gonna try quickly | 2019-04-14T17:32:16.370100 | Reanna | pythondev_help_Reanna_2019-04-14T17:32:16.370100 | 1,555,263,136.3701 | 18,768 |
pythondev | help | no difference | 2019-04-14T17:33:07.370300 | Reanna | pythondev_help_Reanna_2019-04-14T17:33:07.370300 | 1,555,263,187.3703 | 18,769 |
pythondev | help | redirect also doesn't add prefixes.... somethings not right, but I have no idea what... I followed the documentation to the T :disappointed: | 2019-04-14T17:34:19.371100 | Reanna | pythondev_help_Reanna_2019-04-14T17:34:19.371100 | 1,555,263,259.3711 | 18,770 |
pythondev | help | <https://github.com/django/django/blob/master/django/utils/translation/trans_real.py#L230> | 2019-04-14T17:38:33.371300 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:38:33.371300 | 1,555,263,513.3713 | 18,771 |
pythondev | help | check that ut | 2019-04-14T17:38:36.371600 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:38:36.371600 | 1,555,263,516.3716 | 18,772 |
pythondev | help | specifically
``` # If we don't have a real translation object, assume it's the default language.
return settings.LANGUAGE_CODE``` | 2019-04-14T17:38:49.372000 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:38:49.372000 | 1,555,263,529.372 | 18,773 |
pythondev | help | and this is the code for `gettext`:
<https://github.com/django/django/blob/master/django/utils/translation/trans_real.py#L273-L296> | 2019-04-14T17:39:56.372300 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:39:56.372300 | 1,555,263,596.3723 | 18,774 |
pythondev | help | what version of django are you using? | 2019-04-14T17:42:24.372800 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:42:24.372800 | 1,555,263,744.3728 | 18,775 |
pythondev | help | 2.0.1 | 2019-04-14T17:44:30.373000 | Reanna | pythondev_help_Reanna_2019-04-14T17:44:30.373000 | 1,555,263,870.373 | 18,776 |
pythondev | help | that’s a pretty old version | 2019-04-14T17:47:06.373200 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:47:06.373200 | 1,555,264,026.3732 | 18,777 |
pythondev | help | I started the project a while ago... | 2019-04-14T17:47:35.373600 | Reanna | pythondev_help_Reanna_2019-04-14T17:47:35.373600 | 1,555,264,055.3736 | 18,778 |
pythondev | help | can you update? | 2019-04-14T17:47:36.373700 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:47:36.373700 | 1,555,264,056.3737 | 18,779 |
pythondev | help | Sure | 2019-04-14T17:47:49.374200 | Reanna | pythondev_help_Reanna_2019-04-14T17:47:49.374200 | 1,555,264,069.3742 | 18,780 |
pythondev | help | there’s been lots of changes since, so it might be that this is fixed | 2019-04-14T17:47:52.374400 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:47:52.374400 | 1,555,264,072.3744 | 18,781 |
pythondev | help | current version is 2.2 LTS | 2019-04-14T17:48:03.374700 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:48:03.374700 | 1,555,264,083.3747 | 18,782 |
pythondev | help | Ok, installing v2.2 | 2019-04-14T17:48:33.375100 | Reanna | pythondev_help_Reanna_2019-04-14T17:48:33.375100 | 1,555,264,113.3751 | 18,783 |
pythondev | help | there’s been 23 releases of django across versions since 2.0.1 | 2019-04-14T17:48:43.375400 | Hiroko | pythondev_help_Hiroko_2019-04-14T17:48:43.375400 | 1,555,264,123.3754 | 18,784 |
pythondev | help | gotta update mysqlclient too :smile: | 2019-04-14T17:49:19.375700 | Reanna | pythondev_help_Reanna_2019-04-14T17:49:19.375700 | 1,555,264,159.3757 | 18,785 |
pythondev | help | unfortunately there's the same behaviour | 2019-04-14T17:50:37.376100 | Reanna | pythondev_help_Reanna_2019-04-14T17:50:37.376100 | 1,555,264,237.3761 | 18,786 |
pythondev | help | for what it's work... translations in the templates work fine too. I guess that's using the request session language.. | 2019-04-14T17:55:37.376900 | Reanna | pythondev_help_Reanna_2019-04-14T17:55:37.376900 | 1,555,264,537.3769 | 18,787 |
pythondev | help | <https://github.com/django/django/blob/master/django/utils/translation/trans_real.py#L284> | 2019-04-14T18:04:01.377100 | Hiroko | pythondev_help_Hiroko_2019-04-14T18:04:01.377100 | 1,555,265,041.3771 | 18,788 |
pythondev | help | my guess is for whatever reason, `settings.LANGUAGE_CODE` is always used in your case. | 2019-04-14T18:04:28.377800 | Hiroko | pythondev_help_Hiroko_2019-04-14T18:04:28.377800 | 1,555,265,068.3778 | 18,789 |
pythondev | help | Yes.. i guess the i18n set_language route isn't setting the language correctly. But then again, according to the django docs, updating the session should persist the language change (which isn't happening) but for whatever reason util.translation get's it's translation object from somewhere else.. | 2019-04-14T18:06:46.379700 | Reanna | pythondev_help_Reanna_2019-04-14T18:06:46.379700 | 1,555,265,206.3797 | 18,790 |
pythondev | help | ok brand new question | 2019-04-14T18:45:10.379900 | Monica | pythondev_help_Monica_2019-04-14T18:45:10.379900 | 1,555,267,510.3799 | 18,791 |
pythondev | help | i was thinking this yesterday | 2019-04-14T18:45:18.380200 | Monica | pythondev_help_Monica_2019-04-14T18:45:18.380200 | 1,555,267,518.3802 | 18,792 |
pythondev | help | for embedded distributions of python ... why can't I use pip to install third party packages? | 2019-04-14T18:45:45.380700 | Monica | pythondev_help_Monica_2019-04-14T18:45:45.380700 | 1,555,267,545.3807 | 18,793 |
pythondev | help | I am assuming that it's because of this warning by <http://Pypa.io|Pypa.io> ?
```Warning: Be cautious if you are using a Python install that is managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state.``` | 2019-04-14T18:55:58.381400 | Monica | pythondev_help_Monica_2019-04-14T18:55:58.381400 | 1,555,268,158.3814 | 18,794 |
pythondev | help | anyone know how I can put a line seperator into a commandline program? | 2019-04-14T19:37:31.381900 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:37:31.381900 | 1,555,270,651.3819 | 18,795 |
pythondev | help | just like a simple ============== or ----------------- or something like that to make it a little more readable | 2019-04-14T19:37:58.382400 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:37:58.382400 | 1,555,270,678.3824 | 18,796 |
pythondev | help | Are you looking for the `echo`command? | 2019-04-14T19:38:20.382700 | Sasha | pythondev_help_Sasha_2019-04-14T19:38:20.382700 | 1,555,270,700.3827 | 18,797 |
pythondev | help | i just might.... i just might | 2019-04-14T19:39:23.383200 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:39:23.383200 | 1,555,270,763.3832 | 18,798 |
pythondev | help | i cant seem to find it in the documentation | 2019-04-14T19:42:48.383800 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:42:48.383800 | 1,555,270,968.3838 | 18,799 |
pythondev | help | curses.echo? | 2019-04-14T19:43:01.384100 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:43:01.384100 | 1,555,270,981.3841 | 18,800 |
pythondev | help | Sorry, I thought you meant a shell script. Can you clarify what sort of thing you're dealing with and what exactly you want to do? | 2019-04-14T19:43:50.384700 | Sasha | pythondev_help_Sasha_2019-04-14T19:43:50.384700 | 1,555,271,030.3847 | 18,801 |
pythondev | help | well i am making a program where the user will type one of 3 commands and it will spit back some info, if the commands fail, and I need something to visually separate one line to another. | 2019-04-14T19:46:02.386400 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:46:02.386400 | 1,555,271,162.3864 | 18,802 |
pythondev | help | let me take a screenshot so you see what I mean | 2019-04-14T19:46:13.386700 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:46:13.386700 | 1,555,271,173.3867 | 18,803 |
pythondev | help | I apologize if this is too obvious, but do you just mean `print('=' * 50)`? | 2019-04-14T19:47:44.387300 | Sasha | pythondev_help_Sasha_2019-04-14T19:47:44.387300 | 1,555,271,264.3873 | 18,804 |
pythondev | help | you bastard thats too obvious! | 2019-04-14T19:48:17.387700 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:48:17.387700 | 1,555,271,297.3877 | 18,805 |
pythondev | help | jk | 2019-04-14T19:48:18.387900 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:48:18.387900 | 1,555,271,298.3879 | 18,806 |
pythondev | help | I was thinking of doing that but was thinking that maybe there was maybe a more standard way of doing it | 2019-04-14T19:49:02.388900 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:49:02.388900 | 1,555,271,342.3889 | 18,807 |
pythondev | help | thank goodness you understood because my start menu aint workin | 2019-04-14T19:49:43.389400 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:49:43.389400 | 1,555,271,383.3894 | 18,808 |
pythondev | help | If you wanted to regularize it somewhat, you could define a string variable with your separator and use the `end=` argument on your print statements. | 2019-04-14T19:50:35.390200 | Sasha | pythondev_help_Sasha_2019-04-14T19:50:35.390200 | 1,555,271,435.3902 | 18,809 |
pythondev | help | ill check that out thanks! | 2019-04-14T19:52:48.390500 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:52:48.390500 | 1,555,271,568.3905 | 18,810 |
pythondev | help | i want to be like you one day EdKeyes just helping people out and knowing everything there is to know about python! :smile: | 2019-04-14T19:55:54.391400 | Priscilla | pythondev_help_Priscilla_2019-04-14T19:55:54.391400 | 1,555,271,754.3914 | 18,811 |
pythondev | help | Haha, thanks! There's still plenty I don't know myself. | 2019-04-14T19:56:47.391900 | Sasha | pythondev_help_Sasha_2019-04-14T19:56:47.391900 | 1,555,271,807.3919 | 18,812 |
pythondev | help | If you run this script and use '%logstart -o' in the ipython console first before running, are you able to get the actual output logged instead of just the working dir / filename ?
<https://github.com/paulgureghian/CNN_in_Python/blob/master/keras_cnn.py> | 2019-04-14T19:59:52.393700 | Clayton | pythondev_help_Clayton_2019-04-14T19:59:52.393700 | 1,555,271,992.3937 | 18,813 |
pythondev | help | is it ok to open git issue to ask a question? or is that frowned upon? | 2019-04-14T20:08:27.394400 | Priscilla | pythondev_help_Priscilla_2019-04-14T20:08:27.394400 | 1,555,272,507.3944 | 18,814 |
pythondev | help | I would do it only if you haven’t been able to find a solution elsewhere | 2019-04-14T20:17:10.394900 | Hiroko | pythondev_help_Hiroko_2019-04-14T20:17:10.394900 | 1,555,273,030.3949 | 18,815 |
pythondev | help | should be one of the last resort options | 2019-04-14T20:17:24.395200 | Hiroko | pythondev_help_Hiroko_2019-04-14T20:17:24.395200 | 1,555,273,044.3952 | 18,816 |
pythondev | help | good to know | 2019-04-14T20:39:02.396500 | Priscilla | pythondev_help_Priscilla_2019-04-14T20:39:02.396500 | 1,555,274,342.3965 | 18,817 |
pythondev | help | Is there perhaps a Python channel on here for noobs ( like me - lol ) - I have a really simple issue ( from your POV at least ) and i don't want to waste anyone's time asking silly questions. If however anyone is willing, please PM me and I'll explain the issue i have. Thanks | 2019-04-15T02:49:52.399400 | Celinda | pythondev_help_Celinda_2019-04-15T02:49:52.399400 | 1,555,296,592.3994 | 18,818 |
pythondev | help | Sounds perfect for <#C07EW4DNE|learning_python> | 2019-04-15T02:54:37.399800 | Sasha | pythondev_help_Sasha_2019-04-15T02:54:37.399800 | 1,555,296,877.3998 | 18,819 |
pythondev | help | Thank you | 2019-04-15T03:04:58.400000 | Celinda | pythondev_help_Celinda_2019-04-15T03:04:58.400000 | 1,555,297,498.4 | 18,820 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.