What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/asascf
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/asascf
reddit
r/Python - What's everyone working on this week?
1 vote and 0 comments so far on Reddit
Using Python to measure evolutionary games between cancer cells from in vitro experiments.
https://egtheory.wordpress.com/2019/02/16/python-game-assay/
/r/Python
https://redd.it/asa7dc
https://egtheory.wordpress.com/2019/02/16/python-game-assay/
/r/Python
https://redd.it/asa7dc
Theory, Evolution, and Games Group
Quick introduction: Evolutionary game assay in Python
It’s been a while since I’ve shared or discussed code on TheEGG. So to avoid always being too vague and theoretical, I want to use this post to explain how one would write some Python c…
django-pivot now supports multi-level pivot tables
Thanks to [Rafał Jaworski](https://github.com/rafal-jaworski) for adding support for multi-level pivot tables to [django-pivot](https://github.com/martsberger/django-pivot).
All feedback appreciated.
/r/django
https://redd.it/asank9
Thanks to [Rafał Jaworski](https://github.com/rafal-jaworski) for adding support for multi-level pivot tables to [django-pivot](https://github.com/martsberger/django-pivot).
All feedback appreciated.
/r/django
https://redd.it/asank9
GitHub
rafal-jaworski - Overview
Backend developer and python lover at getprintbox.com - rafal-jaworski
Django admin usage
Hi all,
Just wondering how many people use the Django admin site when developing for clients? I have never actually used the admin functionality for a client build, Ive always built the 'admin stuff' myself.
The reason Im asking is I feel I may be missing a trick and have always liked some of the 'out-of-the-box' features bundled with admin but have never taken the time to try and customise the site.
Thanks.
/r/django
https://redd.it/asb99f
Hi all,
Just wondering how many people use the Django admin site when developing for clients? I have never actually used the admin functionality for a client build, Ive always built the 'admin stuff' myself.
The reason Im asking is I feel I may be missing a trick and have always liked some of the 'out-of-the-box' features bundled with admin but have never taken the time to try and customise the site.
Thanks.
/r/django
https://redd.it/asb99f
reddit
r/django - Django admin usage
2 votes and 3 comments so far on Reddit
Creating magic functions in IPython
Hi!
I just found out that there is a subreddit for IPython - that's super cool!
Sorry for a duplicated post (I already wrote about this in r/Python and r/learnpython), but I wrote a short series of 3 articles about how to create magic functions in IPython and I thought it might be interesting for some people here. The documentation of IPython is pretty amazing, but I wanted to practice a bit and create some fun little helpers in each part.
So here is what you can find in each part:
* [Part 1](https://switowski.com/python/ipython/2019/02/01/creating-magic-functions-part1.html) \- where I'm explaining what magic functions are and I'm creating a line magic to interpret some simple *Polish notation* math equations.
* [Part 2](https://switowski.com/python/ipython/2019/02/08/creating-magic-functions-part2.html) \- where I'm talking about cell magic (and "line AND cell magic functions") and I'm writing a type checker that will run `mypy` on a block of code (cell).
* [Part 3](https://switowski.com/python/ipython/2019/02/15/creating-magic-functions-part3.html) \- where I'm talking about `Magics classes`, explaining the difference between creating a magic function with a decorator vs writing a class inheriting from `Magics` and finally - I'm writing a type checker (I actually found the type checker from the previous part to be quite useful!) that can check previous commands (in the same
/r/IPython
https://redd.it/asefnh
Hi!
I just found out that there is a subreddit for IPython - that's super cool!
Sorry for a duplicated post (I already wrote about this in r/Python and r/learnpython), but I wrote a short series of 3 articles about how to create magic functions in IPython and I thought it might be interesting for some people here. The documentation of IPython is pretty amazing, but I wanted to practice a bit and create some fun little helpers in each part.
So here is what you can find in each part:
* [Part 1](https://switowski.com/python/ipython/2019/02/01/creating-magic-functions-part1.html) \- where I'm explaining what magic functions are and I'm creating a line magic to interpret some simple *Polish notation* math equations.
* [Part 2](https://switowski.com/python/ipython/2019/02/08/creating-magic-functions-part2.html) \- where I'm talking about cell magic (and "line AND cell magic functions") and I'm writing a type checker that will run `mypy` on a block of code (cell).
* [Part 3](https://switowski.com/python/ipython/2019/02/15/creating-magic-functions-part3.html) \- where I'm talking about `Magics classes`, explaining the difference between creating a magic function with a decorator vs writing a class inheriting from `Magics` and finally - I'm writing a type checker (I actually found the type checker from the previous part to be quite useful!) that can check previous commands (in the same
/r/IPython
https://redd.it/asefnh
Sebastian Witowski - consultant and trainer
Creating Magic Functions in IPython - Part 1
Learn how to make your own magic functions in IPython by creating a line magic function.
Easily Build and Deploy Your First Python Web App
https://datarebellion.com/blog/easily-build-and-deploy-your-first-python-web-app/
/r/Python
https://redd.it/ascbi1
https://datarebellion.com/blog/easily-build-and-deploy-your-first-python-web-app/
/r/Python
https://redd.it/ascbi1
data Rebellion
Easily Build and Deploy Your First Python Web App » data Rebellion
Learn how to quickly build a custom, interactive web app in pure Python, as well as how to host your app for free and embed it in your website.
Flask Simple Background Task Control
Hello. I'm trying to connect a frontend UI with a task running in the background.
I know about celery but I'm looking for something simpler which is faster to set up and requires less effort.
/r/flask
https://redd.it/ashd3y
Hello. I'm trying to connect a frontend UI with a task running in the background.
I know about celery but I'm looking for something simpler which is faster to set up and requires less effort.
/r/flask
https://redd.it/ashd3y
reddit
r/flask - Flask Simple Background Task Control
1 vote and 2 comments so far on Reddit
Why does mybinder.org not recognize a requirements.txt file?
I am attempting to load a Jupyter Notebook through mybinder.org. The repository that the Notebook is in includes a `requirements.txt` file with the content
parsl
because the Notebook uses the `parsl` library.
When I load the notebook and import the library, execution stops with the error
ModuleNotFoundError: No module named 'parsl'
The `requirements.txt` file is _right there_. I have no idea what else to do to get mybinder.org to load the module. What am I missing?
/r/IPython
https://redd.it/asbnhk
I am attempting to load a Jupyter Notebook through mybinder.org. The repository that the Notebook is in includes a `requirements.txt` file with the content
parsl
because the Notebook uses the `parsl` library.
When I load the notebook and import the library, execution stops with the error
ModuleNotFoundError: No module named 'parsl'
The `requirements.txt` file is _right there_. I have no idea what else to do to get mybinder.org to load the module. What am I missing?
/r/IPython
https://redd.it/asbnhk
reddit
r/IPython - Why does mybinder.org not recognize a requirements.txt file?
2 votes and 2 comments so far on Reddit
Rock, Paper Scissors Game
Trying to create rock, paper scissors game without import of any kind. Any sort of help would be greatly appreciated!
/r/Python
https://redd.it/asj6sd
Trying to create rock, paper scissors game without import of any kind. Any sort of help would be greatly appreciated!
/r/Python
https://redd.it/asj6sd
reddit
r/Python - Rock, Paper Scissors Game
1 vote and 1 comment so far on Reddit
text adventures
is anyone still into them? its basically all i write, but its fun! curious if anyone actually plays them still, at least if theyre written in python..
​
im a fan of using standard libraries as to make it as transferrable to each interpreter as possible lol (looking into making a game that clears the screen quickly as to make an old roguelike but even thats far off for me.
/r/Python
https://redd.it/asjtyn
is anyone still into them? its basically all i write, but its fun! curious if anyone actually plays them still, at least if theyre written in python..
​
im a fan of using standard libraries as to make it as transferrable to each interpreter as possible lol (looking into making a game that clears the screen quickly as to make an old roguelike but even thats far off for me.
/r/Python
https://redd.it/asjtyn
reddit
r/Python - text adventures
1 vote and 2 comments so far on Reddit
Today is python birthday, what do you wish?
First message of Guido releasing python was the 20 February 1991 on alt.sources.
What would you like to wish for the 28y of python?
I would love to see no more 2.7 code around.
/r/Python
https://redd.it/asltnr
First message of Guido releasing python was the 20 February 1991 on alt.sources.
What would you like to wish for the 28y of python?
I would love to see no more 2.7 code around.
/r/Python
https://redd.it/asltnr
reddit
r/Python - Today is python birthday, what do you wish?
296 votes and 142 comments so far on Reddit
Anyway have any experience/tips converting a Flask app using Jinja templating to React?
I have a Flask app that heavily used Jinja templating. However, the issue that I am facing right now is that the app is a static webpage and I want to move over to a SPA in React. So the plan is get rid of all the jinja templating and convert all the jinja features I was using to React features. Does anyone here have any experience dealing with this transition?
/r/flask
https://redd.it/asrdrw
I have a Flask app that heavily used Jinja templating. However, the issue that I am facing right now is that the app is a static webpage and I want to move over to a SPA in React. So the plan is get rid of all the jinja templating and convert all the jinja features I was using to React features. Does anyone here have any experience dealing with this transition?
/r/flask
https://redd.it/asrdrw
reddit
r/flask - Anyway have any experience/tips converting a Flask app using Jinja templating to React?
1 vote and 0 comments so far on Reddit
Deploying Flask app to Heroku failing.
I have a flask webapp which is working fine on localhost but due to some reason is not running on Heroku.
I'm assuming that something is wrong with my Procfile.
File structure :
├── hiring.csv
├── machine-learning-model.ipynb
├── Procfile
├── README.md
├── requirements.txt
└── src
├── __init__.py
├── model.pkl
├── __pycache__
│ └── app.cpython-36.pyc
├── static
│ └── style.css
└── templates
└── index.html
Procfile:
web: gunicorn src:app
Thank you
/r/flask
https://redd.it/asrwr8
I have a flask webapp which is working fine on localhost but due to some reason is not running on Heroku.
I'm assuming that something is wrong with my Procfile.
File structure :
├── hiring.csv
├── machine-learning-model.ipynb
├── Procfile
├── README.md
├── requirements.txt
└── src
├── __init__.py
├── model.pkl
├── __pycache__
│ └── app.cpython-36.pyc
├── static
│ └── style.css
└── templates
└── index.html
Procfile:
web: gunicorn src:app
Thank you
/r/flask
https://redd.it/asrwr8
reddit
r/flask - Deploying Flask app to Heroku failing.
1 vote and 0 comments so far on Reddit
Jupyter Community Workshop: Dashboarding with Project Jupyter
https://blog.jupyter.org/jupyter-community-workshop-dashboarding-with-project-jupyter-b0e421bdf164
/r/IPython
https://redd.it/asr0dd
https://blog.jupyter.org/jupyter-community-workshop-dashboarding-with-project-jupyter-b0e421bdf164
/r/IPython
https://redd.it/asr0dd
Jupyter Blog
Jupyter Community Workshop: Dashboarding with Project Jupyter
We have some exciting news about the Jupyter Community Workshop on dashboarding!
Weather Dashboard using Python & Dark Sky API
https://www.youtube.com/watch?v=6gBfgoaJImE
/r/Python
https://redd.it/asq80o
https://www.youtube.com/watch?v=6gBfgoaJImE
/r/Python
https://redd.it/asq80o
YouTube
Make a Weather Dashboard with Dark Sky API | GIT TECH'D
Dark Sky (https://darksky.net/) specializes in weather forecasting and visualization. The really cool aspect of Dark Sky is that they have an API that we can use to retrieve the weather data (pretty much) any where in the world. EDIT: Dark Sky is no longer…
Image Pixelator using Python
This is my first post so go easy on me lol.
I made a naive algorithm which pixelates a given image by calculating the average pixel value using PIL and opencv.It is very slow(duh!), took around 10-15 sec to process a 4k image.Please try it out and give me suggestions to do it better or faster.[https://github.com/k4rth33k/code\_bunker/blob/master/pixel.py](https://github.com/k4rth33k/code_bunker/blob/master/pixel.py)
​
/r/Python
https://redd.it/asrikj
This is my first post so go easy on me lol.
I made a naive algorithm which pixelates a given image by calculating the average pixel value using PIL and opencv.It is very slow(duh!), took around 10-15 sec to process a 4k image.Please try it out and give me suggestions to do it better or faster.[https://github.com/k4rth33k/code\_bunker/blob/master/pixel.py](https://github.com/k4rth33k/code_bunker/blob/master/pixel.py)
​
/r/Python
https://redd.it/asrikj