From ‘R vs Python’ to ‘R and Python’: Leveraging the best of both ‘Python and R’ in a single project.
https://towardsdatascience.com/from-r-vs-python-to-r-and-python-aa25db33ce17
/r/Python
https://redd.it/aymayq
https://towardsdatascience.com/from-r-vs-python-to-r-and-python-aa25db33ce17
/r/Python
https://redd.it/aymayq
Medium
From ‘R vs Python’ to ‘R and Python’
Choosing Programming language based on your needs rather than popularity.
What is the recommended way to install and manage Django?
Hello all, I recently started teaching myself python and have found my way to django and I have a couple questions.
I am running Devuan Ascii (basically debian stretch). I have installed pip3. I messed up doing this once already mostly because there are so many new things I'm learning I haven't quite learned how to manage what what way haha.
So here I am starting fresh. So my questions are:
1) Should I install django through my distributions repos? Or through pip?
2) When should I upgrade pip through pip vs through my distributions package manager? I have seen conflicting recommendations on other forums. I feel like I should stick with my distro repos for upgrades, because I suspect that my following a tutorial that had me upgrade pip with pip after having initially installed from distro repos is what caused the issues I had before
​
Any input would be appreciated!
/r/django
https://redd.it/ayncaw
Hello all, I recently started teaching myself python and have found my way to django and I have a couple questions.
I am running Devuan Ascii (basically debian stretch). I have installed pip3. I messed up doing this once already mostly because there are so many new things I'm learning I haven't quite learned how to manage what what way haha.
So here I am starting fresh. So my questions are:
1) Should I install django through my distributions repos? Or through pip?
2) When should I upgrade pip through pip vs through my distributions package manager? I have seen conflicting recommendations on other forums. I feel like I should stick with my distro repos for upgrades, because I suspect that my following a tutorial that had me upgrade pip with pip after having initially installed from distro repos is what caused the issues I had before
​
Any input would be appreciated!
/r/django
https://redd.it/ayncaw
reddit
r/django - What is the recommended way to install and manage Django?
0 votes and 4 comments so far on Reddit
firebase for server UI
I have a flask app which is the backend and has an Android client. How can i use firebase to show notification on the web UI (Backend UI). Does firebase allow sending notification to only clients (Android, IOS, Web) ?
/r/flask
https://redd.it/aym6c5
I have a flask app which is the backend and has an Android client. How can i use firebase to show notification on the web UI (Backend UI). Does firebase allow sending notification to only clients (Android, IOS, Web) ?
/r/flask
https://redd.it/aym6c5
reddit
r/flask - firebase for server UI
3 votes and 0 comments so far on Reddit
400GB data-set of Conversational Audio. (Unlabeled) Cross-post from r/NLP [Project]
New here. Currently working on a project to explore the abilities of the transformer architecture to elaborate from data similar to how Open AI's release with GPT-2 does for text. I have scrapped about 400GB of conversational audio data with most files in both .ogg and .mp3 from podcasts and audio books available on [archive.org](https://archive.org). I would be happy to share with anyone that is interested.
​
Here is a link to the readme for my project for those interested in that: [https://github.com/gittb/audiosandbox/blob/master/README.md](https://github.com/gittb/audiosandbox/blob/master/README.md)
​
If anyone has any knowledge into how I would possibly encode an STFT array similar to how text vectors are fed to the GPT-2 model I would love to hear your approach. I'm a current student in college and always looking for explanations and viewpoints.
​
Data Update: Due to the large amount of demand for the data-set, I will be publishing AWS links here tomorrow (Friday) around 2PM Central Time in 50GB chunks, this should enable everyone that wants the data access without compromising the utility of my machine. I plan on hosting the data for 3 months.
/r/MachineLearning
https://redd.it/ayl3wb
New here. Currently working on a project to explore the abilities of the transformer architecture to elaborate from data similar to how Open AI's release with GPT-2 does for text. I have scrapped about 400GB of conversational audio data with most files in both .ogg and .mp3 from podcasts and audio books available on [archive.org](https://archive.org). I would be happy to share with anyone that is interested.
​
Here is a link to the readme for my project for those interested in that: [https://github.com/gittb/audiosandbox/blob/master/README.md](https://github.com/gittb/audiosandbox/blob/master/README.md)
​
If anyone has any knowledge into how I would possibly encode an STFT array similar to how text vectors are fed to the GPT-2 model I would love to hear your approach. I'm a current student in college and always looking for explanations and viewpoints.
​
Data Update: Due to the large amount of demand for the data-set, I will be publishing AWS links here tomorrow (Friday) around 2PM Central Time in 50GB chunks, this should enable everyone that wants the data access without compromising the utility of my machine. I plan on hosting the data for 3 months.
/r/MachineLearning
https://redd.it/ayl3wb
UpdateView limit field items
I have a generic UpdateView with a dropdown, but I only want to show items that belong to the current user. How would I go about this? Very new to this, thanks.
/r/djangolearning
https://redd.it/ay6857
I have a generic UpdateView with a dropdown, but I only want to show items that belong to the current user. How would I go about this? Very new to this, thanks.
/r/djangolearning
https://redd.it/ay6857
reddit
r/djangolearning - UpdateView limit field items
3 votes and 4 comments so far on Reddit
Test-Driven Development: Still a little confused...
I was going through the tutorial in the Django documentation and one of the last things covered is tests. The tutorial mentions a bug in the code and then writing a test to fix the bug. The recommendation is to create tests and then write/re-factor code until the test passes. My confusion is around how one would know what tests to create in the first place. I think things just haven't "clicked" for me yet.
Do you generally write a basic placeholder function, then write a detailed test for what output you want to get based on certain inputs, then fill out the function until the test passes? Any clarification on how you approach tests would be greatly appreciated.
/r/django
https://redd.it/ayrtjw
I was going through the tutorial in the Django documentation and one of the last things covered is tests. The tutorial mentions a bug in the code and then writing a test to fix the bug. The recommendation is to create tests and then write/re-factor code until the test passes. My confusion is around how one would know what tests to create in the first place. I think things just haven't "clicked" for me yet.
Do you generally write a basic placeholder function, then write a detailed test for what output you want to get based on certain inputs, then fill out the function until the test passes? Any clarification on how you approach tests would be greatly appreciated.
/r/django
https://redd.it/ayrtjw
reddit
r/django - Test-Driven Development: Still a little confused...
7 votes and 9 comments so far on Reddit
Python *args and **kwargs Made Easy
\*args and \*\*kwargs may seem scary, but the truth is that they are not that difficult to grasp and have the power to grant your functions with flexibility and readability.
​
[Python \*args and \*\*kwargs Made Easy](https://www.pythoncheatsheet.org/blog/python-easy-args-kwargs)
/r/Python
https://redd.it/ayr1mf
\*args and \*\*kwargs may seem scary, but the truth is that they are not that difficult to grasp and have the power to grant your functions with flexibility and readability.
​
[Python \*args and \*\*kwargs Made Easy](https://www.pythoncheatsheet.org/blog/python-easy-args-kwargs)
/r/Python
https://redd.it/ayr1mf
www.pythoncheatsheet.org
Python Cheatsheet
The Python Cheatsheet
Another video on discovering hidden APIs with python is here! This time a bit more challenging, a bit more fun!
https://www.youtube.com/watch?v=6zge0N962aw
/r/Python
https://redd.it/ayofit
https://www.youtube.com/watch?v=6zge0N962aw
/r/Python
https://redd.it/ayofit
YouTube
Discovering Hidden APIs | Part-2 (LectureNotes Note Material API)
As a continuation of the "Discovering Hidden APIs" series, we are gonna discover & explore a more challenging API in this video which requires CSRF Token as a request header!
Code: https://github.com/nikhilkumarsingh/discovering-hidden-apis/blob/master/…
Code: https://github.com/nikhilkumarsingh/discovering-hidden-apis/blob/master/…
Sentence Similarity in Python using Doc2Vec
https://kanoki.org/2019/03/07/sentence-similarity-in-python-using-doc2vec/
/r/Python
https://redd.it/ayrbw6
https://kanoki.org/2019/03/07/sentence-similarity-in-python-using-doc2vec/
/r/Python
https://redd.it/ayrbw6
reddit
r/Python - Sentence Similarity in Python using Doc2Vec
25 votes and 0 comments so far on Reddit
[D] Are the connections between deep learning and neuroscience still relevant?
I think it's a pretty common belief here that modern deep learning research has moved away from being inspired by neuroscience, and I would say I was also, until recently, under this belief. However, after reading Moheb Costandi's excellent *Neuroplasticity*, it made me rethink that a bit.
Although I don't think most modern DL research is directly inspired by neuroscience, there are some interesting connections I hadn't realized before. For example:
* ResNet: The idea of a gradient super-highway is not so unlike the importance of signal propagation in Long Term Potentiation (LTP), which is thought to underlie learning and memory in the brain. Some researchers also believe that retrograde signaling happens in LTP, meaning that the LTP signal is back-propagated to the instigating pre-synaptic neuron. Obviously, the connection with back-propagation in DL is clear, but backprop is not so much a new/modern technique.
* Transfer Learning: The ability of neuroplasticity in brain-injured or dear/blind peoples allows specialized neural regions to adapt and perform tasks outside their specialized region. For example, some blind people use their visual cortex more during language processing than the control.
* Capsule Networks: Actually indeed inspired by biology, these networks take a routing approach to visual classification. This
/r/MachineLearning
https://redd.it/ayvxvc
I think it's a pretty common belief here that modern deep learning research has moved away from being inspired by neuroscience, and I would say I was also, until recently, under this belief. However, after reading Moheb Costandi's excellent *Neuroplasticity*, it made me rethink that a bit.
Although I don't think most modern DL research is directly inspired by neuroscience, there are some interesting connections I hadn't realized before. For example:
* ResNet: The idea of a gradient super-highway is not so unlike the importance of signal propagation in Long Term Potentiation (LTP), which is thought to underlie learning and memory in the brain. Some researchers also believe that retrograde signaling happens in LTP, meaning that the LTP signal is back-propagated to the instigating pre-synaptic neuron. Obviously, the connection with back-propagation in DL is clear, but backprop is not so much a new/modern technique.
* Transfer Learning: The ability of neuroplasticity in brain-injured or dear/blind peoples allows specialized neural regions to adapt and perform tasks outside their specialized region. For example, some blind people use their visual cortex more during language processing than the control.
* Capsule Networks: Actually indeed inspired by biology, these networks take a routing approach to visual classification. This
/r/MachineLearning
https://redd.it/ayvxvc
reddit
r/MachineLearning - [D] Are the connections between deep learning and neuroscience still relevant?
87 votes and 26 comments so far on Reddit
The easiest way to send emails with Django (using SES from AWS)
https://hackernoon.com/the-easiest-way-to-send-emails-with-django-using-ses-from-aws-62f3d3d33efd
/r/django
https://redd.it/ayuwne
https://hackernoon.com/the-easiest-way-to-send-emails-with-django-using-ses-from-aws-62f3d3d33efd
/r/django
https://redd.it/ayuwne
Hackernoon
The easiest way to send emails with Django (using SES from AWS) | HackerNoon
Do you want to send emails in your application? Notifications, newsletters, promotions, there are so many reasons to send emails.
Remote Oscilloscope Operation with Python and VISA
https://mindchasers.com/dev/remote-scope-python
/r/Python
https://redd.it/ayzyqy
https://mindchasers.com/dev/remote-scope-python
/r/Python
https://redd.it/ayzyqy
Mindchasers
Remote Oscilloscope Operation with Python and VISA
Example Python code is provided to perform basic remote operations with a Rohde and Schwarz RTO1044 Oscilloscope including waveform capture, display, and FFT.
How to share my REST API?
Hi.
I'm new to REST API and I just created some API for my blog but I want share it with someone to work with in front side with react.
How Can I share it? because if I give him the project It's wrong surly. cause he should Install python django pipenv and so on. There must be a way.
/r/django
https://redd.it/az0r8x
Hi.
I'm new to REST API and I just created some API for my blog but I want share it with someone to work with in front side with react.
How Can I share it? because if I give him the project It's wrong surly. cause he should Install python django pipenv and so on. There must be a way.
/r/django
https://redd.it/az0r8x
reddit
r/django - How to share my REST API?
0 votes and 3 comments so far on Reddit
Python looping through multiple receipts of users, and printing the output content with printer?
How can i do that with django and python.
I found printd library and its printURL function but it does not work in a good way. I looking a new solution for me. I tried to make a loop and use this function.
Printd library : [https://github.com/joseluisq/printd](https://github.com/joseluisq/printd)
​
I have a system where users pay their debts. And i need to print receipts of users. At the end of the month, i will send them their receipts.
/r/django
https://redd.it/az16nd
How can i do that with django and python.
I found printd library and its printURL function but it does not work in a good way. I looking a new solution for me. I tried to make a loop and use this function.
Printd library : [https://github.com/joseluisq/printd](https://github.com/joseluisq/printd)
​
I have a system where users pay their debts. And i need to print receipts of users. At the end of the month, i will send them their receipts.
/r/django
https://redd.it/az16nd
GitHub
GitHub - joseluisq/printd: Print HTML elements or pages in modern browsers.
Print HTML elements or pages in modern browsers. Contribute to joseluisq/printd development by creating an account on GitHub.
High Performance Data Processing in Python
https://www.youtube.com/watch?v=TpEh5LVo93o
/r/Python
https://redd.it/az1cbd
https://www.youtube.com/watch?v=TpEh5LVo93o
/r/Python
https://redd.it/az1cbd
YouTube
High Performance Data Processing in Python
Social Network for Developers ☞ https://morioh.com Developers Chat Channel ☞ https://discord.gg/KAe3AnN Learn to code for free and get a developer job ☞ http...
I teach Python in realtime, using Live YT / FB Live and a Chrome extension. I'll expand to reddit if this post gains interest.
Hi r/python,
Redditor of 10+ years here.
I've started teaching live & realtime, using Youtube Live & Facebook Live, and an extension-based IDE.
The group sessions are lots of fun. You can find one [here](https://www.facebook.com/codebasetech/videos/400550887157128).
So far I'm on meetup.com, and Facebook. Reddit is my next big step (please be nice to me, i've invested a lot of my time and effort into this).
I do have paying members, but am putting out content for free, and am not entirely decided on whether to be a paying service or a free service (only been up since November).
You can either join us on Codebase for a live Python session at 7pm London time this Sunday: [https://fb.com/codebasetech](https://fb.com/codebasetech) or if this post gains enough traction, i'll see if i can embed a live video in reddit, so we can have live sessions either in this sub, or in /r/codebase.
Would love to hear your thoughts.
Thanks,
cpplinuxdude
/r/Python
https://redd.it/az3ikn
Hi r/python,
Redditor of 10+ years here.
I've started teaching live & realtime, using Youtube Live & Facebook Live, and an extension-based IDE.
The group sessions are lots of fun. You can find one [here](https://www.facebook.com/codebasetech/videos/400550887157128).
So far I'm on meetup.com, and Facebook. Reddit is my next big step (please be nice to me, i've invested a lot of my time and effort into this).
I do have paying members, but am putting out content for free, and am not entirely decided on whether to be a paying service or a free service (only been up since November).
You can either join us on Codebase for a live Python session at 7pm London time this Sunday: [https://fb.com/codebasetech](https://fb.com/codebasetech) or if this post gains enough traction, i'll see if i can embed a live video in reddit, so we can have live sessions either in this sub, or in /r/codebase.
Would love to hear your thoughts.
Thanks,
cpplinuxdude
/r/Python
https://redd.it/az3ikn
Facebook
Codebase
Codebase was live.
Python Code Generation Tools
What do you guys use to generate Python code? I saw that a lot of people just use Jinja2 with some templates, which looks simple and powerful. You still have to generate the environments and write the templates. Now I'm looking around whether someone already did the work of generalizing that step (thinking about fields in classes, inheritance, constructors etc. and how to map that data to the environment) or whether I have to do it myself.
TLDR: Are there simple but powerful Python code generation "frameworks"?
EDIT:
* I found [pymultigen](https://pypi.org/project/pymultigen/). Seems like it helps with creating code in multiple files.
* Looks like [pyecoregen](https://github.com/pyecore/pyecoregen) is a specialized multi-file code generator based on pymultigen.
/r/Python
https://redd.it/az4mce
What do you guys use to generate Python code? I saw that a lot of people just use Jinja2 with some templates, which looks simple and powerful. You still have to generate the environments and write the templates. Now I'm looking around whether someone already did the work of generalizing that step (thinking about fields in classes, inheritance, constructors etc. and how to map that data to the environment) or whether I have to do it myself.
TLDR: Are there simple but powerful Python code generation "frameworks"?
EDIT:
* I found [pymultigen](https://pypi.org/project/pymultigen/). Seems like it helps with creating code in multiple files.
* Looks like [pyecoregen](https://github.com/pyecore/pyecoregen) is a specialized multi-file code generator based on pymultigen.
/r/Python
https://redd.it/az4mce
PyPI
pymultigen
Multi-file frontend for single-file code generators.
MacroPy3 - macros in python
https://macropy3.readthedocs.io/en/latest/
/r/Python
https://redd.it/az46qw
https://macropy3.readthedocs.io/en/latest/
/r/Python
https://redd.it/az46qw
Real-world, practical business uses for Python?
There is a lot of information online and how and why to use Python, but I have found very little information about practical, specific business uses. How do you use Python to make your life easier at work, or to make money on the side?
I have spent several months learning the R programming language, and I have hit a point where I am questioning how practical it is. Truthfully, I can do 99% of what I can do in R using Microsoft Excel - without spending 15 minutes adjusting tick marks on a bar chart.
I am strongly considering switching to Python. I hear so much about its ease of use and many appplications. I just can't find much about specific problems that it can be used to solve.
/r/Python
https://redd.it/az6nic
There is a lot of information online and how and why to use Python, but I have found very little information about practical, specific business uses. How do you use Python to make your life easier at work, or to make money on the side?
I have spent several months learning the R programming language, and I have hit a point where I am questioning how practical it is. Truthfully, I can do 99% of what I can do in R using Microsoft Excel - without spending 15 minutes adjusting tick marks on a bar chart.
I am strongly considering switching to Python. I hear so much about its ease of use and many appplications. I just can't find much about specific problems that it can be used to solve.
/r/Python
https://redd.it/az6nic
reddit
r/Python - Real-world, practical business uses for Python?
0 votes and 5 comments so far on Reddit