Jupyter learning

A, Jupyter the magic command

% Load test.py: "test.py can load the file into the box jupyter

% Matplotlib inline: Matplotlib results can be embedded Jupyter, but does not actually need the code can work Matplotlib

% Ls: view the current file or directory folder detailed list of information

% Cd: switching the working path

% Run: perform a particular Python file

% Paste and% cpaste: paste the clipboard contents

% Pwd: Python view the current working directory and directory.

% Time,% timeit, %% time, %% timeit: four commands are used for code execution time of the test,% time to test a single cell or a single-line command execution time;% timeit% time and Similarly, the test can be done based on the number and returns the average time, for example 10 or 100 test, if not specified, the default is 1000 times the test;

% Hist: display input (optional output) command history, history is very useful when searching for command operations;

% Quickref: displaying a quick reference IPython;

% Magic: the magic show detailed documentation of all orders;

% Debug: enter the interactive debugger from the latest bottom exception trace, commonly used in debug time;

% Pdb: automatically enters the debugger after an exception;

% Prun statement: executes statement by Cprofile, and print out the result of the analyzer;

% Bookmark: bookmark to save a specific path, using the time directly after using the cd command to navigate to the book signing without full path;

% Alias: alias is defined as a specific command, especially when using the command contains a number of parameters;

% Xdel and% reset: both are deleted or variable name, the former delete a single object, which deletes the current interactive space for all variables or name;

%% bash: implementation of UNIX and Linux shell commands;

%% HTML: HTML implementation of the program;

%% Python2: Python2 program execution;

%% Python3: Python3 program execution;

%% ruby: Ruby implementation of the program;

%% perl: Perl implementation of the program;

Guess you like

Origin www.cnblogs.com/heshun/p/11272893.html