Play Tetris inside a Jupyter notebook today!
http://www.juliatetris.com
/r/IPython
https://redd.it/88p097
http://www.juliatetris.com
/r/IPython
https://redd.it/88p097
[N] Introducing TensorFlow Hub: A Library for Reusable Machine Learning Modules in TensorFlow
https://medium.com/tensorflow/introducing-tensorflow-hub-a-library-for-reusable-machine-learning-modules-in-tensorflow-cdee41fa18f9
/r/MachineLearning
https://redd.it/88o922
https://medium.com/tensorflow/introducing-tensorflow-hub-a-library-for-reusable-machine-learning-modules-in-tensorflow-cdee41fa18f9
/r/MachineLearning
https://redd.it/88o922
Medium
Introducing TensorFlow Hub: A Library for Reusable Machine Learning Modules in TensorFlow
Posted by Josh Gordon, Developer Advocate for TensorFlow
Im new to Python, and I have Komodo IDE
Ive been looking to get into Learning Languages, and was recommended Python as a starting point. The following will sound stupid but I cant move past it.
I have been using Komodo IDE to start on with Python and am Following along Classes and Tutorials etc, one of the first things is Arithmetics.
On inputting 4 + 4 I do not get any output, am I doing something wrong? using cmd py -3 then 4 + 4 I get 8 as I should.
My question is what am I doing wrong to get no Output in Komodo? I get outputs for print(' ') etc.
Sorry for the dull question, thanks in advance for any help.
EDIT: Thanks for all the help, I have figured it out thanks to help. Appreciate it all :)
/r/Python
https://redd.it/88qjmn
Ive been looking to get into Learning Languages, and was recommended Python as a starting point. The following will sound stupid but I cant move past it.
I have been using Komodo IDE to start on with Python and am Following along Classes and Tutorials etc, one of the first things is Arithmetics.
On inputting 4 + 4 I do not get any output, am I doing something wrong? using cmd py -3 then 4 + 4 I get 8 as I should.
My question is what am I doing wrong to get no Output in Komodo? I get outputs for print(' ') etc.
Sorry for the dull question, thanks in advance for any help.
EDIT: Thanks for all the help, I have figured it out thanks to help. Appreciate it all :)
/r/Python
https://redd.it/88qjmn
reddit
Im new to Python, and I have Komodo IDE • r/Python
Ive been looking to get into Learning Languages, and was recommended Python as a starting point. The following will sound stupid but I cant move...
[AF] New to flask, every route is hitting the same function.
@app.route('/')
@app.route('/index')
@app.route('/login')
@app.route('/test')
def index():
print('hit index')
user = {'username': 'test'}
work.buildislandlist()
return render_template('index.html', user=user, island_list=work.island_list)
def login():
print('hit login')
form = LoginForm()
return render_template('login.html', title='Sign In?', form=form)
def test():
print("hit test")
return render_template('test.html')
So you can see I have those print statements in each function, and every time I hit /index, /login, /test on my browser, it only ever hits the index() function. Any ideas on why that may be?
/r/flask
https://redd.it/88rb2o
@app.route('/')
@app.route('/index')
@app.route('/login')
@app.route('/test')
def index():
print('hit index')
user = {'username': 'test'}
work.buildislandlist()
return render_template('index.html', user=user, island_list=work.island_list)
def login():
print('hit login')
form = LoginForm()
return render_template('login.html', title='Sign In?', form=form)
def test():
print("hit test")
return render_template('test.html')
So you can see I have those print statements in each function, and every time I hit /index, /login, /test on my browser, it only ever hits the index() function. Any ideas on why that may be?
/r/flask
https://redd.it/88rb2o
reddit
[AF] New to flask, every route is hitting the same function. • r/flask
@app.route('/') @app.route('/index') @app.route('/login') @app.route('/test') def index(): print('hit...
Transfer files over WiFi from your computer to your smartphone from the terminal
Here is project which I am really proud off. Please do suggest ways i could improve this project :)
Repo: https://github.com/sdushantha/qr-filetransfer
/r/Python
https://redd.it/88ra4o
Here is project which I am really proud off. Please do suggest ways i could improve this project :)
Repo: https://github.com/sdushantha/qr-filetransfer
/r/Python
https://redd.it/88ra4o
GitHub
GitHub - sdushantha/qr-filetransfer: Transfer files over WiFi between your computer and your smartphone from the terminal
Transfer files over WiFi between your computer and your smartphone from the terminal - sdushantha/qr-filetransfer
What's the coolest thing you did with Python?
Hello everyone.
I'm a beginner in Python and still doing a course on it. I just started Python just 2 months. I really want to motivate myself to continue learning Python, but I only learn the course on and off . I felt that only way to keep me going is be shown on how great and useful Python is. Yes, I do have a project I plan to do with the knowledge of Python, but just feel lazy sometimes (I really want to be very committed).I will really get inspired and motivated when I see the amazing things that Python can do and create. Please tell me your stories.
Also, you can mention how it was life changing.
Did it help make your job non related to programming easier?
Were your co-workers impressed by your skill and felt like they should learn too?
Did it help get you a job?
Thank you
/r/Python
https://redd.it/88w1ws
Hello everyone.
I'm a beginner in Python and still doing a course on it. I just started Python just 2 months. I really want to motivate myself to continue learning Python, but I only learn the course on and off . I felt that only way to keep me going is be shown on how great and useful Python is. Yes, I do have a project I plan to do with the knowledge of Python, but just feel lazy sometimes (I really want to be very committed).I will really get inspired and motivated when I see the amazing things that Python can do and create. Please tell me your stories.
Also, you can mention how it was life changing.
Did it help make your job non related to programming easier?
Were your co-workers impressed by your skill and felt like they should learn too?
Did it help get you a job?
Thank you
/r/Python
https://redd.it/88w1ws
reddit
What's the coolest thing you did with Python? • r/Python
Hello everyone. I'm a beginner in Python and still doing a course on it. I just started Python just 2 months. I really want to motivate myself to...
I wrote a complete beginner's guide to deploying a Django app on Google Cloud's Flexible App Engine (pics and deployment template files included)
https://medium.com/@vampiire/beginners-guide-to-deploying-a-django-postgresql-project-on-google-cloud-s-flexible-app-engine-e3357b601b91
/r/django
https://redd.it/88wcrn
https://medium.com/@vampiire/beginners-guide-to-deploying-a-django-postgresql-project-on-google-cloud-s-flexible-app-engine-e3357b601b91
/r/django
https://redd.it/88wcrn
Medium
Beginner’s Guide to Deploying a Django + PostgreSQL project on Google Cloud’s Flexible App Engine
A no-steps-skipped beginner’s guide to using Google Cloud for your first production Django app deployment.
how to generate oauth2 credentials after successful google login
i have successfully configured everything to work with google oauth2.
i have used
>django-rest-framework-social-oauth2
the user gets registered if new in DB, the user get logged in if old
everything working fine
i want to generate a oauth2 credentials if the user successful logged in using google oauth
like this
>{
>"access_token": "jCvkP4l7jt88D2O1H1WnNC5wx56knj",
>"expires_in": 36000,
>"token_type": "Bearer",
>"scope": "read write",
>"refresh_token": "u51zWkv056BNMsug8Qw6KCgk5Qtyp"
>}
/r/djangolearning
https://redd.it/88yf73
i have successfully configured everything to work with google oauth2.
i have used
>django-rest-framework-social-oauth2
the user gets registered if new in DB, the user get logged in if old
everything working fine
i want to generate a oauth2 credentials if the user successful logged in using google oauth
like this
>{
>"access_token": "jCvkP4l7jt88D2O1H1WnNC5wx56knj",
>"expires_in": 36000,
>"token_type": "Bearer",
>"scope": "read write",
>"refresh_token": "u51zWkv056BNMsug8Qw6KCgk5Qtyp"
>}
/r/djangolearning
https://redd.it/88yf73
reddit
how to generate oauth2 credentials after... • r/djangolearning
i have successfully configured everything to work with google oauth2. i have used >django-rest-framework-social-oauth2 the user gets...
How do I run a flask app without a virtual environment?
I'm following a flask lesson, and they have me using a virtual environment.
I run the flask app by doing the following:
>(venv) set FLASK_APP=main.py
>(venv) flask run
but trying the same while outside of the venv I get "flask is not recognized as an internal or external command.
What am I missing?
/r/flask
https://redd.it/88v4jm
I'm following a flask lesson, and they have me using a virtual environment.
I run the flask app by doing the following:
>(venv) set FLASK_APP=main.py
>(venv) flask run
but trying the same while outside of the venv I get "flask is not recognized as an internal or external command.
What am I missing?
/r/flask
https://redd.it/88v4jm
reddit
How do I run a flask app without a virtual environment? • r/flask
I'm following a flask lesson, and they have me using a virtual environment. I run the flask app by doing the following: >(venv) set...
how to get access_token of google oauth user?
i have used django-rest-framework-social-oauth2
**added this to templates**
>'social_django.context_processors.backends',
>'social_django.context_processors.login_redirect',
**added backends**
>'social_core.backends.open_id.OpenIdAuth',
>'social_core.backends.google.GoogleOpenId',
>'social_core.backends.google.GoogleOAuth2',
**google keys**
>SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = "***"
>SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = "***"
setup everything on the https://console.developers.google.com
when i access this link http://localhost:8000/auth/login/google-oauth2/ from browser
everything working fine my logged user details are register in DB if new, else login if old. then the social auth auto redirects to this link http://localhost:8000/accounts/profile/# which is empty.
i need the access token of the google user so that i can convert the token to oauth token in this link http://localhost:8000/auth/convert-token with my site client id & secret i created.
after that i can use the converted token to grant access to my API request
/r/django
https://redd.it/88xvk6
i have used django-rest-framework-social-oauth2
**added this to templates**
>'social_django.context_processors.backends',
>'social_django.context_processors.login_redirect',
**added backends**
>'social_core.backends.open_id.OpenIdAuth',
>'social_core.backends.google.GoogleOpenId',
>'social_core.backends.google.GoogleOAuth2',
**google keys**
>SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = "***"
>SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = "***"
setup everything on the https://console.developers.google.com
when i access this link http://localhost:8000/auth/login/google-oauth2/ from browser
everything working fine my logged user details are register in DB if new, else login if old. then the social auth auto redirects to this link http://localhost:8000/accounts/profile/# which is empty.
i need the access token of the google user so that i can convert the token to oauth token in this link http://localhost:8000/auth/convert-token with my site client id & secret i created.
after that i can use the converted token to grant access to my API request
/r/django
https://redd.it/88xvk6
reddit
how to get access_token of google oauth user? • r/django
i have used django-rest-framework-social-oauth2 **added this to...
Django Deployment: Where did the Training Wheels Go?
I have been learning django, and I wanted to "deploy" the resume website I have been building to learn django.
Django documentation is clear and concise, and it never takes more than a little google-fu to figure out how to build my project, but there seems to be FAR LESS information about deploying a project.
How do I get this thing online? Do you have a tutorial that helped you?
/r/django
https://redd.it/88zrjv
I have been learning django, and I wanted to "deploy" the resume website I have been building to learn django.
Django documentation is clear and concise, and it never takes more than a little google-fu to figure out how to build my project, but there seems to be FAR LESS information about deploying a project.
How do I get this thing online? Do you have a tutorial that helped you?
/r/django
https://redd.it/88zrjv
reddit
Django Deployment: Where did the Training Wheels Go? • r/django
I have been learning django, and I wanted to "deploy" the resume website I have been building to learn django. Django documentation is clear and...
django-tokenauth: Library for passwordless authentication, authenticates simply by clicking a link in an email
https://github.com/skorokithakis/django-tokenauth
/r/django
https://redd.it/8913t3
https://github.com/skorokithakis/django-tokenauth
/r/django
https://redd.it/8913t3
GitHub
GitHub - skorokithakis/django-tokenauth: Django authentication backend that uses tokens sent over email.
Django authentication backend that uses tokens sent over email. - skorokithakis/django-tokenauth
[N] TensorflowJS - machine learning in javascript. Tensorflow dev summit 2018
https://youtu.be/YB-kfeNIPCE
/r/MachineLearning
https://redd.it/88wr66
https://youtu.be/YB-kfeNIPCE
/r/MachineLearning
https://redd.it/88wr66
YouTube
Machine Learning in JavaScript (TensorFlow Dev Summit 2018)
Nikhil Thorat and Daniel Smilkov discuss TensorFlow.js, which is TensorFlow’s new machine learning framework for JavaScript developers. It supports building ML models in JavaScript, and training and deploying them in browser for execution using WebGL. They…
Procedural dungeon generation in Python
If you are interested in procedural dungeon generation, [here](http://arcade.academy/examples/index.html#procedural-generation) are few examples written in Python.
* [Recursive division maze-generation](http://arcade.academy/examples/maze_recursive.html)
* [Depth first maze-generation](http://arcade.academy/examples/maze_depth_first.html)
* [Procedural Caves - Cellular Automata](http://arcade.academy/examples/procedural_caves_cellular.html)
* [Procedural Caves - Binary Space Partitioning](http://arcade.academy/examples/procedural_caves_bsp.html)
Visualized using the Arcade library, but the maps are generated with a 2D array first, so it should be easy to visualize them using any system.
/r/Python
https://redd.it/88zans
If you are interested in procedural dungeon generation, [here](http://arcade.academy/examples/index.html#procedural-generation) are few examples written in Python.
* [Recursive division maze-generation](http://arcade.academy/examples/maze_recursive.html)
* [Depth first maze-generation](http://arcade.academy/examples/maze_depth_first.html)
* [Procedural Caves - Cellular Automata](http://arcade.academy/examples/procedural_caves_cellular.html)
* [Procedural Caves - Binary Space Partitioning](http://arcade.academy/examples/procedural_caves_bsp.html)
Visualized using the Arcade library, but the maps are generated with a 2D array first, so it should be easy to visualize them using any system.
/r/Python
https://redd.it/88zans
Which is the fastest version of Python?
https://medium.com/@anthonypjshaw/which-is-the-fastest-version-of-python-2ae7c61a6b2b
/r/Python
https://redd.it/88yy9t
https://medium.com/@anthonypjshaw/which-is-the-fastest-version-of-python-2ae7c61a6b2b
/r/Python
https://redd.it/88yy9t
Hacker Noon
Which is the fastest version of Python?
Of course, “it depends”, but what does it depend on and how can you assess which is the fastest version of Python for your application?
[D] Why do people publish to paywalled publications?
Seems like a way to reach half the audience with little benefit.
/r/MachineLearning
https://redd.it/88zuk5
Seems like a way to reach half the audience with little benefit.
/r/MachineLearning
https://redd.it/88zuk5
reddit
[D] Why do people publish to paywalled... • r/MachineLearning
Seems like a way to reach half the audience with little benefit.
Flask and other frameworks for Python that would be in demand in 2018
https://webcase.studio/blog/best-python-frameworks/?utm_source=catalogs&utm_campaign=python
/r/flask
https://redd.it/88zg4r
https://webcase.studio/blog/best-python-frameworks/?utm_source=catalogs&utm_campaign=python
/r/flask
https://redd.it/88zg4r
webcase.studio
Top 5 - Python Web Development Frameworks in 2018
Python is known for the wide variety of frameworks - but which of them can be considered the best Python frameworks in 2018?
w/code: How does visualization in Plotly differ from Seaborn
https://datascienceplus.com/how-does-visualization-in-plotly-differ-from-seaborn/
/r/Python
https://redd.it/896hwz
https://datascienceplus.com/how-does-visualization-in-plotly-differ-from-seaborn/
/r/Python
https://redd.it/896hwz