How to write Python script locally?
Hi, I am brand new to python and trying to learn it step by step and i would like to know how to write a local python script? what the meaning of writing a script locally? and how to use scp command to transfer it into your server?
Thanks
• 848 views
•
link
0 answers
No answers yet.
Log in to answer this question.
It's very simple use any text editor like geany, vscode, textpad, gedit(defualt for linux-ubuntu version). Write your code let's say we have to print
hello pythonso writeprint ('hello python')and save it with.pyextensionEx. script.py. Then you can run your code in geany directly by presingF5button from keyboard else you can run it by using terminal; open terminal/cmd, locate to the path where you saved your code and run it usingpython scirpt.py. Refer this.If u need to transfer files to your server you can use ftp client software like filezilla OR using scp you can share files between two computers connected in a network using command like this.
scp <file/path/on/your/system> <user>@<remote_server_ip_address>:</full/path/to/save/file/on/server>, for examplescp </home/user/script.py> <test>@<xxx.xxx.xx.x>:</home/test/>Hello onemore100iq!
We believe that this post does not fit the main topic of this site.
One cannot see the bioinformatics relation.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
Python is a key element to Bioinformatics and i am just learning the basics of python to get into bioinformatics. so asking about the basics of something that is basically related to bioinformatics is ok. I just was in hurry and did not mention the bioinformatics details and I am solving a bioinformatics problem using python" and because i am just a new to python i went directly into the python part and forget to mention its direct relation to the bioinformatics problem that I am using python for. Sorry for not not listing the complementary details to my question Would you please open my python related bioinformatics question to get some help please?
Thanks
Hello onemore100iq ,
the main topic of this site is bioinformatics and not programming. So other places for general questions about "how to program" like stackoverflow fits better.
If you have a specific bioinformatic task, you try to solve with python, you are vere welcom to start a new question, where you describe what's your goal, what you've already tried and where you get stuck.
fin swimmer
Thank you so much. This is what I am going to do next time.