Here's a quick tutorial on using virtual environments in Jupyter notebook and Python
https://janakiev.com/til/jupyter-virtual-envs/
/r/JupyterNotebooks
https://redd.it/an01e7
https://janakiev.com/til/jupyter-virtual-envs/
/r/JupyterNotebooks
https://redd.it/an01e7
Parametric Thoughts
Using Virtual Environments in Jupyter Notebook and Python
Are you working with Jupyter Notebook and Python? Do you also want to benefit from virtual environments? In this tutorial you will see how to do just that with Anaconda or Virtualenv/venv.
Honestly, just sharing because I'm stoked I figured this out on my own, even though it's very simple.
/r/Python
https://redd.it/anbjyx
/r/Python
https://redd.it/anbjyx
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/anefyq
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/anefyq
reddit
r/Python - What's everyone working on this week?
0 votes and 0 comments so far on Reddit
Which frontend do you prefer with Django?
Hey I am building Django app and I am wondering if React would be good choice for frontend or not.If not, what do you prefer? It's a simple app and only admin will use it but not in Django Admin.
/r/django
https://redd.it/ancuh7
Hey I am building Django app and I am wondering if React would be good choice for frontend or not.If not, what do you prefer? It's a simple app and only admin will use it but not in Django Admin.
/r/django
https://redd.it/ancuh7
reddit
r/django - Which frontend do you prefer with Django?
11 votes and 35 comments so far on Reddit
Free Python books
I recently started learning Python and I’ve come across several great resources, including a number of ebooks that can be read online or downloaded for free. Some are well known, others less. Here’s the list of those books:
* [Python 101](https://python101.pythonlibrary.org/)
* [A Python Book: Beginning Python, Advanced Python, and Python Exercises](http://www.davekuhlman.org/python_book_01.html)
* [Boxes: Your Second Python Book](http://ralsina.gitlab.io/boxes-book/)
* [The Hitchhiker’s Guide to Python!](https://docs.python-guide.org/)
* [Automate the Boring Stuff with Python](https://automatetheboringstuff.com/)
* [Problem Solving with Algorithms and Data Structures using Python](https://interactivepython.org/runestone/static/pythonds/index.html#problem-solving-with-algorithms-and-data-structures-using-python)
* [Python for Scientists and Engineers](https://www.pythonforengineers.com/python-for-scientists-and-engineers/)
* [Think Python: How to Think Like a Computer Scientist](https://greenteapress.com/wp/think-python-2e/)
* [Clean Architectures in Python](https://leanpub.com/clean-architectures-in-python)
* [Teaching and Learning with Jupyter](https://jupyter4edu.github.io/jupyter-edu-book/)
What are your favorite free Python books?
/r/Python
https://redd.it/anfdyh
I recently started learning Python and I’ve come across several great resources, including a number of ebooks that can be read online or downloaded for free. Some are well known, others less. Here’s the list of those books:
* [Python 101](https://python101.pythonlibrary.org/)
* [A Python Book: Beginning Python, Advanced Python, and Python Exercises](http://www.davekuhlman.org/python_book_01.html)
* [Boxes: Your Second Python Book](http://ralsina.gitlab.io/boxes-book/)
* [The Hitchhiker’s Guide to Python!](https://docs.python-guide.org/)
* [Automate the Boring Stuff with Python](https://automatetheboringstuff.com/)
* [Problem Solving with Algorithms and Data Structures using Python](https://interactivepython.org/runestone/static/pythonds/index.html#problem-solving-with-algorithms-and-data-structures-using-python)
* [Python for Scientists and Engineers](https://www.pythonforengineers.com/python-for-scientists-and-engineers/)
* [Think Python: How to Think Like a Computer Scientist](https://greenteapress.com/wp/think-python-2e/)
* [Clean Architectures in Python](https://leanpub.com/clean-architectures-in-python)
* [Teaching and Learning with Jupyter](https://jupyter4edu.github.io/jupyter-edu-book/)
What are your favorite free Python books?
/r/Python
https://redd.it/anfdyh
www.davekuhlman.org
A Python Book: Beginning Python, Advanced Python, and Python Exercises
Flask Email Validation - Stop Nonsense Emails
For example, I get some emails that are clearly nonsense like sfdjhkj@kjh.com...
is there no way to mitigate this or some kind of library/algorithm to verify the validity of an email?
Doesn't have to be 100% of the time just in general.
/r/flask
https://redd.it/aneutz
For example, I get some emails that are clearly nonsense like sfdjhkj@kjh.com...
is there no way to mitigate this or some kind of library/algorithm to verify the validity of an email?
Doesn't have to be 100% of the time just in general.
/r/flask
https://redd.it/aneutz
reddit
r/flask - Flask Email Validation - Stop Nonsense Emails
4 votes and 5 comments so far on Reddit
Goodbye Virtual Environments?
https://medium.com/@grassfedcode/goodbye-virtual-environments-b9f8115bc2b6
/r/Python
https://redd.it/angnjz
https://medium.com/@grassfedcode/goodbye-virtual-environments-b9f8115bc2b6
/r/Python
https://redd.it/angnjz
Medium
Goodbye Virtual Environments?
If you’re a Python developer you’ve likely heard of virtual environments — “a self-contained directory tree that contains a Python…
Python Developers Survey 2018 Results
https://www.jetbrains.com/research/python-developers-survey-2018/
/r/Python
https://redd.it/anjjos
https://www.jetbrains.com/research/python-developers-survey-2018/
/r/Python
https://redd.it/anjjos
JetBrains
Python Developers Survey 2018 Results
Results of the official Python Developers Survey 2018 by Python Software Foundation and JetBrains: more than 20k responses from more than 150 countries.
Full Stack React & Django [1] - Basic REST API
https://www.youtube.com/watch?v=Uyei2iDA4Hs
/r/django
https://redd.it/anks6n
https://www.youtube.com/watch?v=Uyei2iDA4Hs
/r/django
https://redd.it/anks6n
YouTube
Full Stack React & Django [1] - Basic REST API
In part 1 of this series we will setup a Django app and create a REST API with the Django Rest Framework. We will use Postman for API testing.
Sponsor: DevMountain Bootcamp
https://goo.gl/6q0dEa
Code:
https://github.com/bradtraversy/lead_manager_react_django…
Sponsor: DevMountain Bootcamp
https://goo.gl/6q0dEa
Code:
https://github.com/bradtraversy/lead_manager_react_django…
[R] Facebook has released code and pretrained models for Cross-lingual Language Model Pretraining
It's an impressive piece of work that get state-of-the-art results on Cross-lingual Natural Language Inference and unsupervised Machine Translation (even out-performing supervised Machine Translation in some settings).
The model is a cross-lingual implementation of BERT.
PyTorch implementation and pre-trained models: [https://github.com/facebookresearch/XLM](https://github.com/facebookresearch/XLM)
Paper: [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291)
/r/MachineLearning
https://redd.it/anfgwc
It's an impressive piece of work that get state-of-the-art results on Cross-lingual Natural Language Inference and unsupervised Machine Translation (even out-performing supervised Machine Translation in some settings).
The model is a cross-lingual implementation of BERT.
PyTorch implementation and pre-trained models: [https://github.com/facebookresearch/XLM](https://github.com/facebookresearch/XLM)
Paper: [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291)
/r/MachineLearning
https://redd.it/anfgwc
GitHub
GitHub - facebookresearch/XLM: PyTorch original implementation of Cross-lingual Language Model Pretraining.
PyTorch original implementation of Cross-lingual Language Model Pretraining. - facebookresearch/XLM
Discussion: What to call the "main" app in your Django Project?
I'm starting a new project and it will be a collection of Django Apps with their own functionality (as intended by the Django Framework). However, I usually create a home/base/main app for the landing page, all of the base templates, static files, ... What is the preferred way to call this or handle this?
/r/django
https://redd.it/anirli
I'm starting a new project and it will be a collection of Django Apps with their own functionality (as intended by the Django Framework). However, I usually create a home/base/main app for the landing page, all of the base templates, static files, ... What is the preferred way to call this or handle this?
/r/django
https://redd.it/anirli
reddit
r/django - Discussion: What to call the "main" app in your Django Project?
5 votes and 17 comments so far on Reddit
Following Flask production deployment tutorials, how safe is it to host a small scale webshop using Flask?
I want to host a really small scale webshop - only meant for a Facebook group - on my Raspberry Pi. I've read that I need to properly deploy it for production, which I intend to do.
My plan is to store addresses locally and have PayPal take care of the payments.
How safe/unsafe is this? Is there something I oughta know before I make this?
/r/flask
https://redd.it/anjos8
I want to host a really small scale webshop - only meant for a Facebook group - on my Raspberry Pi. I've read that I need to properly deploy it for production, which I intend to do.
My plan is to store addresses locally and have PayPal take care of the payments.
How safe/unsafe is this? Is there something I oughta know before I make this?
/r/flask
https://redd.it/anjos8
reddit
r/flask - Following Flask production deployment tutorials, how safe is it to host a small scale webshop using Flask?
8 votes and 11 comments so far on Reddit
Error in documentation
Hi,
I am a beginner. I was going through the getting started documentation and found some typos and error.
[https://docs.djangoproject.com/en/2.1/intro/tutorial03/#writing-more-views](https://docs.djangoproject.com/en/2.1/intro/tutorial03/#writing-more-views)
def detail(request, question_id):
return HttpResponse("You're looking at question %s." % question_id)
def results(request, question_id):
response = "You're looking at the results of question %s."
return HttpResponse(response % question_id)
def vote(request, question_id):
return HttpResponse("You're voting on question %s." % question_id)
Gives the following error:
return HttpResponse("You're voting on question %s", % question_id)
SyntaxError: invalid syntax
To solve the problem I performed
*return* HttpResponse("You're voting on question %s", question\_id) #excluded the '%' prefixed to question\_id
​
I am using Linux python3.7 django 2.1.5.
Will the changes be made or should I make an official report on their site?
If so, How should I sent the error to the django team.
/r/django
https://redd.it/ano2kr
Hi,
I am a beginner. I was going through the getting started documentation and found some typos and error.
[https://docs.djangoproject.com/en/2.1/intro/tutorial03/#writing-more-views](https://docs.djangoproject.com/en/2.1/intro/tutorial03/#writing-more-views)
def detail(request, question_id):
return HttpResponse("You're looking at question %s." % question_id)
def results(request, question_id):
response = "You're looking at the results of question %s."
return HttpResponse(response % question_id)
def vote(request, question_id):
return HttpResponse("You're voting on question %s." % question_id)
Gives the following error:
return HttpResponse("You're voting on question %s", % question_id)
SyntaxError: invalid syntax
To solve the problem I performed
*return* HttpResponse("You're voting on question %s", question\_id) #excluded the '%' prefixed to question\_id
​
I am using Linux python3.7 django 2.1.5.
Will the changes be made or should I make an official report on their site?
If so, How should I sent the error to the django team.
/r/django
https://redd.it/ano2kr
Built a Portfolio website with Django and Bootstrap
A few days back, I shared about a small blog I built with django [here.](https://www.reddit.com/r/django/comments/adrywf/built_a_simple_blog_with_django_and_bootstrap/)
​
I took the feedbacks I got to work on another project.
​
This time I built a Portfolio website.
​
Here is the link to the project:
[https://chuks-portfolio.herokuapp.com/](https://chuks-portfolio.herokuapp.com/)
​
I also made the source code available:
[https://github.com/coolpythoncodes/portfolio](https://github.com/coolpythoncodes/portfolio)
​
Please, I would appreciate your feedback.
/r/django
https://redd.it/anda3j
A few days back, I shared about a small blog I built with django [here.](https://www.reddit.com/r/django/comments/adrywf/built_a_simple_blog_with_django_and_bootstrap/)
​
I took the feedbacks I got to work on another project.
​
This time I built a Portfolio website.
​
Here is the link to the project:
[https://chuks-portfolio.herokuapp.com/](https://chuks-portfolio.herokuapp.com/)
​
I also made the source code available:
[https://github.com/coolpythoncodes/portfolio](https://github.com/coolpythoncodes/portfolio)
​
Please, I would appreciate your feedback.
/r/django
https://redd.it/anda3j
reddit
r/django - Built a simple blog with Django and Bootstrap
25 votes and 29 comments so far on Reddit
How to Make a Desktop GUI Application in Python?
Nowadays Python is one of the most popular programming languages. Specialists value its universality for all types of the tasks. Today, one of the most important qualities is convenience of command execution, but often developers have to write a relatively simple program, the quality criterion of which is an intuitive graphical interface. You have several ways to do this by means of Python. The following development tools are among the most popular:
* [PyQt](https://pypi.org/project/PyQt5/). The widespread Qt library, which implementations are available in various languages. It’s written in C++ and is cross-platform. This library allows the development of applications that have familiar and ordinary appearance in the general sense of this word.
* [Tkinter](https://docs.python.org/3/library/tkinter.html)**.** This tool is often referred to as standard for developing GUI applications in Python, appeared back in the early 90s of the twentieth century. Due to the long history and ease of use, Tkinter has a rather extensive and active community. It’s thanks to it you can find a large number of semi-finished products or publications in the network and get an answer to any question at specialized forums.
* [WxPython](https://wxpython.org)**.** Another descendant of C++, namely WxPython, links the wxWidgets cross-platform library with Python. In some ways, Tkinter and
/r/Python
https://redd.it/anpkle
Nowadays Python is one of the most popular programming languages. Specialists value its universality for all types of the tasks. Today, one of the most important qualities is convenience of command execution, but often developers have to write a relatively simple program, the quality criterion of which is an intuitive graphical interface. You have several ways to do this by means of Python. The following development tools are among the most popular:
* [PyQt](https://pypi.org/project/PyQt5/). The widespread Qt library, which implementations are available in various languages. It’s written in C++ and is cross-platform. This library allows the development of applications that have familiar and ordinary appearance in the general sense of this word.
* [Tkinter](https://docs.python.org/3/library/tkinter.html)**.** This tool is often referred to as standard for developing GUI applications in Python, appeared back in the early 90s of the twentieth century. Due to the long history and ease of use, Tkinter has a rather extensive and active community. It’s thanks to it you can find a large number of semi-finished products or publications in the network and get an answer to any question at specialized forums.
* [WxPython](https://wxpython.org)**.** Another descendant of C++, namely WxPython, links the wxWidgets cross-platform library with Python. In some ways, Tkinter and
/r/Python
https://redd.it/anpkle
PyPI
PyQt5
Python bindings for the Qt cross platform application toolkit
django-taggit vs PostgreSQL ArrayField - I know the differences, but what are the technical implications
Hey guys.
I'm currently working with django-taggit for my "Tag" fields, because for quick prototyping I just use sqlite. However now I'm almost done and I have to work on a more serious setup. I will be using PostgreSQL as my main production (and dev) database. And I like to use as few external third-party packages as possible. That includes django-taggit. I would like to replace this with a Postgres ArrayField. Since django-taggit uses a `form.save_m2m()` it looks like it just uses a ManyToMany Field. And I understand that also.
But I don't have enough in-depth knowledge. What are the actual technical implications? Are ArrayFields significantly faster? Are there any up/down-sides I'm not seeing for either of the two? Is there even any significant difference between the two?
Thanks so much in advance. I hope this is of interest to others as well.
/r/django
https://redd.it/and0gd
Hey guys.
I'm currently working with django-taggit for my "Tag" fields, because for quick prototyping I just use sqlite. However now I'm almost done and I have to work on a more serious setup. I will be using PostgreSQL as my main production (and dev) database. And I like to use as few external third-party packages as possible. That includes django-taggit. I would like to replace this with a Postgres ArrayField. Since django-taggit uses a `form.save_m2m()` it looks like it just uses a ManyToMany Field. And I understand that also.
But I don't have enough in-depth knowledge. What are the actual technical implications? Are ArrayFields significantly faster? Are there any up/down-sides I'm not seeing for either of the two? Is there even any significant difference between the two?
Thanks so much in advance. I hope this is of interest to others as well.
/r/django
https://redd.it/and0gd
reddit
r/django - django-taggit vs PostgreSQL ArrayField - I know the differences, but what are the technical implications
4 votes and 1 comment so far on Reddit
[D] Sharing my personal resource list for deep learning comprehension
Since I always like to have some theoretical knowledge (often shallow) of modern techniques, I complied this list of (free) courses, textbooks and references for an educational approach to deep learning and neural nets.
* [Deep Learning (CS 1470)](http://cs.brown.edu/courses/cs1470/index.html)
* [Deep Learning Book](https://www.deeplearningbook.org/) [\[GitHub\]](https://github.com/janishar/mit-deep-learning-book-pdf) [\[tutorial\]](http://www.iro.umontreal.ca/~bengioy/talks/lisbon-mlss-19juillet2015.pdf) [\[videos\]](https://www.youtube.com/channel/UCF9O8Vj-FEbRDA5DcDGz-Pg/videos)
* [Dive into Deep Learning](https://d2l.ai/) [\[GitHub\]](https://github.com/d2l-ai/d2l-en) [\[pdf\]](https://en.d2l.ai/d2l-en.pdf) [\[STAT 157\]](http://courses.d2l.ai/berkeley-stat-157/index.html)
* [Neural Network Design](http://hagan.okstate.edu/nnd.html) [\[pdf\]](http://hagan.okstate.edu/NNDesign.pdf)
* [Neural Networks and Deep Learning](http://neuralnetworksanddeeplearning.com/) [\[GitHub\]](https://github.com/mnielsen/neural-networks-and-deep-learning) [\[pdf\]](http://static.latexstudio.net/article/2018/0912/neuralnetworksanddeeplearning.pdf) [\[solutions\]](https://github.com/reachtarunhere/nndl/blob/master/2016-11-22-ch1-sigmoid-2.md)
* [Theories of Deep Learning (STATS 385)](https://stats385.github.io/) [\[videos\]](https://www.researchgate.net/project/Theories-of-Deep-Learning)
* [Theoretical Principles for Deep Learning (IFT 6085)](http://mitliagkas.github.io/ift6085-dl-theory-class-2019/)
Do with it, as you will. Any new books/updates that I'm missing here?
/r/MachineLearning
https://redd.it/anrams
Since I always like to have some theoretical knowledge (often shallow) of modern techniques, I complied this list of (free) courses, textbooks and references for an educational approach to deep learning and neural nets.
* [Deep Learning (CS 1470)](http://cs.brown.edu/courses/cs1470/index.html)
* [Deep Learning Book](https://www.deeplearningbook.org/) [\[GitHub\]](https://github.com/janishar/mit-deep-learning-book-pdf) [\[tutorial\]](http://www.iro.umontreal.ca/~bengioy/talks/lisbon-mlss-19juillet2015.pdf) [\[videos\]](https://www.youtube.com/channel/UCF9O8Vj-FEbRDA5DcDGz-Pg/videos)
* [Dive into Deep Learning](https://d2l.ai/) [\[GitHub\]](https://github.com/d2l-ai/d2l-en) [\[pdf\]](https://en.d2l.ai/d2l-en.pdf) [\[STAT 157\]](http://courses.d2l.ai/berkeley-stat-157/index.html)
* [Neural Network Design](http://hagan.okstate.edu/nnd.html) [\[pdf\]](http://hagan.okstate.edu/NNDesign.pdf)
* [Neural Networks and Deep Learning](http://neuralnetworksanddeeplearning.com/) [\[GitHub\]](https://github.com/mnielsen/neural-networks-and-deep-learning) [\[pdf\]](http://static.latexstudio.net/article/2018/0912/neuralnetworksanddeeplearning.pdf) [\[solutions\]](https://github.com/reachtarunhere/nndl/blob/master/2016-11-22-ch1-sigmoid-2.md)
* [Theories of Deep Learning (STATS 385)](https://stats385.github.io/) [\[videos\]](https://www.researchgate.net/project/Theories-of-Deep-Learning)
* [Theoretical Principles for Deep Learning (IFT 6085)](http://mitliagkas.github.io/ift6085-dl-theory-class-2019/)
Do with it, as you will. Any new books/updates that I'm missing here?
/r/MachineLearning
https://redd.it/anrams
GitHub
GitHub - janishar/mit-deep-learning-book-pdf: MIT Deep Learning Book in PDF format (complete and parts) by Ian Goodfellow, Yoshua…
MIT Deep Learning Book in PDF format (complete and parts) by Ian Goodfellow, Yoshua Bengio and Aaron Courville - janishar/mit-deep-learning-book-pdf
Looking for some Django buddies
Hello everyone!
I started learning web development last year somewhere around January and I've noticed that more I learn, less people are interested when I talk about web stuff. Lately all I get are headnods and "mhm" replies. It kinda sucks because I really enjoy learning these things and would like to share with someone, but my family and friends have zero interest in this stuff.
I've been following this community for a while now and I can see that there are a lot of skilled people that share the same interest as me, so if there's someone who would like to talk with me from time to time, whether you're a guy or a girl, expert or beginner like me, just let me know! :)
I'm from Slovakia, so I'm looking for someone who's preferably from Europe, can speak English, Slovak or Czech language and is at least 18 years old (since I'm 26 and feel like I don't belong in the teen category anymore)..
I'm using Discord for communication, so just message me your Discord tag and I will add you right away. :D
​
Thank you!
​
​
/r/django
https://redd.it/anttdx
Hello everyone!
I started learning web development last year somewhere around January and I've noticed that more I learn, less people are interested when I talk about web stuff. Lately all I get are headnods and "mhm" replies. It kinda sucks because I really enjoy learning these things and would like to share with someone, but my family and friends have zero interest in this stuff.
I've been following this community for a while now and I can see that there are a lot of skilled people that share the same interest as me, so if there's someone who would like to talk with me from time to time, whether you're a guy or a girl, expert or beginner like me, just let me know! :)
I'm from Slovakia, so I'm looking for someone who's preferably from Europe, can speak English, Slovak or Czech language and is at least 18 years old (since I'm 26 and feel like I don't belong in the teen category anymore)..
I'm using Discord for communication, so just message me your Discord tag and I will add you right away. :D
​
Thank you!
​
​
/r/django
https://redd.it/anttdx
reddit
r/django - Looking for some Django buddies
13 votes and 10 comments so far on Reddit
Question about * instead of a line number
Good Afternoon - Really sorry about posting a thread about this but i'm at my wits end here trying to figure this out.
I'm working in Jupyter (new to python) and am simply trying to run any code... at all. I have been unsuccessful. When i put any code in and hit run, an asterisk shows up instead of a line number and Jupyter creates a new line. So i'm expecting \[1\], \[2\], etc and instead i get \[\*\] for any and all types of code i try to run. I haven't been able to run one line of code in Jupyter using either the play button or hotkeys.
Obvi i am a beginner but i've been working with R for a little and wanted to try Python out. Ran across Jupyter from the IBM Coursera program. Anyone know how to fix this? i can't seem to find an answer for this anywhere and its probably something super simple and i'll feel stupid but please help anyone lol......
/r/IPython
https://redd.it/anvisy
Good Afternoon - Really sorry about posting a thread about this but i'm at my wits end here trying to figure this out.
I'm working in Jupyter (new to python) and am simply trying to run any code... at all. I have been unsuccessful. When i put any code in and hit run, an asterisk shows up instead of a line number and Jupyter creates a new line. So i'm expecting \[1\], \[2\], etc and instead i get \[\*\] for any and all types of code i try to run. I haven't been able to run one line of code in Jupyter using either the play button or hotkeys.
Obvi i am a beginner but i've been working with R for a little and wanted to try Python out. Ran across Jupyter from the IBM Coursera program. Anyone know how to fix this? i can't seem to find an answer for this anywhere and its probably something super simple and i'll feel stupid but please help anyone lol......
/r/IPython
https://redd.it/anvisy
reddit
r/IPython - Question about * instead of a line number
1 vote and 0 comments so far on Reddit
Proper way to host user images with Django?
I’m looking for some information on how to keep user uploaded images with Django. It doesn’t seem like I should just keep them in the media folder. What’s the proper way to do it in a production environment with a lot of users? Any links to teach this would be appreciated.
/r/djangolearning
https://redd.it/anvw12
I’m looking for some information on how to keep user uploaded images with Django. It doesn’t seem like I should just keep them in the media folder. What’s the proper way to do it in a production environment with a lot of users? Any links to teach this would be appreciated.
/r/djangolearning
https://redd.it/anvw12
reddit
r/djangolearning - Proper way to host user images with Django?
0 votes and 1 comment so far on Reddit