About using Atom Conduct Python There are few online materials developed , Recently, it has been found that Atom combination Hydrogen Plug in Python Development , Especially the work related to data mining , The overall experience is better than Vscode,Vscode Although there are connections Jupyter Tools for , But interactive development Hydrogen Experience better .
Here is a moving picture to show Hydrogen A powerful
Plug in installation
Python
- Hydrogen
- atom-ide-ui
- ide-python
Pay attention here , The local pip need install python-language-server[all], stay ide-python Of readme It's detailed in
Remote connection
- Remote FTP
beautify
simplified-chinese-menu( Chinese patch )
file-icons( Folder icon )
bracket-colorizer( Rainbow brackets , For a long time , To be sure is to cooperate with the dark theme )
atom-bracket-highlight( Brackets highlight )
atom-clock( Add a clock in the lower right corner )
highlight-selected( Highlight selection )
minimap( similar sublime The right side of the map bar )
minimap-highlight-selected( After selecting the code ,map It also highlights , Easy to locate code )
The plug-in configuration
Remote FTP
Let's talk about my needs first , I need to use it to connect to the content on the company's server , But the company server needs a springboard , So I need a springboard machine to access , Therefore, the configuration will be a little complicated
{
"protocol": "sftp",
"host": " Springboard domain name ", // string - Hostname or IP address of the server. Default: 'localhost'
"port": Springboard port , // integer - Port number of the server. Default: 22
"user": " user name ", // string - Username for authentication. Default: (none)
"pass": " If you use a key, you don't have to fill in ", // string - Password for password-based user authentication. Default: (none)
"promptForPass": false, // boolean - Set to true for enable password/passphrase dialog. This will prevent from using cleartext password/passphrase in this config. Default: false
"remote": " Actual server directory , for example :/ Server domain name / user name / Catalog ", // try to use absolute paths starting with /
"agent": "", // string - Path to ssh-agent's UNIX socket for ssh-agent-based user authentication. Linux/Mac users can set "env" as a value to use env SSH_AUTH_SOCK variable. Windows users: set to 'pageant' for authenticating with Pageant or (actual) path to a cygwin "UNIX socket." Default: (none)
"privatekey": " Local private key path", // string - Absolute path to the private key file (in OpenSSH format). Default: (none)
"passphrase": "", // string - For an encrypted private key, this is the passphrase used to decrypt it. Default: (none)
"hosthash": "", // string - 'md5' or 'sha1'. The host's key is hashed using this method and passed to the hostVerifier function. Default: (none)
"ignorehost": true,
"connTimeout": 10000, // integer - How long (in milliseconds) to wait for the SSH handshake to complete. Default: 10000
"keepalive": 10000, // integer - How often (in milliseconds) to send SSH-level keepalive packets to the server (in a similar way as OpenSSH's ServerAliveInterval config option). Set to 0 to disable. Default: 10000
"keyboardInteractive": If you want to use a dynamic token , Here you have to fill in true, // boolean - Set to true for enable verifyCode dialog. Keyboard interaction authentication mechanism. For example using Google Authentication (Multi factor)
"keyboardInteractiveForPass": false, // boolean - Set to true for enable keyboard interaction and use pass options for password. No open dialog.
"remoteCommand": "",
"remoteShell": "",
"watch":[],
"watchTimeout":500, // integer - The duration ( in milliseconds ) from when the file was last changed for the upload to begin.
}
ide-python
I need to configure it Python Executable
Fill in your python route , For example, we use conda A virtual environment , Just write
/xxx/anaconda3/envs/xxx/bin/python
Hydrogen
Connect local Kernel
First, you need to fill in the path above python Installation in the environment ipykernel
python -m ipykernel install --user --name py37
And then use atom Open one py file , Input
# %%
print('hello atom')
# %%
print(' every last # %% Represents a new cell')
Then again 2 Press... At the end of the line ctrl+enter It will pop up automatically to let you choose the pop-up window of the environment , Select the newly created environment
And then in Hydrogen Inside by using # %%
To divide each cell, stay Mac Use in option+shift+enter Key combination to run the current whole ceil, Use command+enter Run the current line , Use shift+enter Run the current line and jump to the next line , For details, please refer to the official documents
Connect remote Kernel
Connect remote Jupyter Just configure Hydrogen Set the inside Kernel Gateways
, Just fill in the following
[{"name": "Remote server",
"options": {
"baseUrl": "jupyter url",
"token": "jupyter token"
}
}]
And then click Connect to Remote Kernel
that will do
Better use Atom Support based on Jupyter Of Python Development of more related articles
- Configuration is based on Vim Of Python development environment
Configuration is based on Vim Of Python Development environment plug-ins Vundle YouCompleteMe NERDTree Vim-Jinja2-Syntax set nocompatible " be iMpr ...
- be based on Pycharm Of Python Development environment configuration
be based on Pycharm Of Python Development environment configuration Edited on 2020-11-18 Python install Double click the Python3.x Installation package . Check Add to path. Convenience , choice Install now. Next ...
- nginx unit 1.8 Support based on java servlet Development model for
lately unit 1.8 Released , There are two big new features , Internal request routing , as well as java servlet Development of container applications Internal request routing configuration reference { "routes": [ { "m ...
- be based on linux Application python Develop knowledge bit by bit
I am a little white , I hope my article can have some effect on Xiaobai . A.Linux The open source , Obvious advantages , How to use , The basic commands are as follows : I think the two most basic operations : 1. File operations : ls Look at the contents of the folder ls -a Hidden files -l Non hidden ...
- Ubuntu Based on Virtualenv structure Python development environment
1. install virtualenv And build a virtual environment 1). to update pip edition sudo pip install --upgrade pip If the following exception occurs : File , in <module> f ...
- delphi Evolution of string types in different versions ( To support based firemonkey Of app call , Strings are best used olevariant type )
string,DELPHI2009 Previous versions string=ansistring, A character takes up a byte ,DELPHI2009 And above string=unicodestring, One character takes up two bytes . cha ...
- Centos7.2 Next Nginx To configure SSL Support https visit ( The site is based on .Net Core2.0 Developed WebApi)
preparation 1. be based on nginx Deployed sites ( This site is based on .Net Core2.0 Developed WebApi, If you are interested, you can dance http://www.cnblogs.com/GreedyL/p/7422796. ...
- [ turn ] be based on Starling Mobile project development preparation
Recently, I did it in my spare time flash Little game has been developed almost , Get ready to improve ui And after the value , Put it abroad flash Game station . During this period, ideas also sprouted , Want to expand the game to the mobile platform . These two days, I tried , Remove the access to ane Interface work , A little tour ...
- be based on Typecho CMS Framework to develop large and medium-sized applications
be based on Typecho CMS Framework to develop large and medium-sized applications Large and medium-sized applications are temporarily defined as : Greater than or equal to 3 Application of a data table ! Khan bar ! Typecho It was originally a blog system , Its framework system is different from the general meaning on the market MVC frame , The body code is self created Wid ...
- be based on MINA Framework for rapid development of network applications
1.MINA Introduction to the framework MINA(Multipurpose Infrastructure for Network Applications) It is the basic framework for developing network applications with high performance and high availability . By using M ...
Random recommendation
- Two methods for small and medium data mysql The data backup
Recently, the business volume of the project began to increase , I feel that if the data is not backed up periodically , There are likely to be problems , Although I have an automatic snapshot of alicloud every day , I went online to find a way , Find two relatively simple and suitable data backup strategies for small and medium-sized projects or small and medium-sized companies , The following are all databases ...
- Linux System virtualbox + ubuntu + xshell Questions and precautions
preface :ubuntu Too much closed source software , Generally not recommended : No money to use centos.debian: Money to use redhat At present, the mainstream and commonly used Linux The main versions are :1.Redhat edition 5.5 and 6.0 newest : train . Study ...
- MVC project
MVC Project analysis : 1.AssemblyInfo.cs Save some attributes and version numbers of the management file release 2.Content Folder ( Save the relevant style file .CSS),scripts Folder ( Save relevant ),fonts file ...
- POJ 3253 Fence Repair( Mend the fence )
POJ 3253 Fence Repair( Mend the fence ) Time Limit: 2000MS Memory Limit: 65536K [Description] [ Title Description ] Farmer Joh ...
- About Ajax Knowledge section
URL: Uniform resource locator The seven layer network protocol : network card drive The network layer (ip) Transport layer (tcp udp) The session layer ( ) application layer (http.) restful Characterization state transfer ( A representation Architecture ) CURD Additions and deletions ...
- STL One of the six components —— Imitation function peeping
functor (functor), Is to make the use of a class or class template look like a function . Its implementation is the class or class template for operator() Overload , This class or class template has a function like behavior . Imitative functions are intelligent functions, just like the behavior of intelligent pointers ...
- HW4.39
public class Solution { public static void main(String[] args) { double sum; double baseSalary = 500 ...
- stay windows Install and run disconf
One . Environmental preparation 1. download disconf Source code ( This article takes 2.6.36 For example ) https://github.com/knightliao/disconf 2. download nginx1.10.2(windows edition ) h ...
- axios Compatibility handling of
One . brief introduction Look at the profile on the official website : "Promise based HTTP client for the browser and node.js" translate : be based on Promise Of HTTP ...
- Linux High concurrency socket Maximum number of connections tuning of various restrictions
1. Modify the limit on the number of files that can be opened by the user process stay Linux On the platform , No matter write client program or server program , In high concurrency TCP Connection processing , The maximum number of concurrent applications is limited by the number of files that can be opened simultaneously by a single user process ( This is because the system works for every ...