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
Getting post data from ajax to python in flask
hey all, I have been working on this problem for far too long. I have asked many people and still it seems that I am not figuring it out. All I want to do is take the info from ajax and send it to python so I can manipulate it and put it in a db.
​
/working.html
[https://pastebin.com/9QjtMURU](https://pastebin.com/9QjtMURU)
​
/routes.py
[https://pastebin.com/suMJC5Xx](https://pastebin.com/suMJC5Xx)
​
console log
​
https://i.redd.it/njuq2ujvlsh21.png
edit: switched to paste bin because i did not know how to format code here
/r/flask
https://redd.it/asu5do
hey all, I have been working on this problem for far too long. I have asked many people and still it seems that I am not figuring it out. All I want to do is take the info from ajax and send it to python so I can manipulate it and put it in a db.
​
/working.html
[https://pastebin.com/9QjtMURU](https://pastebin.com/9QjtMURU)
​
/routes.py
[https://pastebin.com/suMJC5Xx](https://pastebin.com/suMJC5Xx)
​
console log
​
https://i.redd.it/njuq2ujvlsh21.png
edit: switched to paste bin because i did not know how to format code here
/r/flask
https://redd.it/asu5do
Pastebin
[JavaScript] function postSave() {$( "li" ).each(function( index ) { - Pastebin.com
DRF Alternatives.
Hey there everyone. I've gotten quite used to the DRF + Front end framework (Vue) workflow over the past few months, and it's made me realize just how strong Django can be as a back end only solution. For anyone with more diverse experience, what are some alternatives you guys have used for building out DB's / API's that don't involve Django? Specifically in the JS world. Do they compare?
/r/django
https://redd.it/asqe1f
Hey there everyone. I've gotten quite used to the DRF + Front end framework (Vue) workflow over the past few months, and it's made me realize just how strong Django can be as a back end only solution. For anyone with more diverse experience, what are some alternatives you guys have used for building out DB's / API's that don't involve Django? Specifically in the JS world. Do they compare?
/r/django
https://redd.it/asqe1f
reddit
r/django - DRF Alternatives.
14 votes and 8 comments so far on Reddit
As promised - webcam to ascii in command line
There's this [cool project](https://www.reddit.com/r/Python/comments/amjko2/works_with_live_webcam_video_idea_u1991viet/) which takes in camera input and converts it in real time to ascii art. The only problem is that it renders to a Pygame window instead of command line. (It was thought that rendering in text would be too slow.) I made some changes so it uses curses to render to command line.
So [as promised](https://www.reddit.com/r/Python/comments/amjko2/works_with_live_webcam_video_idea_u1991viet/efoti7v/?context=3) I making a post here, complete with a [youtube demo](https://www.youtube.com/watch?v=M0DnibYHUkQ), some [junky code](https://gist.github.com/SamyBencherif/29a0a945cabff92a4b61d78a5fe072a5) for you to get started on, and a bunch of [dumb embedded links](https://www.reddit.com/r/Python/comments/aswvve/as_promised_webcam_to_ascii_in_command_line/).
​
Installation of dependencies. Copy paste this into your terminal:
python3 -m pip install opencv-python
​
/r/Python
https://redd.it/aswvve
There's this [cool project](https://www.reddit.com/r/Python/comments/amjko2/works_with_live_webcam_video_idea_u1991viet/) which takes in camera input and converts it in real time to ascii art. The only problem is that it renders to a Pygame window instead of command line. (It was thought that rendering in text would be too slow.) I made some changes so it uses curses to render to command line.
So [as promised](https://www.reddit.com/r/Python/comments/amjko2/works_with_live_webcam_video_idea_u1991viet/efoti7v/?context=3) I making a post here, complete with a [youtube demo](https://www.youtube.com/watch?v=M0DnibYHUkQ), some [junky code](https://gist.github.com/SamyBencherif/29a0a945cabff92a4b61d78a5fe072a5) for you to get started on, and a bunch of [dumb embedded links](https://www.reddit.com/r/Python/comments/aswvve/as_promised_webcam_to_ascii_in_command_line/).
​
Installation of dependencies. Copy paste this into your terminal:
python3 -m pip install opencv-python
​
/r/Python
https://redd.it/aswvve
reddit
Works with live webcam video (idea: u/1991viet)
Posted in r/Python by u/Kuerbiskernkeks • 435 points and 60 comments
Downloadable Python lessons for someone cut off from the world for three weeks
I will be onboard onboard a ship out to sea for three weeks and internet access will be limited to email. Are there any good Python books/lessons that I can download and study during my downtime while I am out? I have absolutely no programming background.
/r/Python
https://redd.it/asyr69
I will be onboard onboard a ship out to sea for three weeks and internet access will be limited to email. Are there any good Python books/lessons that I can download and study during my downtime while I am out? I have absolutely no programming background.
/r/Python
https://redd.it/asyr69
reddit
r/Python - Downloadable Python lessons for someone cut off from the world for three weeks
4 votes and 6 comments so far on Reddit
Pure python website cloning library
https://github.com/rajatomar788/pywebcopy
/r/Python
https://redd.it/asztne
https://github.com/rajatomar788/pywebcopy
/r/Python
https://redd.it/asztne
GitHub
GitHub - rajatomar788/pywebcopy: Locally saves webpages to your hard disk with images, css, js & links as is.
Locally saves webpages to your hard disk with images, css, js & links as is. - rajatomar788/pywebcopy
CMS For User-Generated Graphs
I’m working on a project that allows a user to create academic articles with user generated graphs. Theoretically, the user would add a csv or excel spreadsheet in their publication and a CMS like Wagtail or Django CMS would generate a graph using React or Chart.js. Is this currently possible in Django with a CMS?
/r/django
https://redd.it/at352k
I’m working on a project that allows a user to create academic articles with user generated graphs. Theoretically, the user would add a csv or excel spreadsheet in their publication and a CMS like Wagtail or Django CMS would generate a graph using React or Chart.js. Is this currently possible in Django with a CMS?
/r/django
https://redd.it/at352k
reddit
r/django - CMS For User-Generated Graphs
0 votes and 2 comments so far on Reddit
IPython alias to preload your favorite modules and activate autoreload
https://towardsdatascience.com/tips-ipython-d5ea85c5e9be
/r/Python
https://redd.it/at3ikz
https://towardsdatascience.com/tips-ipython-d5ea85c5e9be
/r/Python
https://redd.it/at3ikz
Medium
IPython Alias to Preload Your Favorite Modules and Activate Autoreload
Grab your own powerful IPython with a very simple way
IPython 7.3 and 7.4 release announcements
https://discourse.jupyter.org/t/release-of-ipython-7-3/409
/r/IPython
https://redd.it/at45rk
https://discourse.jupyter.org/t/release-of-ipython-7-3/409
/r/IPython
https://redd.it/at45rk
Jupyter Community Forum
Release of IPython 7.3
Hi all, IPython 7.3 was released 2 days ago, and is now available on PyPI, and on conda-forge. You can update with pip install ipython --upgrade And if you are using conda, once available on conda-forge: conda upgrade ipython This is a smallish release…