Quoting multiple lines at once?
I have the following block of links:
​
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/007/SRR6459187/SRR6459187.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/008/SRR6459188/SRR6459188.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/009/SRR6459189/SRR6459189.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/000/SRR6459190/SRR6459190.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/001/SRR6459191/SRR6459191.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/002/SRR6459192/SRR6459192.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/003/SRR6459193/SRR6459193.fastq.gz
[ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/004/SRR6459194/SRR6459194.fastq.gz](ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/004/SRR6459194/SRR6459194.fastq.gz)
​
My end goal is to have them as:
"ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/007/SRR6459187/SRR6459187.fastq.gz"
"[ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/008/SRR6459188/SRR6459188.fastq.gz](ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/008/SRR6459188/SRR6459188.fastq.gz)"
......
​
Is there an automatised way to do this? I am going to quote blocks like this over and over and it would be great if there was an easy way!
​
Thanks!!
/r/JupyterNotebooks
https://redd.it/ip35i5
I have the following block of links:
​
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/007/SRR6459187/SRR6459187.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/008/SRR6459188/SRR6459188.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/009/SRR6459189/SRR6459189.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/000/SRR6459190/SRR6459190.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/001/SRR6459191/SRR6459191.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/002/SRR6459192/SRR6459192.fastq.gz
ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/003/SRR6459193/SRR6459193.fastq.gz
[ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/004/SRR6459194/SRR6459194.fastq.gz](ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/004/SRR6459194/SRR6459194.fastq.gz)
​
My end goal is to have them as:
"ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/007/SRR6459187/SRR6459187.fastq.gz"
"[ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/008/SRR6459188/SRR6459188.fastq.gz](ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR645/008/SRR6459188/SRR6459188.fastq.gz)"
......
​
Is there an automatised way to do this? I am going to quote blocks like this over and over and it would be great if there was an easy way!
​
Thanks!!
/r/JupyterNotebooks
https://redd.it/ip35i5
reddit
r/JupyterNotebooks - Quoting multiple lines at once?
1 vote and 0 comments so far on Reddit
Real life examples of using Flask for data container (register, information management), machine learning/analytical pipeline?
I need real life examples which I can refer to as an example were Flask is used. I am interested in cases were Flask is used for:
1. As data container (register, information management system; some system where data is entered and retrieved on demand).
2. Machine learning/analytical pipeline.
/r/flask
https://redd.it/ip4jo5
I need real life examples which I can refer to as an example were Flask is used. I am interested in cases were Flask is used for:
1. As data container (register, information management system; some system where data is entered and retrieved on demand).
2. Machine learning/analytical pipeline.
/r/flask
https://redd.it/ip4jo5
reddit
Real life examples of using Flask for data container (register,...
I need real life examples which I can refer to as an example were Flask is used. I am interested in cases were Flask is used for: 1. As data...
Django TalkTo: Seamlessly use Django without DB
I just developed a django app that allows you to talk to a REST API using the django modules. I called it Django TalkTo. It allows you to literally use django in a "djangoic" way without a database
You can check it out at
https://github.com/sirrobot01/djangotalkto
Note: It is still in developmental stage. Opinions are welcome on how to improve it.
Thanks
/r/django
https://redd.it/ip9vx5
I just developed a django app that allows you to talk to a REST API using the django modules. I called it Django TalkTo. It allows you to literally use django in a "djangoic" way without a database
You can check it out at
https://github.com/sirrobot01/djangotalkto
Note: It is still in developmental stage. Opinions are welcome on how to improve it.
Thanks
/r/django
https://redd.it/ip9vx5
GitHub
sirrobot01/djangotalkto
Seamlessly consume RESTful API with all Django flavours - sirrobot01/djangotalkto
Wednesday megathread: Beginner questions
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
/r/Python
https://redd.it/ip5722
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
/r/Python
https://redd.it/ip5722
reddit
Wednesday megathread: Beginner questions
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
Hired to a new intern position! Thank you all
Hey everyone! I am an electrical engineer student who is an intern at an engineering company but had a really boring business position. I didnt like my position at all since it was just making reports by copying and pasting. I didn’t know how to code, but I was interested in learning python. So I decided maybe I could make a project of automating those tedious reports so that I didn’t have to do it.
Over a month ago I asked if it was possible to automate the really boring stuff I have to do for my job since it was just super boring. Some of you guys suggested I learned to use pandas. I decided to take up my free time to learn python and study up on pandas. I finally finished creating a program where it automates all the reports instantly, saving about five hours per report.
My manager was really impressed and showed his manager. I was able to move position into a hardware engineer intern, where I can still continue to better my coding skills as well as do what I want to do as an engineer! Thank you all for your help!
/r/Python
https://redd.it/ip4ute
Hey everyone! I am an electrical engineer student who is an intern at an engineering company but had a really boring business position. I didnt like my position at all since it was just making reports by copying and pasting. I didn’t know how to code, but I was interested in learning python. So I decided maybe I could make a project of automating those tedious reports so that I didn’t have to do it.
Over a month ago I asked if it was possible to automate the really boring stuff I have to do for my job since it was just super boring. Some of you guys suggested I learned to use pandas. I decided to take up my free time to learn python and study up on pandas. I finally finished creating a program where it automates all the reports instantly, saving about five hours per report.
My manager was really impressed and showed his manager. I was able to move position into a hardware engineer intern, where I can still continue to better my coding skills as well as do what I want to do as an engineer! Thank you all for your help!
/r/Python
https://redd.it/ip4ute
reddit
Hired to a new intern position! Thank you all
Hey everyone! I am an electrical engineer student who is an intern at an engineering company but had a really boring business position. I didnt...
adding sqlalchemy database from separate python file
Can anyone tell me how to add a database to a flask web app if I have the model in another file.
I am making a web app for a file management system.
I have made a models.py file where I have written the code for all the tables and relationships and now I have to call it in my main.py file where I have declared the flask app .
Can anybody tell me how to do it ?
/r/flask
https://redd.it/ipciv4
Can anyone tell me how to add a database to a flask web app if I have the model in another file.
I am making a web app for a file management system.
I have made a models.py file where I have written the code for all the tables and relationships and now I have to call it in my main.py file where I have declared the flask app .
Can anybody tell me how to do it ?
/r/flask
https://redd.it/ipciv4
reddit
adding sqlalchemy database from separate python file
Can anyone tell me how to add a database to a flask web app if I have the model in another file. I am making a web app for a file management...
Seaborn 0.11 Released
https://medium.com/@michaelwaskom/announcing-the-release-of-seaborn-0-11-3df0341af042
/r/Python
https://redd.it/iozgr9
https://medium.com/@michaelwaskom/announcing-the-release-of-seaborn-0-11-3df0341af042
/r/Python
https://redd.it/iozgr9
Medium
Announcing the release of seaborn 0.11
Today sees the 0.11 release of seaborn, a Python library for data visualization. This is a major update with a number of exciting new…
Change you pass Django Users database into other database
Hello;
I want to ask if it’s possible to pass the default User database into other databases.
My problem: I have both signUp page and admin page. Both of the page can create a user with admin page have extra fields as compared to the signUp page
My use case:
I want to make an admin table that contains standard user credentials plus fields that will contain access level and their roles. My understanding is that if I created a user and stored on this table, I cannot use this credentials for the login process.
I figured if I can store those credentials into both of the database it will works.
Sorry if the question seems lacking in details, I will be glad to provide extra information. Thanks
/r/djangolearning
https://redd.it/ipd4rh
Hello;
I want to ask if it’s possible to pass the default User database into other databases.
My problem: I have both signUp page and admin page. Both of the page can create a user with admin page have extra fields as compared to the signUp page
My use case:
I want to make an admin table that contains standard user credentials plus fields that will contain access level and their roles. My understanding is that if I created a user and stored on this table, I cannot use this credentials for the login process.
I figured if I can store those credentials into both of the database it will works.
Sorry if the question seems lacking in details, I will be glad to provide extra information. Thanks
/r/djangolearning
https://redd.it/ipd4rh
reddit
Change you pass Django Users database into other database
Hello; I want to ask if it’s possible to pass the default User database into other databases. My problem: I have both signUp page and admin...
How do I get multiple models (+/- 5) on a single form ?
Hi,
I'm still pretty much a newbie at django, but am finding it pretty useful and interesting. What I've done is to build a few models that looks after a software delivery process that keeps track of what deliverable is with what department. As such I have made 5 models
​
**models.py**
class Release(models.Model):
RELEASE_STATES = (('PRE', 'Pre Release'),
('A', 'Department A'),
('B', 'Department B'),
('C', 'Department C'),
('D', 'Department D'))
release_name = models.CharField(max_length=250, null=True)
current_state = models.CharField(choices=RELEASE_STATES, default="PRE", max_length=50)
release_note = models.FileField(null=True, blank=True)
archived = models.BooleanField(default=False)
def __str__(self):
return self.release_name
def get_absolute_url(self):
/r/django
https://redd.it/ipggnp
Hi,
I'm still pretty much a newbie at django, but am finding it pretty useful and interesting. What I've done is to build a few models that looks after a software delivery process that keeps track of what deliverable is with what department. As such I have made 5 models
​
**models.py**
class Release(models.Model):
RELEASE_STATES = (('PRE', 'Pre Release'),
('A', 'Department A'),
('B', 'Department B'),
('C', 'Department C'),
('D', 'Department D'))
release_name = models.CharField(max_length=250, null=True)
current_state = models.CharField(choices=RELEASE_STATES, default="PRE", max_length=50)
release_note = models.FileField(null=True, blank=True)
archived = models.BooleanField(default=False)
def __str__(self):
return self.release_name
def get_absolute_url(self):
/r/django
https://redd.it/ipggnp
reddit
How do I get multiple models (+/- 5) on a single form ?
Hi, I'm still pretty much a newbie at django, but am finding it pretty useful and interesting. What I've done is to build a few models that looks...
session not persisting in chrome and safari, but is in opera!?
i have a simple login system using sessions, with a flag showing if the user is logged in. the session is set to be "permanent", but have a life span of 1 day.
it was all working as intended until a few weeks ago where it suddenly decided to drop the session.
The usual path that user takes would be:
login screen *\[home() route\]* \-> correct details, create session, go to index, use session data to build index *\[home() route with post data\]* \-> click link to go to content, check session and return home if it doesn't exist (aka they have logged out at some point) *\[read() route\]*
now what happens:
login screen -> correct details, create session, use session data to build index -> click link and it returns home because the flag has a value of "None", as though the session was cleared or the user logged out (impossible)
so the session behaves as intended in the first 2 screens, but out of nowhere stopped persisting through to the third screen
the thing i don't understand is that if i use a different browser instead of chrome (or safari as some of my testers have been using) then everything works perfectly.
does anyone
/r/flask
https://redd.it/ipfwc1
i have a simple login system using sessions, with a flag showing if the user is logged in. the session is set to be "permanent", but have a life span of 1 day.
it was all working as intended until a few weeks ago where it suddenly decided to drop the session.
The usual path that user takes would be:
login screen *\[home() route\]* \-> correct details, create session, go to index, use session data to build index *\[home() route with post data\]* \-> click link to go to content, check session and return home if it doesn't exist (aka they have logged out at some point) *\[read() route\]*
now what happens:
login screen -> correct details, create session, use session data to build index -> click link and it returns home because the flag has a value of "None", as though the session was cleared or the user logged out (impossible)
so the session behaves as intended in the first 2 screens, but out of nowhere stopped persisting through to the third screen
the thing i don't understand is that if i use a different browser instead of chrome (or safari as some of my testers have been using) then everything works perfectly.
does anyone
/r/flask
https://redd.it/ipfwc1
reddit
r/flask - session not persisting in chrome and safari, but is in opera!?
8 votes and 3 comments so far on Reddit
Can we get a new rule on library submissions/updates?
I browse r/Python a lot, and it's great to see new libraries or updates to existing ones, but most of them give little to no information on what the library is about and they usually link to a medium/blog post that can take a bit of reading to work out what the library actually does.
The Seaborn library (currently on the front page) is a prime example.
I'd therefore suggest a requirement for library submission/update posts to have at least a short description of what they do, as well as a link to where it's actually hosted (pypi preferably or github). I know its a bit more work, but there's been quite a few of these posts recently which just feel like adverts for someones medium blog.
/r/Python
https://redd.it/ipkc2l
I browse r/Python a lot, and it's great to see new libraries or updates to existing ones, but most of them give little to no information on what the library is about and they usually link to a medium/blog post that can take a bit of reading to work out what the library actually does.
The Seaborn library (currently on the front page) is a prime example.
I'd therefore suggest a requirement for library submission/update posts to have at least a short description of what they do, as well as a link to where it's actually hosted (pypi preferably or github). I know its a bit more work, but there's been quite a few of these posts recently which just feel like adverts for someones medium blog.
/r/Python
https://redd.it/ipkc2l
reddit
Can we get a new rule on library submissions/updates?
I browse r/Python a lot, and it's great to see new libraries or updates to existing ones, but most of them give little to no information on what...
Python's Pathlib Explained
https://www.youtube.com/watch?v=YwhOUyTxXVE
/r/Python
https://redd.it/ipk81t
https://www.youtube.com/watch?v=YwhOUyTxXVE
/r/Python
https://redd.it/ipk81t
YouTube
How to Use Pathlib in Python | Quickstart Guide or Beginners
`pathlib` is a part of the standard library that helps you deal with file paths. In this video, we explore the library with examples. We also talk about the different `Path` classes that are available to us, and we talk about the relationships between the…
Lets plot: An interactive Python plotting library using ggplot's API
https://github.com/JetBrains/lets-plot/blob/master/README_PYTHON.md
/r/Python
https://redd.it/ipgk0r
https://github.com/JetBrains/lets-plot/blob/master/README_PYTHON.md
/r/Python
https://redd.it/ipgk0r
[D] How are you handling Covid's impact on your already deployed forecasting/pricing models?
I am currently working as a pricing analyst and I have a bunch of demand forecasting models in production, I use them along with a bunch of rules to suggest prices to my clients (Mostly Hotel chains, ferry's, etc). Now, most of these folks are slowly opening-up their traffic. Now my question is I want to retrain my forecasting models :
1. How should I handle the missing period March-August?
2. With things opening, is there any literature or dataset around how users behaved in the travel sector after COVID like events?
3. It would be also great if you can share how you are adjusting your current models ( in any sector) to adjust for Covid's impact.
/r/MachineLearning
https://redd.it/ipggr8
I am currently working as a pricing analyst and I have a bunch of demand forecasting models in production, I use them along with a bunch of rules to suggest prices to my clients (Mostly Hotel chains, ferry's, etc). Now, most of these folks are slowly opening-up their traffic. Now my question is I want to retrain my forecasting models :
1. How should I handle the missing period March-August?
2. With things opening, is there any literature or dataset around how users behaved in the travel sector after COVID like events?
3. It would be also great if you can share how you are adjusting your current models ( in any sector) to adjust for Covid's impact.
/r/MachineLearning
https://redd.it/ipggr8
reddit
[D] How are you handling Covid's impact on your already deployed...
I am currently working as a pricing analyst and I have a bunch of demand forecasting models in production, I use them along with a bunch of rules...
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…