Any good tutorials for flask and React.?
There are several that show you setup but none that show you multiple views/routes. Any one got any links?!
/r/flask
https://redd.it/ipj4ga
There are several that show you setup but none that show you multiple views/routes. Any one got any links?!
/r/flask
https://redd.it/ipj4ga
reddit
Any good tutorials for flask and React.?
There are several that show you setup but none that show you multiple views/routes. Any one got any links?!
Thursday megathread: Python careers!
Discussion of using Python in a professional environment, getting jobs in Python and more!
**This thread is not for recruitment, please see** r/PythonJobs **or the thread in the sidebar for that.**
/r/Python
https://redd.it/ipsa5f
Discussion of using Python in a professional environment, getting jobs in Python and more!
**This thread is not for recruitment, please see** r/PythonJobs **or the thread in the sidebar for that.**
/r/Python
https://redd.it/ipsa5f
reddit
Thursday megathread: Python careers!
Discussion of using Python in a professional environment, getting jobs in Python and more! **This thread is not for recruitment, please see**...
New Update for ObFile Compiler out!!!
So here is ObFile 1.1.1 release info
Check it out here:
[https://github.com/kavinjindal/ObFile](https://github.com/kavinjindal/ObFile)
After many suggestions, I have added various things and removed various features from ObFile
* Removed time.sleep commands
* Added Message Box System
* Added setup file to install modules
* Fixed indents and spaces
* Fixed bugs
* Updated Menu
*
/r/Python
https://redd.it/ipynkw
So here is ObFile 1.1.1 release info
Check it out here:
[https://github.com/kavinjindal/ObFile](https://github.com/kavinjindal/ObFile)
After many suggestions, I have added various things and removed various features from ObFile
* Removed time.sleep commands
* Added Message Box System
* Added setup file to install modules
* Fixed indents and spaces
* Fixed bugs
* Updated Menu
*
/r/Python
https://redd.it/ipynkw
GitHub
kavinjindal/ObFile
ObFile is a python compiler and obfuscator for Windows. It can compile your python programs into exe and you can even add your own custom icons to it. You can also obfuscate the files and compile t...
Python is now the second most popular language for programming
https://www.newserector.com/python-is-now-the-second-most-popular-language-for-programming
/r/Python
https://redd.it/ipzjf6
https://www.newserector.com/python-is-now-the-second-most-popular-language-for-programming
/r/Python
https://redd.it/ipzjf6
newserector
Python is now the second most popular language for programming - newserector
Java is not one of the top two locations on RedMonk 's popularity list for the first time since 2012.
I published a tutorial where I extract spectrograms from audio files with Python
In my new video, I explain how to extract spectrograms from an audio file with Python and Librosa using the Short-Time Fourier Transform. I also introduce different types of spectrograms and compare the spectrograms of music in different genres.
This video is part of the Audio Processing for Machine Learning series. This course aims to teach you how to process audio data 🎧 and extract relevant audio features for your machine learning applications 🤖🤖.
Here’s the video:
[https://www.youtube.com/watch?v=3gzI4Z2OFgY&list=PL-wATfeyAMNqIee7cH3q1bh4QJFAaeNv0&index=16](https://www.youtube.com/watch?v=3gzI4Z2OFgY&list=PL-wATfeyAMNqIee7cH3q1bh4QJFAaeNv0&index=16)
/r/Python
https://redd.it/iq0pog
In my new video, I explain how to extract spectrograms from an audio file with Python and Librosa using the Short-Time Fourier Transform. I also introduce different types of spectrograms and compare the spectrograms of music in different genres.
This video is part of the Audio Processing for Machine Learning series. This course aims to teach you how to process audio data 🎧 and extract relevant audio features for your machine learning applications 🤖🤖.
Here’s the video:
[https://www.youtube.com/watch?v=3gzI4Z2OFgY&list=PL-wATfeyAMNqIee7cH3q1bh4QJFAaeNv0&index=16](https://www.youtube.com/watch?v=3gzI4Z2OFgY&list=PL-wATfeyAMNqIee7cH3q1bh4QJFAaeNv0&index=16)
/r/Python
https://redd.it/iq0pog
YouTube
How to Extract Spectrograms from Audio with Python
Learn how to extract spectrograms from an audio file with Python and Librosa using the Short-Time Fourier Transform. Learn different types of spectrograms and compare the spectrograms of music in different genres.
Code:
https://github.com/musikalkemist/…
Code:
https://github.com/musikalkemist/…
How to Publish Your First Python App on Heroku
https://medium.com/@henson.casper/how-to-publish-your-first-python-app-on-heroku-6af91c5bb138
/r/Python
https://redd.it/iq1o8z
https://medium.com/@henson.casper/how-to-publish-your-first-python-app-on-heroku-6af91c5bb138
/r/Python
https://redd.it/iq1o8z
Medium
How to Publish Your First Python App on Heroku
Heroku is one of the most popular Platforms as a Service (PaaS) which allows developers to develop and deploy their applications to the…
DjangoCon Europe 2020 is FREE
Hi all,
Just to let you know that DjangoCon Europe 2020 has already published their schedule:
[https://cfp.2020.djangocon.eu/porto/schedule/](https://cfp.2020.djangocon.eu/porto/schedule/)
And the tickets are FREE!
[https://pretix.eu/djceu2020/tickets/](https://pretix.eu/djceu2020/tickets/)
Website: [https://2020.djangocon.eu/](https://2020.djangocon.eu/)
Twitter: [https://twitter.com/DjangoConEurope](https://twitter.com/DjangoConEurope)
Cheers!
/r/django
https://redd.it/iq0dfg
Hi all,
Just to let you know that DjangoCon Europe 2020 has already published their schedule:
[https://cfp.2020.djangocon.eu/porto/schedule/](https://cfp.2020.djangocon.eu/porto/schedule/)
And the tickets are FREE!
[https://pretix.eu/djceu2020/tickets/](https://pretix.eu/djceu2020/tickets/)
Website: [https://2020.djangocon.eu/](https://2020.djangocon.eu/)
Twitter: [https://twitter.com/DjangoConEurope](https://twitter.com/DjangoConEurope)
Cheers!
/r/django
https://redd.it/iq0dfg
cfp.2020.djangocon.eu
DjangoCon Europe 2020
Schedule, talks and talk submissions for DjangoCon Europe 2020
Add Audio Tag to Django Admin
Hello there,
I'm making a music app where the Admin can listen audios available in a database.
Is there away that I can add a section in Django Admin where I can reproduce audio using html <audio/> tag
/r/django
https://redd.it/iq7loy
Hello there,
I'm making a music app where the Admin can listen audios available in a database.
Is there away that I can add a section in Django Admin where I can reproduce audio using html <audio/> tag
/r/django
https://redd.it/iq7loy
reddit
r/django - Add Audio Tag to Django Admin
0 votes and 0 comments so far on Reddit
Dynamically create raw SQL query without running risk of SQL injection?
I can no longer battle with the Django ORM, so we need to write our queries in raw SQL using \`connection.cursor()\`. But how can we conditionally build parts of a query without doing string interpolation and thereby risking SQL injection?
For example, saw we have the following query:
`cursor = connection.cursor()`
`cursor.execute("SELECT * FROM sometable WHERE soemetable.thing = 'foo' ")`
​
But we only want to have the WHERE statement in the query depending upon other conditions and we can't just leave the WHERE statement equaling NULL or empty string or whatever?
/r/django
https://redd.it/iq827d
I can no longer battle with the Django ORM, so we need to write our queries in raw SQL using \`connection.cursor()\`. But how can we conditionally build parts of a query without doing string interpolation and thereby risking SQL injection?
For example, saw we have the following query:
`cursor = connection.cursor()`
`cursor.execute("SELECT * FROM sometable WHERE soemetable.thing = 'foo' ")`
​
But we only want to have the WHERE statement in the query depending upon other conditions and we can't just leave the WHERE statement equaling NULL or empty string or whatever?
/r/django
https://redd.it/iq827d
reddit
r/django - Dynamically create raw SQL query without running risk of SQL injection?
0 votes and 3 comments so far on Reddit
Stop users from accessing my API?
Hello everyone,
I'm a big noob, so I don't know if this question even makes sense, but regardless:
Is it possible to stop users from sending API requests programmatically? That is, still allow API requests from users in my frontend, but stop them sending API requests from something such as Python's `requests` library.
For example, most popular services (Twitter, Youtube, etc.) have (at least I think) an API that the public is allowed to use (with limits), and an API that is used when you do something such as tweet.
I know about decorators like `@permission_classes([IsAuthenticated])`, but I don't think that would help since you can still send authentication credentials in the headers.
Any help is much appreciated!
/r/django
https://redd.it/iq9ob9
Hello everyone,
I'm a big noob, so I don't know if this question even makes sense, but regardless:
Is it possible to stop users from sending API requests programmatically? That is, still allow API requests from users in my frontend, but stop them sending API requests from something such as Python's `requests` library.
For example, most popular services (Twitter, Youtube, etc.) have (at least I think) an API that the public is allowed to use (with limits), and an API that is used when you do something such as tweet.
I know about decorators like `@permission_classes([IsAuthenticated])`, but I don't think that would help since you can still send authentication credentials in the headers.
Any help is much appreciated!
/r/django
https://redd.it/iq9ob9
reddit
r/django - Stop users from accessing my API?
3 votes and 10 comments so far on Reddit
Friday megathread: Free chat Friday!
Use this thread to talk about anything Python related! Questions, news, projects and any relevant discussion around Python is permitted!
/r/Python
https://redd.it/iqfher
Use this thread to talk about anything Python related! Questions, news, projects and any relevant discussion around Python is permitted!
/r/Python
https://redd.it/iqfher
reddit
Friday megathread: Free chat Friday!
Use this thread to talk about anything Python related! Questions, news, projects and any relevant discussion around Python is permitted!
What's the best way to add a single HTML button that updates a model?
I'm working on a project similar to Reddit, where the user can join and leave communities. I'm currently stuck on how to add a functional "join"/"leave" button to the page.
The models I use are a many-to-many relationship between User and Community, so joining adds the current user to <community_name>.members.all().
I'm not sure how to make the buttons do this. I thought about making a Join form whose only element is the submit button and using JavaScript to switch to the Leave form when it's clicked. Would that even work, and would it be the best way to approach this? I've only got a basic knowledge of JavaScript so I wouldn't know where to begin if it requires JQuery or something like that.
/r/djangolearning
https://redd.it/iqjc36
I'm working on a project similar to Reddit, where the user can join and leave communities. I'm currently stuck on how to add a functional "join"/"leave" button to the page.
The models I use are a many-to-many relationship between User and Community, so joining adds the current user to <community_name>.members.all().
I'm not sure how to make the buttons do this. I thought about making a Join form whose only element is the submit button and using JavaScript to switch to the Leave form when it's clicked. Would that even work, and would it be the best way to approach this? I've only got a basic knowledge of JavaScript so I wouldn't know where to begin if it requires JQuery or something like that.
/r/djangolearning
https://redd.it/iqjc36
reddit
What's the best way to add a single HTML button that updates a model?
I'm working on a project similar to Reddit, where the user can join and leave communities. I'm currently stuck on how to add a functional...
How is Django 3.1 so far? I'm coming from 1.11 LTS
For those of you using Django 3.1, how is it? Is it worth using over the 2.2 LTS?
My last project was 1.11 LTS and I did enjoy using it.
I would prefer an LTS version so there is less pressure to upgrade. But 3.1 looks pretty shiny.
/r/django
https://redd.it/iqe6dr
For those of you using Django 3.1, how is it? Is it worth using over the 2.2 LTS?
My last project was 1.11 LTS and I did enjoy using it.
I would prefer an LTS version so there is less pressure to upgrade. But 3.1 looks pretty shiny.
/r/django
https://redd.it/iqe6dr
reddit
How is Django 3.1 so far? I'm coming from 1.11 LTS
For those of you using Django 3.1, how is it? Is it worth using over the 2.2 LTS? My last project was 1.11 LTS and I did enjoy using it. I...
[2002.05645] Training Large Neural Networks with Constant Memory using a New Execution Algorithm
https://arxiv.org/abs/2002.05645
/r/MachineLearning
https://redd.it/iqiqhz
https://arxiv.org/abs/2002.05645
/r/MachineLearning
https://redd.it/iqiqhz
reddit
[2002.05645] Training Large Neural Networks with Constant Memory...
Posted in r/MachineLearning by u/chillinewman • 68 points and 16 comments
How to make flaks site https?
Not sure if this is directly ima flask question, but I built a flask site with react front end. I deployed on Ubuntu 18.02 ec2 and I’m using Apache. I set up an elastic up to point my tld and works fine, but I don’t understand how to set up ssl. Any help? I have a let encrypt ssl certifícate.
/r/flask
https://redd.it/iqgj5z
Not sure if this is directly ima flask question, but I built a flask site with react front end. I deployed on Ubuntu 18.02 ec2 and I’m using Apache. I set up an elastic up to point my tld and works fine, but I don’t understand how to set up ssl. Any help? I have a let encrypt ssl certifícate.
/r/flask
https://redd.it/iqgj5z
reddit
How to make flaks site https?
Not sure if this is directly ima flask question, but I built a flask site with react front end. I deployed on Ubuntu 18.02 ec2 and I’m using...
[P] 🤗Datasets: First stable version of our open-access datasets & metrics library
Hi all,
We just released 🤗**Datasets** **v1.0** at HuggingFace. It's a library that gives you access to **150+ datasets** and 10+ metrics.
This v1.0 release brings many interesting features including strong speed improvements, efficient indexing capabilities, multi-modality for image and text datasets as well as many reproducibility and traceability improvements.
You can install it with
pip install datasets
or find it at [https://github.com/huggingface/datasets](https://github.com/huggingface/datasets)
Loading datasets is easy:
from datasets import load_dataset, list_datasets
print(list_datasets())
# ['aeslc', 'ag_news', 'ai2_arc', 'allocine', 'anli', 'arcd', 'art', 'billsum',
# 'biomrc', 'blended_skill_talk', 'blimp', 'blog_authorship_corpus', 'bookcorpus'
# ...
# 'wikipedia', 'wikisql', 'wikitext', 'winogrande', 'wiqa', 'wmt14', 'wmt15',
# 'wmt16', 'wmt17', 'wmt18', 'wmt19', 'wmt_t2t', 'wnut_17', 'x_stance', 'xcopa',
# 'xnli', 'xquad', 'xsum', 'xtreme', 'yelp_polarity']
mnli = load_dataset("glue", "mnli", split="train")
wikipedia = load_dataset("wikipedia", "20200501.en")
my_dataset = load_dataset("text", data_files='./my_book.txt') # or your own file
The library is backed by Apache Arrow for **memory mapping**: it means that loading and using datasets is fast and don't fill your RAM. For example loading the 18GB of
/r/MachineLearning
https://redd.it/iqp9mc
Hi all,
We just released 🤗**Datasets** **v1.0** at HuggingFace. It's a library that gives you access to **150+ datasets** and 10+ metrics.
This v1.0 release brings many interesting features including strong speed improvements, efficient indexing capabilities, multi-modality for image and text datasets as well as many reproducibility and traceability improvements.
You can install it with
pip install datasets
or find it at [https://github.com/huggingface/datasets](https://github.com/huggingface/datasets)
Loading datasets is easy:
from datasets import load_dataset, list_datasets
print(list_datasets())
# ['aeslc', 'ag_news', 'ai2_arc', 'allocine', 'anli', 'arcd', 'art', 'billsum',
# 'biomrc', 'blended_skill_talk', 'blimp', 'blog_authorship_corpus', 'bookcorpus'
# ...
# 'wikipedia', 'wikisql', 'wikitext', 'winogrande', 'wiqa', 'wmt14', 'wmt15',
# 'wmt16', 'wmt17', 'wmt18', 'wmt19', 'wmt_t2t', 'wnut_17', 'x_stance', 'xcopa',
# 'xnli', 'xquad', 'xsum', 'xtreme', 'yelp_polarity']
mnli = load_dataset("glue", "mnli", split="train")
wikipedia = load_dataset("wikipedia", "20200501.en")
my_dataset = load_dataset("text", data_files='./my_book.txt') # or your own file
The library is backed by Apache Arrow for **memory mapping**: it means that loading and using datasets is fast and don't fill your RAM. For example loading the 18GB of
/r/MachineLearning
https://redd.it/iqp9mc
GitHub
GitHub - huggingface/datasets: 🤗 The largest hub of ready-to-use datasets for AI models with fast, easy-to-use and efficient data…
🤗 The largest hub of ready-to-use datasets for AI models with fast, easy-to-use and efficient data manipulation tools - huggingface/datasets
Saturday megathread: Share your resources!
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/ir28yx
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/ir28yx
reddit
Saturday megathread: Share your resources!
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic? Use this thread to chat about and...
Anaconda is not free for commercial use (anymore) - alternatives ?
Hey guys,
I recently started a job in the industry and wanted to use my python environment I got comfortable with as a researcher - the Anaconda Python Individual edition. And just to be clear, I love it :)
I thought, Individual edition - no worries - I can use it anyhow I want it even commercially. It seems, I was wrong.
After talking to my boss about it, I contacted Anaconda, and I got the message, that due to explosive growth over the last 6 months they had to update our Terms of Service and can no longer offer commercial use of the Anaconda Repository. Just to be complete on this, they offered an entry of $5k per year which sadly is no option for me.
I thought I had done my homework, after having read the EULA, where nothing is stated, that you cannot use it commercially. [https://docs.anaconda.com/anaconda/eula/](https://docs.anaconda.com/anaconda/eula/)
It says: BSD license ---
So I talked back and asked for the document which said that commercial use is not allowed, which led to the TOS, as the individual edition is (also) using the repository.
The link to the document is this one: [https://know.anaconda.com/TOS.html](https://salesloft.anaconda.com/t/101683/c/c1fb6dfc-2949-4963-9924-7b511547c2d8/NB2HI4DTHIXS623ON53S4YLOMFRW63TEMEXGG33NF5KE6UZONB2G23A=/know-anaconda-com-tos-html)
where it is stated:
>
/r/Python
https://redd.it/iqsk3y
Hey guys,
I recently started a job in the industry and wanted to use my python environment I got comfortable with as a researcher - the Anaconda Python Individual edition. And just to be clear, I love it :)
I thought, Individual edition - no worries - I can use it anyhow I want it even commercially. It seems, I was wrong.
After talking to my boss about it, I contacted Anaconda, and I got the message, that due to explosive growth over the last 6 months they had to update our Terms of Service and can no longer offer commercial use of the Anaconda Repository. Just to be complete on this, they offered an entry of $5k per year which sadly is no option for me.
I thought I had done my homework, after having read the EULA, where nothing is stated, that you cannot use it commercially. [https://docs.anaconda.com/anaconda/eula/](https://docs.anaconda.com/anaconda/eula/)
It says: BSD license ---
So I talked back and asked for the document which said that commercial use is not allowed, which led to the TOS, as the individual edition is (also) using the repository.
The link to the document is this one: [https://know.anaconda.com/TOS.html](https://salesloft.anaconda.com/t/101683/c/c1fb6dfc-2949-4963-9924-7b511547c2d8/NB2HI4DTHIXS623ON53S4YLOMFRW63TEMEXGG33NF5KE6UZONB2G23A=/know-anaconda-com-tos-html)
where it is stated:
>
/r/Python
https://redd.it/iqsk3y