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 have an ansible playbook if you want to deploy jupyterhub. | 2017-07-18T13:01:27.836780 | Johana | pythondev_help_Johana_2017-07-18T13:01:27.836780 | 1,500,382,887.83678 | 86,103 |
pythondev | help | you will have to pull all the the R things out of it. | 2017-07-18T13:01:39.844828 | Johana | pythondev_help_Johana_2017-07-18T13:01:39.844828 | 1,500,382,899.844828 | 86,104 |
pythondev | help | one of my first projects where i work was setting up a jupyterhub with an R kernel and other packages. | 2017-07-18T13:02:13.865111 | Johana | pythondev_help_Johana_2017-07-18T13:02:13.865111 | 1,500,382,933.865111 | 86,105 |
pythondev | help | Oh yeah, I love references | 2017-07-18T13:02:26.873456 | Beula | pythondev_help_Beula_2017-07-18T13:02:26.873456 | 1,500,382,946.873456 | 86,106 |
pythondev | help | i’ll try to test it later on to make sure it works. haha | 2017-07-18T13:02:58.892847 | Johana | pythondev_help_Johana_2017-07-18T13:02:58.892847 | 1,500,382,978.892847 | 86,107 |
pythondev | help | okie | 2017-07-18T13:03:04.896577 | Beula | pythondev_help_Beula_2017-07-18T13:03:04.896577 | 1,500,382,984.896577 | 86,108 |
pythondev | help | i have a vm i can run the playbook. | 2017-07-18T13:03:18.904559 | Johana | pythondev_help_Johana_2017-07-18T13:03:18.904559 | 1,500,382,998.904559 | 86,109 |
pythondev | help | Would love to have it too. <@Beula> one of pyslackers rôle? | 2017-07-18T13:05:06.967962 | Ciera | pythondev_help_Ciera_2017-07-18T13:05:06.967962 | 1,500,383,106.967962 | 86,110 |
pythondev | help | We can do that for sure, make it a community effort | 2017-07-18T13:05:24.978922 | Beula | pythondev_help_Beula_2017-07-18T13:05:24.978922 | 1,500,383,124.978922 | 86,111 |
pythondev | help | I'll start on breaking those up tonight if I have time | 2017-07-18T13:05:33.984042 | Beula | pythondev_help_Beula_2017-07-18T13:05:33.984042 | 1,500,383,133.984042 | 86,112 |
pythondev | help | :thumbsup: | 2017-07-18T13:05:40.988141 | Ciera | pythondev_help_Ciera_2017-07-18T13:05:40.988141 | 1,500,383,140.988141 | 86,113 |
pythondev | help | Do you still need help w/ this? | 2017-07-18T13:08:03.070248 | Deedee | pythondev_help_Deedee_2017-07-18T13:08:03.070248 | 1,500,383,283.070248 | 86,114 |
pythondev | help | <@Johana> another reason why rails is stupid:
* it's valid to do something like `<redis://localhost>`
* but they decide to enforce that the host needs to be a domain name... so in my compose file I had to hack it with `<redis://redis.cache>` | 2017-07-18T13:13:57.274531 | Beula | pythondev_help_Beula_2017-07-18T13:13:57.274531 | 1,500,383,637.274531 | 86,115 |
pythondev | help | hello, could someone help me with a flask issue i'm having? | 2017-07-18T13:28:23.776472 | Liliana | pythondev_help_Liliana_2017-07-18T13:28:23.776472 | 1,500,384,503.776472 | 86,116 |
pythondev | help | Simply post your question in <#C0LN2AD7T|flask> | 2017-07-18T13:31:23.884515 | Beula | pythondev_help_Beula_2017-07-18T13:31:23.884515 | 1,500,384,683.884515 | 86,117 |
pythondev | help | <@Liliana> sure, post your question here (or <#C0LN2AD7T|flask>) and someone will answer when they can :slightly_smiling_face: | 2017-07-18T13:31:26.886122 | Patty | pythondev_help_Patty_2017-07-18T13:31:26.886122 | 1,500,384,686.886122 | 86,118 |
pythondev | help | Please read the intro doc on suggestions, basically: post your question (rather than ask for permission). | 2017-07-18T13:31:43.896390 | Beula | pythondev_help_Beula_2017-07-18T13:31:43.896390 | 1,500,384,703.89639 | 86,119 |
pythondev | help | :thumbsup: will do | 2017-07-18T13:31:51.901226 | Liliana | pythondev_help_Liliana_2017-07-18T13:31:51.901226 | 1,500,384,711.901226 | 86,120 |
pythondev | help | thx | 2017-07-18T13:31:52.901608 | Liliana | pythondev_help_Liliana_2017-07-18T13:31:52.901608 | 1,500,384,712.901608 | 86,121 |
pythondev | help | You got it! | 2017-07-18T13:31:57.904944 | Beula | pythondev_help_Beula_2017-07-18T13:31:57.904944 | 1,500,384,717.904944 | 86,122 |
pythondev | help | so i'm working on a small web app that will allow users to search instagram for two hashtags at the same time.
the route of the app the user is given this form
```
<!DOCTYPE html>
<html lang="en">
<body>
<h1>Enter two comma separated tags (no hashtag symbol!!!)</h1>
<form method="POST" action="{{ url_for('results', token=token) }}">
<input type="text" name="text">
<input type="submit" name="my-form" value="Send">
</form>
</body>
</html>
```
Which is processed by this route
```
@app.route('/results/', methods=['GET', 'POST'], defaults={'token': None})
@app.route('/results/<token>', methods=['GET', 'POST'])
def results(token):
if request.method == 'POST':
tags = request.form['text'].replace(' ', '').split(',')
data = fetch_data(tags=tags, next_page_token=token)
processed_data, token = process_data(data=data, tags=tags)
if request.method == 'GET':
<http://logging.info|logging.info>('REQUEST ARGS: {}'.format(request.args))
return render_template('results.html', data=processed_data[:1], token=token)
```
and the results are displayed via this template
```
<!DOCTYPE html>
<html>
<body style="background-color:powderblue;">
<h1>{{ data }}</h1>
<form action="{{ url_for('results', token=token) }}">
<input type="submit" value="More results plz" />
</form>
</body>
</html>
```
my issue is that i'm trying to pass the next page token to the results page through the URL, so that when the user push the button for more results, ti gets sent back to the `/results` route. right now when i load the "more results" i get a `500` error and it doesn't look like the token is being passed in the url properly because it is before the question mark
```
INFO:werkzeug:10.51.50.1 - - [18/Jul/2017 17:24:36] "GET /results/J0HWW5ERQAAAF0HWW5CPQAAAFoAKAA%253D%253D? HTTP/1.1" 500 -
``` | 2017-07-18T13:35:18.021327 | Liliana | pythondev_help_Liliana_2017-07-18T13:35:18.021327 | 1,500,384,918.021327 | 86,123 |
pythondev | help | this line in particular `<http://logging.info|logging.info>('REQUEST ARGS: {}'.format(request.args))` returns `INFO:root:REQUEST ARGS: ImmutableMultiDict([])` | 2017-07-18T13:36:20.057160 | Liliana | pythondev_help_Liliana_2017-07-18T13:36:20.057160 | 1,500,384,980.05716 | 86,124 |
pythondev | help | What does the HTML of the page look like? That `{{ url_for('results', token=token) }}` bit should be expanded out, so you can verify what it's passing in | 2017-07-18T13:43:16.298089 | Gabriele | pythondev_help_Gabriele_2017-07-18T13:43:16.298089 | 1,500,385,396.298089 | 86,125 |
pythondev | help | Oh, wait, the token does come through - I had to scroll down to see your Log line. But it's not in 'args', perhaps, and that's okay | 2017-07-18T13:44:21.336656 | Gabriele | pythondev_help_Gabriele_2017-07-18T13:44:21.336656 | 1,500,385,461.336656 | 86,126 |
pythondev | help | hm | 2017-07-18T13:44:27.340277 | Liliana | pythondev_help_Liliana_2017-07-18T13:44:27.340277 | 1,500,385,467.340277 | 86,127 |
pythondev | help | You should try logging what `token` is equal to | 2017-07-18T13:44:31.342677 | Gabriele | pythondev_help_Gabriele_2017-07-18T13:44:31.342677 | 1,500,385,471.342677 | 86,128 |
pythondev | help | kk | 2017-07-18T13:44:35.344959 | Liliana | pythondev_help_Liliana_2017-07-18T13:44:35.344959 | 1,500,385,475.344959 | 86,129 |
pythondev | help | Also, if you get a 500 error, normally that would give you a traceback, no? So you could see exactly where it breaks | 2017-07-18T13:45:07.363882 | Gabriele | pythondev_help_Gabriele_2017-07-18T13:45:07.363882 | 1,500,385,507.363882 | 86,130 |
pythondev | help | ah, so it is coming though as the variable token, but it's not something i can parse from the url because it's not an actual arg | 2017-07-18T13:47:16.439586 | Liliana | pythondev_help_Liliana_2017-07-18T13:47:16.439586 | 1,500,385,636.439586 | 86,131 |
pythondev | help | is there a better way to pass data from page to page? maybe with query params? | 2017-07-18T13:47:37.451834 | Liliana | pythondev_help_Liliana_2017-07-18T13:47:37.451834 | 1,500,385,657.451834 | 86,132 |
pythondev | help | Maybe, but I don't see how that's relevant here - if you are getting 'token' correctly, it implies the problem is in your `fetch_data` call and how you pass token in is working | 2017-07-18T13:48:22.478011 | Gabriele | pythondev_help_Gabriele_2017-07-18T13:48:22.478011 | 1,500,385,702.478011 | 86,133 |
pythondev | help | Working with .csv/excel stuff should I be using just the `csv` module or `pandas/openpyxl` | 2017-07-18T13:49:14.508418 | Myong | pythondev_help_Myong_2017-07-18T13:49:14.508418 | 1,500,385,754.508418 | 86,134 |
pythondev | help | <@Liliana> I mean, the main problem with your code is that you don't do anything useful with a GET request | 2017-07-18T13:50:05.538289 | Gabriele | pythondev_help_Gabriele_2017-07-18T13:50:05.538289 | 1,500,385,805.538289 | 86,135 |
pythondev | help | yea im changing that now | 2017-07-18T13:50:21.547902 | Liliana | pythondev_help_Liliana_2017-07-18T13:50:21.547902 | 1,500,385,821.547902 | 86,136 |
pythondev | help | think i got it from here (for now :simple_smile: ) | 2017-07-18T13:50:33.555194 | Liliana | pythondev_help_Liliana_2017-07-18T13:50:33.555194 | 1,500,385,833.555194 | 86,137 |
pythondev | help | thanks for the help | 2017-07-18T13:50:36.556624 | Liliana | pythondev_help_Liliana_2017-07-18T13:50:36.556624 | 1,500,385,836.556624 | 86,138 |
pythondev | help | :+1: | 2017-07-18T13:50:53.566999 | Gabriele | pythondev_help_Gabriele_2017-07-18T13:50:53.566999 | 1,500,385,853.566999 | 86,139 |
pythondev | help | Whats the context? | 2017-07-18T13:51:17.581624 | Martha | pythondev_help_Martha_2017-07-18T13:51:17.581624 | 1,500,385,877.581624 | 86,140 |
pythondev | help | I'm a bit late to this, but depending on what you need to do, tablib can also be useful. | 2017-07-18T14:53:58.813745 | Meghan | pythondev_help_Meghan_2017-07-18T14:53:58.813745 | 1,500,389,638.813745 | 86,141 |
pythondev | help | Hello, I been looking for a way to create script that gathers info from yahoo finance or morning star, financial numbers I can calculate later on with python. I have found an interesting youtube tutorial which goes trough the same topic <https://www.youtube.com/watch?v=K2zyPby4034&index=3&list=PLQVvvaa0QuDejNczz7dbpyu3JnwUBvNch> but the problem is that its in python 2 and some of the steps does not work anymore. I know thought that I can convert the python 2 to 3 and find some hacky ways how to do it still but I wonder if it's worth the effort. Maybe there are some better ways I can do with python 3. I readed a bit about modules like pandas and beautiful soup but not sure if they are fit for this purpose. Anyone could point me to a direction what would be the best method for gathering financial fundamental data? I am quite new to python | 2017-07-18T15:19:25.682002 | Sharlene | pythondev_help_Sharlene_2017-07-18T15:19:25.682002 | 1,500,391,165.682002 | 86,142 |
pythondev | help | if the course is really good and the downside is the fact that it uses python 2 then i would just convert as i go. everything i’ve done so far with scipy, numpy, and pandas has worked in python 3.6. google the errors and tracebacks you get and i bet there are a lot of solutions. | 2017-07-18T15:21:22.744752 | Johana | pythondev_help_Johana_2017-07-18T15:21:22.744752 | 1,500,391,282.744752 | 86,143 |
pythondev | help | the other option is using penv. | 2017-07-18T15:21:26.746821 | Johana | pythondev_help_Johana_2017-07-18T15:21:26.746821 | 1,500,391,286.746821 | 86,144 |
pythondev | help | pyenv makes it pretty easy to run multiple python versions. | 2017-07-18T15:21:36.752431 | Johana | pythondev_help_Johana_2017-07-18T15:21:36.752431 | 1,500,391,296.752431 | 86,145 |
pythondev | help | Someone on that youtube video also posted a package for it <https://pypi.python.org/pypi/yahoo-finance/1.3.2> - i havent tried it - just pointing it out | 2017-07-18T15:21:47.758480 | Martha | pythondev_help_Martha_2017-07-18T15:21:47.758480 | 1,500,391,307.75848 | 86,146 |
pythondev | help | you could run the code in python 2 to just get it working and then conver to python 3 | 2017-07-18T15:21:51.760142 | Johana | pythondev_help_Johana_2017-07-18T15:21:51.760142 | 1,500,391,311.760142 | 86,147 |
pythondev | help | Hi guys, I need your help.
```
companies = db.session.query(
Company.owner_id,
func.sum(Company.salary).label('salary'),
func.sum(Company.employees).label('employees'),
func.sum(Company.pad).label('pad')). \
join(Owner).filter(Owner.company == company_type).filter(Owner.user_id == user.id).\
group_by(Comapny.owner_ids)
```
Okay, I able to sum all those fileds. but I need to output some `string` fields, but I don’t have any ideas, how I can implement this. | 2017-07-18T15:40:39.359497 | Bella | pythondev_help_Bella_2017-07-18T15:40:39.359497 | 1,500,392,439.359497 | 86,148 |
pythondev | help | is there anything for which a module does not exist? | 2017-07-18T15:44:32.482305 | Levi | pythondev_help_Levi_2017-07-18T15:44:32.482305 | 1,500,392,672.482305 | 86,149 |
pythondev | help | thanks, I think I will go trough the tutorial then and each step do some investigating how to make it work in the python 3 lets see how it ends up :stuck_out_tongue: at least I think I will learn more about python that way :smile: | 2017-07-18T15:44:43.487930 | Sharlene | pythondev_help_Sharlene_2017-07-18T15:44:43.487930 | 1,500,392,683.48793 | 86,150 |
pythondev | help | <@Sharlene> that is a cool project idea | 2017-07-18T15:45:09.502072 | Levi | pythondev_help_Levi_2017-07-18T15:45:09.502072 | 1,500,392,709.502072 | 86,151 |
pythondev | help | Yahoo finance is the best *free* source of financial data out there. Google isn't as good given the constraints they place on how much data you can pull from their servers | 2017-07-18T15:58:44.947119 | Levi | pythondev_help_Levi_2017-07-18T15:58:44.947119 | 1,500,393,524.947119 | 86,152 |
pythondev | help | finally got that stupid private github dependency to install in travis from a public repo. holy crap. | 2017-07-18T17:59:31.583996 | Johana | pythondev_help_Johana_2017-07-18T17:59:31.583996 | 1,500,400,771.583996 | 86,153 |
pythondev | help | What was the hack? | 2017-07-18T18:02:16.654646 | Beula | pythondev_help_Beula_2017-07-18T18:02:16.654646 | 1,500,400,936.654646 | 86,154 |
pythondev | help | it’s getting the url right in the dependency_links | 2017-07-18T18:02:33.661532 | Johana | pythondev_help_Johana_2017-07-18T18:02:33.661532 | 1,500,400,953.661532 | 86,155 |
pythondev | help | ```
github_token = os.environ['GITHUB_TOKEN']
github_user = os.environ['GITHUB_USER']
. . .
dependency_links=[
'git+https://{0}:x-oauth-basic@github.com/{1}/package.git/@master#egg=package-0.0.1'.format(github_token, github_user)
],
``` | 2017-07-18T18:04:33.707446 | Johana | pythondev_help_Johana_2017-07-18T18:04:33.707446 | 1,500,401,073.707446 | 86,156 |
pythondev | help | Sounds about right. Nice hack <@Johana> :taco: | 2017-07-18T18:05:10.721732 | Beula | pythondev_help_Beula_2017-07-18T18:05:10.721732 | 1,500,401,110.721732 | 86,157 |
pythondev | help | Oh sorry, guess I gave them all out | 2017-07-18T18:05:22.726316 | Beula | pythondev_help_Beula_2017-07-18T18:05:22.726316 | 1,500,401,122.726316 | 86,158 |
pythondev | help | what sucks is i had to use the --process-dependency-links | 2017-07-18T18:05:22.726620 | Johana | pythondev_help_Johana_2017-07-18T18:05:22.726620 | 1,500,401,122.72662 | 86,159 |
pythondev | help | and it gives a deprecation msg. | 2017-07-18T18:05:30.729463 | Johana | pythondev_help_Johana_2017-07-18T18:05:30.729463 | 1,500,401,130.729463 | 86,160 |
pythondev | help | it’s all good | 2017-07-18T18:05:33.730537 | Johana | pythondev_help_Johana_2017-07-18T18:05:33.730537 | 1,500,401,133.730537 | 86,161 |
pythondev | help | so i’ll have to change things soon… but whatever. | 2017-07-18T18:05:42.734046 | Johana | pythondev_help_Johana_2017-07-18T18:05:42.734046 | 1,500,401,142.734046 | 86,162 |
pythondev | help | it works right now and that is all i care about. | 2017-07-18T18:06:26.750936 | Johana | pythondev_help_Johana_2017-07-18T18:06:26.750936 | 1,500,401,186.750936 | 86,163 |
pythondev | help | I think there is an XKCD about the future self coming back to warn the past self... | 2017-07-18T18:07:20.771731 | Beula | pythondev_help_Beula_2017-07-18T18:07:20.771731 | 1,500,401,240.771731 | 86,164 |
pythondev | help | yea, it’s already bugging me … but i need to press on. | 2017-07-18T18:08:08.789375 | Johana | pythondev_help_Johana_2017-07-18T18:08:08.789375 | 1,500,401,288.789375 | 86,165 |
pythondev | help | i’ll create an issue and get going on other thangs. | 2017-07-18T18:08:25.795919 | Johana | pythondev_help_Johana_2017-07-18T18:08:25.795919 | 1,500,401,305.795919 | 86,166 |
pythondev | help | > Laugh at perfection. It’s boring and keeps you from being done. | 2017-07-18T18:08:59.808666 | Johana | pythondev_help_Johana_2017-07-18T18:08:59.808666 | 1,500,401,339.808666 | 86,167 |
pythondev | help | I'm on your side :slightly_smiling_face: | 2017-07-18T18:09:16.815158 | Beula | pythondev_help_Beula_2017-07-18T18:09:16.815158 | 1,500,401,356.815158 | 86,168 |
pythondev | help | I am writing a node app right now, pretty much going for get it working... | 2017-07-18T18:09:30.820367 | Beula | pythondev_help_Beula_2017-07-18T18:09:30.820367 | 1,500,401,370.820367 | 86,169 |
pythondev | help | yea i just gotta keep telling myself this stuff… haha | 2017-07-18T18:09:31.820738 | Johana | pythondev_help_Johana_2017-07-18T18:09:31.820738 | 1,500,401,371.820738 | 86,170 |
pythondev | help | :shipit: is my motto | 2017-07-18T18:09:52.828545 | Beula | pythondev_help_Beula_2017-07-18T18:09:52.828545 | 1,500,401,392.828545 | 86,171 |
pythondev | help | :thumbsup: | 2017-07-18T18:09:59.831151 | Johana | pythondev_help_Johana_2017-07-18T18:09:59.831151 | 1,500,401,399.831151 | 86,172 |
pythondev | help | same here | 2017-07-18T18:10:00.831710 | Johana | pythondev_help_Johana_2017-07-18T18:10:00.831710 | 1,500,401,400.83171 | 86,173 |
pythondev | help | i’ve adopted it. | 2017-07-18T18:10:07.834288 | Johana | pythondev_help_Johana_2017-07-18T18:10:07.834288 | 1,500,401,407.834288 | 86,174 |
pythondev | help | way better to ship than not have shit. | 2017-07-18T18:10:18.838156 | Johana | pythondev_help_Johana_2017-07-18T18:10:18.838156 | 1,500,401,418.838156 | 86,175 |
pythondev | help | Of course my old director when he left said "you guys don't hold yourself to a high enough software craftmanship standard" | 2017-07-18T18:10:23.840030 | Beula | pythondev_help_Beula_2017-07-18T18:10:23.840030 | 1,500,401,423.84003 | 86,176 |
pythondev | help | So... ¯\_(ツ)_/¯ | 2017-07-18T18:10:39.846030 | Beula | pythondev_help_Beula_2017-07-18T18:10:39.846030 | 1,500,401,439.84603 | 86,177 |
pythondev | help | there is a balance you need to keep. | 2017-07-18T18:11:27.863182 | Johana | pythondev_help_Johana_2017-07-18T18:11:27.863182 | 1,500,401,487.863182 | 86,178 |
pythondev | help | you def. don’t want the crappiest code ever being written… but you can also spend waaay to much time on some some stuff. | 2017-07-18T18:11:54.872896 | Johana | pythondev_help_Johana_2017-07-18T18:11:54.872896 | 1,500,401,514.872896 | 86,179 |
pythondev | help | He was really just being an ass, not to be too rude | 2017-07-18T18:11:55.873528 | Beula | pythondev_help_Beula_2017-07-18T18:11:55.873528 | 1,500,401,515.873528 | 86,180 |
pythondev | help | I think I just decided a new policy, no calling a package/module: utils, common, or shared | 2017-07-18T18:16:27.971521 | Beula | pythondev_help_Beula_2017-07-18T18:16:27.971521 | 1,500,401,787.971521 | 86,181 |
pythondev | help | <@Alvin>
```backend
|_ broadway
|_ all_the_python_scripts.py
|_all_the_not_python_files.ext``` | 2017-07-18T19:49:31.605918 | Thomasina | pythondev_help_Thomasina_2017-07-18T19:49:31.605918 | 1,500,407,371.605918 | 86,182 |
pythondev | help | Something like that | 2017-07-18T19:49:36.607333 | Thomasina | pythondev_help_Thomasina_2017-07-18T19:49:36.607333 | 1,500,407,376.607333 | 86,183 |
pythondev | help | So literally everything .py is in the broadway folder | 2017-07-18T19:49:55.612254 | Thomasina | pythondev_help_Thomasina_2017-07-18T19:49:55.612254 | 1,500,407,395.612254 | 86,184 |
pythondev | help | Then I use `python -m broadway` to run it | 2017-07-18T19:50:13.616771 | Thomasina | pythondev_help_Thomasina_2017-07-18T19:50:13.616771 | 1,500,407,413.616771 | 86,185 |
pythondev | help | So you mean that it's lookin in `backend` for `create_app` rather than in `broadway`? | 2017-07-18T19:50:57.628069 | Thomasina | pythondev_help_Thomasina_2017-07-18T19:50:57.628069 | 1,500,407,457.628069 | 86,186 |
pythondev | help | <@Sharlene> what are you trying to do? there are Python libs that do lots of financial stuff that you could just use. Unless you want to 'learn Python by doing' type of thing | 2017-07-18T19:53:27.665818 | Alvin | pythondev_help_Alvin_2017-07-18T19:53:27.665818 | 1,500,407,607.665818 | 86,187 |
pythondev | help | <@Thomasina> I see. Do you have a py script anywhere where you imports "backend" first? | 2017-07-18T19:54:52.687331 | Alvin | pythondev_help_Alvin_2017-07-18T19:54:52.687331 | 1,500,407,692.687331 | 86,188 |
pythondev | help | <@Thomasina> To asnwer your question: Yes. It's hard to guess without the full code but pay close attention to __init__.py and your initial app import. The folder structure needs to be what Flask expects or at least direct it to it if you're going the unconventional way. | 2017-07-18T20:04:13.835111 | Alvin | pythondev_help_Alvin_2017-07-18T20:04:13.835111 | 1,500,408,253.835111 | 86,189 |
pythondev | help | <@Thomasina> Once you need to deploy this to a server, you ll need a wsgi script that would declare all the pathes as well. Otherwise you'll be banging your head trying to figure out why an "moduleName importError" is popping everywhere. | 2017-07-18T20:06:38.871883 | Alvin | pythondev_help_Alvin_2017-07-18T20:06:38.871883 | 1,500,408,398.871883 | 86,190 |
pythondev | help | Only `__main__.py` is truncated there | 2017-07-18T20:07:38.886315 | Thomasina | pythondev_help_Thomasina_2017-07-18T20:07:38.886315 | 1,500,408,458.886315 | 86,191 |
pythondev | help | Thanks for the heads up about WSGI! I hadn't gotten there yet but I hadn't made a WSGI script yet | 2017-07-18T20:08:27.898104 | Thomasina | pythondev_help_Thomasina_2017-07-18T20:08:27.898104 | 1,500,408,507.898104 | 86,192 |
pythondev | help | <@Thomasina> where is your `app = Flask(__name__)` | 2017-07-18T20:20:38.071328 | Alvin | pythondev_help_Alvin_2017-07-18T20:20:38.071328 | 1,500,409,238.071328 | 86,193 |
pythondev | help | <@Alvin> in `__init__.py` is the snippet :slightly_smiling_face: | 2017-07-18T20:22:04.090845 | Thomasina | pythondev_help_Thomasina_2017-07-18T20:22:04.090845 | 1,500,409,324.090845 | 86,194 |
pythondev | help | <@Thomasina> change to `from broadway import config` | 2017-07-18T20:25:30.136790 | Alvin | pythondev_help_Alvin_2017-07-18T20:25:30.136790 | 1,500,409,530.13679 | 86,195 |
pythondev | help | I've never used a wsgi script, the gunicorn arg or config file should be enough - but you can do whatever makes sense to you | 2017-07-18T20:54:45.509715 | Beula | pythondev_help_Beula_2017-07-18T20:54:45.509715 | 1,500,411,285.509715 | 86,196 |
pythondev | help | What is the strategy to decide limit for number of processes when working with `multiprocessing`? | 2017-07-19T00:58:41.212122 | Katheryn | pythondev_help_Katheryn_2017-07-19T00:58:41.212122 | 1,500,425,921.212122 | 86,197 |
pythondev | help | I'd favor `concurrent.futures` (or the `futures` backport if you are on python2). | 2017-07-19T00:59:25.219875 | Beula | pythondev_help_Beula_2017-07-19T00:59:25.219875 | 1,500,425,965.219875 | 86,198 |
pythondev | help | Basically you can define a pool with the max workers | 2017-07-19T00:59:32.221014 | Beula | pythondev_help_Beula_2017-07-19T00:59:32.221014 | 1,500,425,972.221014 | 86,199 |
pythondev | help | ```
import concurrent.futures
with concurrent.futures.ProcessPoolExecutor(max_workers=2) as pool:
pool.submit(print, 'Hello World')
``` | 2017-07-19T01:00:09.227988 | Beula | pythondev_help_Beula_2017-07-19T01:00:09.227988 | 1,500,426,009.227988 | 86,200 |
pythondev | help | (untested and from memory <@Katheryn> :point_up::skin-tone-4:) | 2017-07-19T01:00:22.230647 | Beula | pythondev_help_Beula_2017-07-19T01:00:22.230647 | 1,500,426,022.230647 | 86,201 |
pythondev | help | Sure, let me explore `futures`. So, I’ll be doing I/O with these forked processes. Reading from the web, suggestions are to keep workers equal to number of cores. Is that reasonable? | 2017-07-19T01:01:16.240428 | Katheryn | pythondev_help_Katheryn_2017-07-19T01:01:16.240428 | 1,500,426,076.240428 | 86,202 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.