Creating & Deploying Bokeh Web-Apps from a Jupyter Notebook
https://kyso.io/KyleOS/bokeh-sliders
/r/IPython
https://redd.it/ale6cs
https://kyso.io/KyleOS/bokeh-sliders
/r/IPython
https://redd.it/ale6cs
Kyso
bokeh-sliders
Quick-Fire Guide in Setting Up a Simple Bokeh App
Azure notebook running extremely slow, stuck on loading and not running cells.
I'm doing a course on EDX and its ran through Azure Notebooks. As said in the title it takes a really long time to load, will spend about 5-10 mins stuck on loading screen and sometimes unable to run cells. Any idea whats causing this?
/r/JupyterNotebooks
https://redd.it/al8ahb
I'm doing a course on EDX and its ran through Azure Notebooks. As said in the title it takes a really long time to load, will spend about 5-10 mins stuck on loading screen and sometimes unable to run cells. Any idea whats causing this?
/r/JupyterNotebooks
https://redd.it/al8ahb
reddit
r/JupyterNotebooks - Azure notebook running extremely slow, stuck on loading and not running cells.
2 votes and 1 comment so far on Reddit
I Created an Arc Reactor! ...Then my wife took it. [x-post from /r/circuitpython]
https://anthonyfox.io/posts/arc-reactor/
/r/Python
https://redd.it/ale8il
https://anthonyfox.io/posts/arc-reactor/
/r/Python
https://redd.it/ale8il
anthonyfox.io
I Created an Arc Reactor! - Anthony Fox's Blog
...And then my wife took it.
First timer ideas?
I'm about to start sentdex's new tutorial on django and I don't really want to do exactly what he does. What can I create that's simple and works and could potentially give me the chance to do fancy stuff
/r/django
https://redd.it/aldzct
I'm about to start sentdex's new tutorial on django and I don't really want to do exactly what he does. What can I create that's simple and works and could potentially give me the chance to do fancy stuff
/r/django
https://redd.it/aldzct
reddit
r/django - First timer ideas?
0 votes and 6 comments so far on Reddit
I wrote a program that downloads all my wallpapers and shuffles them!
Let me preface this with I'm a Security Analyst and not a programmer in anyway. My linting lights up like a Christmas tree.
​
Check it out! : [https://github.com/getsec/AutoWallPaper](https://github.com/getsec/AutoWallPaper)
​
I wrote a python script that will go to wallhaven and download what I want and how many pages of wallpapers, save them to my local machine, and I use another script that will shuffle them whenever I start a new shell. You can put it in your crontab too. Next is to work to ensure no NSFW images get downloaded :)
/r/Python
https://redd.it/alk08r
Let me preface this with I'm a Security Analyst and not a programmer in anyway. My linting lights up like a Christmas tree.
​
Check it out! : [https://github.com/getsec/AutoWallPaper](https://github.com/getsec/AutoWallPaper)
​
I wrote a python script that will go to wallhaven and download what I want and how many pages of wallpapers, save them to my local machine, and I use another script that will shuffle them whenever I start a new shell. You can put it in your crontab too. Next is to work to ensure no NSFW images get downloaded :)
/r/Python
https://redd.it/alk08r
GitHub
getsec/AutoWallPaper
Automatically downloads new wallpapers from wallhaven - getsec/AutoWallPaper
Undesirably creating new cells
I like to use Jupyter as a quick interface for writing, debugging, and running programs quickly. I don't like to use multiple cells, since this isn't a feature that is present in many other IDEs.
However, whenever I run my program with Control-Enter, it defaults to creating a new cell. Is there any way to turn this off? Does this bug anyone else?
/r/JupyterNotebooks
https://redd.it/al5oae
I like to use Jupyter as a quick interface for writing, debugging, and running programs quickly. I don't like to use multiple cells, since this isn't a feature that is present in many other IDEs.
However, whenever I run my program with Control-Enter, it defaults to creating a new cell. Is there any way to turn this off? Does this bug anyone else?
/r/JupyterNotebooks
https://redd.it/al5oae
reddit
r/JupyterNotebooks - Undesirably creating new cells
0 votes and 2 comments so far on Reddit
How to make ecommerce in django with shopify?
Hi guys, i am trying to make an ecommerce web site. I dont want to use shopify's store web. Hence i need to integrate shopify to my django application. But thats is confusing. If i want to integrate shopify, i need to connect my django app to shopify right? based on research shopify's python client helps on this. Also but shopify dashboard will post the products and i need to show them on my django app right, even then when user click add to cart button what should happen. if i use shopify 's dashboard for creating products do i really need database app like django?, should i use just js frameworks such as React, Angular, Ember? in this case?
​
Update:// I built MVP django app(add products, customer registration, login, see product details)
/r/django
https://redd.it/alkw2g
Hi guys, i am trying to make an ecommerce web site. I dont want to use shopify's store web. Hence i need to integrate shopify to my django application. But thats is confusing. If i want to integrate shopify, i need to connect my django app to shopify right? based on research shopify's python client helps on this. Also but shopify dashboard will post the products and i need to show them on my django app right, even then when user click add to cart button what should happen. if i use shopify 's dashboard for creating products do i really need database app like django?, should i use just js frameworks such as React, Angular, Ember? in this case?
​
Update:// I built MVP django app(add products, customer registration, login, see product details)
/r/django
https://redd.it/alkw2g
reddit
r/django - How to make ecommerce in django with shopify?
7 votes and 2 comments so far on Reddit
What are the biggest problems solved in corporations with Django?
Maybe I want to be fullstack expert on the front, so I would want to work with things like e-commerce, cms and these more common jobs.
However, I do not see vacancies requiring the most well-known python frameworks (wagtail cms, saleor and oscar for e-commerce) for these jobs. Unlike PHP, where there are many openings for wordpress, laravel and other e-commerce frameworks.
With that objective, is it worth keeping Django and using it to solve different problems like that? Or should I go to PHP!
/r/django
https://redd.it/alml4m
Maybe I want to be fullstack expert on the front, so I would want to work with things like e-commerce, cms and these more common jobs.
However, I do not see vacancies requiring the most well-known python frameworks (wagtail cms, saleor and oscar for e-commerce) for these jobs. Unlike PHP, where there are many openings for wordpress, laravel and other e-commerce frameworks.
With that objective, is it worth keeping Django and using it to solve different problems like that? Or should I go to PHP!
/r/django
https://redd.it/alml4m
reddit
r/django - What are the biggest problems solved in corporations with Django?
2 votes and 2 comments so far on Reddit
Save generated password to txt file
How do i save the generated password by this code to a txt file?
import string
from random import *
characters = string.ascii_letters + string.digits
password = "".join(choice(characters) for x in
range(randint(16,20)))
print (password)
/r/Python
https://redd.it/alo6vs
How do i save the generated password by this code to a txt file?
import string
from random import *
characters = string.ascii_letters + string.digits
password = "".join(choice(characters) for x in
range(randint(16,20)))
print (password)
/r/Python
https://redd.it/alo6vs
reddit
r/Python - Save generated password to txt file
1 vote and 0 comments so far on Reddit
I wrote a tutorial on developing a systemd service in Python
https://github.com/torfsen/python-systemd-tutorial
/r/Python
https://redd.it/aloznv
https://github.com/torfsen/python-systemd-tutorial
/r/Python
https://redd.it/aloznv
GitHub
GitHub - torfsen/python-systemd-tutorial: A tutorial for writing a systemd service in Python
A tutorial for writing a systemd service in Python - torfsen/python-systemd-tutorial
Modern Front-End Testing with Cypress (flask + react)
https://testdriven.io/blog/modern-frontend-testing-with-cypress/#.XFL-v-_TbZc.reddit
/r/flask
https://redd.it/alpol9
https://testdriven.io/blog/modern-frontend-testing-with-cypress/#.XFL-v-_TbZc.reddit
/r/flask
https://redd.it/alpol9
testdriven.io
Modern Front-End Testing with Cypress
This post looks at how to introduce Cypress into your test-driven development workflow.
Using online Postgres database with Flask
Hello guys,
So I was building my website following some tutorial and it was using some weird way of dealing with database. Though I don't really find a lot of info about it I was able to get a hang of it and build my site. But now I want to go with SQLAlchemy (ORM, I think it's called).
How my db query looks now (not sure how to call it):
>db.execute("SELECT * FROM testimonials ORDER BY RANDOM() LIMIT 10").fetchall()
what I need it to be like (Flask SQLAlchemy):
>peter = User.query.filter_by(username='peter').first()
I want to access my existing db online, My db is on heroku.
Here are my current setup which I want to switch fromm. It has a long string to database (which is online and NOT local):
>engine = create_engine(os.getenv("DATABASE_URL") or 'postgres://long long url string')
I cannot figure it out how to connect to remote db (on heroku) and basically redo the code so it all be flask SQLAlchemy like syntax.
/r/flask
https://redd.it/alm0se
Hello guys,
So I was building my website following some tutorial and it was using some weird way of dealing with database. Though I don't really find a lot of info about it I was able to get a hang of it and build my site. But now I want to go with SQLAlchemy (ORM, I think it's called).
How my db query looks now (not sure how to call it):
>db.execute("SELECT * FROM testimonials ORDER BY RANDOM() LIMIT 10").fetchall()
what I need it to be like (Flask SQLAlchemy):
>peter = User.query.filter_by(username='peter').first()
I want to access my existing db online, My db is on heroku.
Here are my current setup which I want to switch fromm. It has a long string to database (which is online and NOT local):
>engine = create_engine(os.getenv("DATABASE_URL") or 'postgres://long long url string')
I cannot figure it out how to connect to remote db (on heroku) and basically redo the code so it all be flask SQLAlchemy like syntax.
/r/flask
https://redd.it/alm0se
reddit
r/flask - Using online Postgres database with Flask
8 votes and 10 comments so far on Reddit
Learning python as part of my physics course at university. It’s fun!
/r/Python
https://redd.it/alpaub
/r/Python
https://redd.it/alpaub
Interviewing a "Django Expert"
As in the title I'm interviewing a self-professed Django and core Python "expert" for a position as the second full-stack developer at the 60-person company I work at tomorrow.
I've already given him a phone-screen and a simple development homework assignment, and to be fair he was impressive!
The Homework assignment was to build a Django system with a simple form to upload individual CSV files which then get parsed for relevant information, data stored in relevant models, then allows the data to be combined and viewed in a tabular format which must have pagination but should "include any other features you see fit" (left purposefully vague to see if the candidates had true front-end experience (knew of / could use relevant JS libraries) or can otherwise make good design decisions (e.g. responsiveness, filtering & searching, default ordering, async loading of data etc.)
All candidates produce solutions that match the bare minimum and give you something to talk about together in the interview, but it's how they go above and beyond that allow you to differentiate them, e.g. code structure, optimisation, test coverage, error handling, PEP8 compliance and the front-end and design things mentioned above.
The candidate I'm seeing tomorrow managed all of the
/r/django
https://redd.it/alru1r
As in the title I'm interviewing a self-professed Django and core Python "expert" for a position as the second full-stack developer at the 60-person company I work at tomorrow.
I've already given him a phone-screen and a simple development homework assignment, and to be fair he was impressive!
The Homework assignment was to build a Django system with a simple form to upload individual CSV files which then get parsed for relevant information, data stored in relevant models, then allows the data to be combined and viewed in a tabular format which must have pagination but should "include any other features you see fit" (left purposefully vague to see if the candidates had true front-end experience (knew of / could use relevant JS libraries) or can otherwise make good design decisions (e.g. responsiveness, filtering & searching, default ordering, async loading of data etc.)
All candidates produce solutions that match the bare minimum and give you something to talk about together in the interview, but it's how they go above and beyond that allow you to differentiate them, e.g. code structure, optimisation, test coverage, error handling, PEP8 compliance and the front-end and design things mentioned above.
The candidate I'm seeing tomorrow managed all of the
/r/django
https://redd.it/alru1r
reddit
r/django - Interviewing a "Django Expert"
12 votes and 17 comments so far on Reddit
Anyone in Denver looking for a developer job for a company that uses django in its stack?
https://www.indeed.com/m/viewjob?jk=43669ca9dfabca40
/r/django
https://redd.it/alq3u6
https://www.indeed.com/m/viewjob?jk=43669ca9dfabca40
/r/django
https://redd.it/alq3u6
URLs can be defined at request time? How is this typically used?
I was reading the django docs recently and was surprised by a feature included in the [URL dispatcher](https://docs.djangoproject.com/en/2.1/topics/http/urls/):
>Django determines the root URLconf module to use. Ordinarily, this is the value of the ROOT\_URLCONF setting, but if the incoming HttpRequest object has a urlconf attribute (set by middleware), its value will be used in place of the ROOT\_URLCONF setting.
Has anyone seen or used this in practice?
I can imagine that it could used used to lock down a site for unauthenticated users, throwing 404s instead of 403s. What other use-cases are there?
/r/django
https://redd.it/alwlt4
I was reading the django docs recently and was surprised by a feature included in the [URL dispatcher](https://docs.djangoproject.com/en/2.1/topics/http/urls/):
>Django determines the root URLconf module to use. Ordinarily, this is the value of the ROOT\_URLCONF setting, but if the incoming HttpRequest object has a urlconf attribute (set by middleware), its value will be used in place of the ROOT\_URLCONF setting.
Has anyone seen or used this in practice?
I can imagine that it could used used to lock down a site for unauthenticated users, throwing 404s instead of 403s. What other use-cases are there?
/r/django
https://redd.it/alwlt4
reddit
r/django - URLs can be defined at request time? How is this typically used?
0 votes and 1 comment so far on Reddit
Creating a GUI as a Local Web App Using Flask
https://github.com/Fledermann/code_salad/blob/master/code_salad/rattle/index.rst
/r/Python
https://redd.it/aluvl5
https://github.com/Fledermann/code_salad/blob/master/code_salad/rattle/index.rst
/r/Python
https://redd.it/aluvl5
GitHub
Fledermann/code_salad
Commented and illustrated python code conglomeration - Fledermann/code_salad
[AF] Avoiding "mixed content" when running Flask app in Docker container
I've been working on an application that uses Flask as a RESTful API which is consumed by a Vue.js front-end. I've just finished converting everything into 3 seperate Docker containers: One for Flask ([Built using this as my base image](https://github.com/tiangolo/meinheld-gunicorn-flask-docker)), one for the front-end, and one for MySQL. Everything is configured for access by reverse proxy using nginx, which is where I do all of my SSL termination.
In my initial testing, I'm able to send and receive data from my API endpoints using curl / Invoke-RestMethod just fine. However, when trying to go through the front-end, the browsers I've tested on complain about data coming from the API as not being encrypted. As a result, my login screen which depends on getting a session token back from the API won't work. My nginx configuration is set up so any requests for http:// / 80 get redirected to 443. The requests are then proxy-passed to each corresponding container which is mapped to port 80 on the inside. All of my API calls in the front-end reference https:// in their paths.
Is this is something I can fix in gunicorn / Flask, or do I need to modify my nginx
/r/flask
https://redd.it/alwrb8
I've been working on an application that uses Flask as a RESTful API which is consumed by a Vue.js front-end. I've just finished converting everything into 3 seperate Docker containers: One for Flask ([Built using this as my base image](https://github.com/tiangolo/meinheld-gunicorn-flask-docker)), one for the front-end, and one for MySQL. Everything is configured for access by reverse proxy using nginx, which is where I do all of my SSL termination.
In my initial testing, I'm able to send and receive data from my API endpoints using curl / Invoke-RestMethod just fine. However, when trying to go through the front-end, the browsers I've tested on complain about data coming from the API as not being encrypted. As a result, my login screen which depends on getting a session token back from the API won't work. My nginx configuration is set up so any requests for http:// / 80 get redirected to 443. The requests are then proxy-passed to each corresponding container which is mapped to port 80 on the inside. All of my API calls in the front-end reference https:// in their paths.
Is this is something I can fix in gunicorn / Flask, or do I need to modify my nginx
/r/flask
https://redd.it/alwrb8
GitHub
GitHub - tiangolo/meinheld-gunicorn-flask-docker: Docker image with Meinheld and Gunicorn for Flask applications in Python.
Docker image with Meinheld and Gunicorn for Flask applications in Python. - tiangolo/meinheld-gunicorn-flask-docker
This media is not supported in your browser
VIEW IN TELEGRAM
[Pytorch+OpenCV] My implementation of QuickDraw - an online game developed by Google (Source code: https://github.com/vietnguyen91/QuickDraw)
/r/IPython
https://redd.it/am0366
/r/IPython
https://redd.it/am0366
Suggestions for junior developers to move step forward
Hello, is there any suggestions for a junior developer?
As a junior Python/Django developer, I am searching ways to improve myself, but I am a bit confused. I think I learned most of the technical details of Django, but I am struggling about architectural design of a project and tech stacks to choose for it. What are your suggestions for a newbie like me? Learning different technologies(docker, graphql etc.) or adding some front end skills?
/r/django
https://redd.it/am2hrv
Hello, is there any suggestions for a junior developer?
As a junior Python/Django developer, I am searching ways to improve myself, but I am a bit confused. I think I learned most of the technical details of Django, but I am struggling about architectural design of a project and tech stacks to choose for it. What are your suggestions for a newbie like me? Learning different technologies(docker, graphql etc.) or adding some front end skills?
/r/django
https://redd.it/am2hrv
reddit
r/django - Suggestions for junior developers to move step forward
1 vote and 0 comments so far on Reddit
Made use of my Python knowledge professionally for the first time!
I’m a mechanical engineer, but love learning new things. In the last few years, I’ve taken several edX courses on python, and loved learning about it. I generally just tinker around keeping the basics fresh, but recently I had an opportunity to speed up some data analysis at work, and was able to use python to do it!
As part of our testing, we generate some large csv files (generally 1-4 gb), which were a real pain in the ass to work with in excel. Using python and pandas, I wrote a short piece of code (200 lines) to parse our data, strip out the junk, and plot it into a presentable form. Now there are like 5 people using it on a regular basis!
This is a big deal for me so I wanted to share it. Even dumb mech e’s can use computers!
/r/Python
https://redd.it/am0opt
I’m a mechanical engineer, but love learning new things. In the last few years, I’ve taken several edX courses on python, and loved learning about it. I generally just tinker around keeping the basics fresh, but recently I had an opportunity to speed up some data analysis at work, and was able to use python to do it!
As part of our testing, we generate some large csv files (generally 1-4 gb), which were a real pain in the ass to work with in excel. Using python and pandas, I wrote a short piece of code (200 lines) to parse our data, strip out the junk, and plot it into a presentable form. Now there are like 5 people using it on a regular basis!
This is a big deal for me so I wanted to share it. Even dumb mech e’s can use computers!
/r/Python
https://redd.it/am0opt
reddit
r/Python - Made use of my Python knowledge professionally for the first time!
331 votes and 60 comments so far on Reddit