[PYTHON] Jupyter Tips 5

Introducing Jupyter's (minor) magic commands

Continuation of Jupyter's Tips 4 --Qiita

% precision: Display digit number setting

--Usage 1 % precision: Show default settings --Usage 2 % precision 3: Set to display 3 digits after the decimal point --Usage 3 % precision% 08.3f: 3 digits after the decimal point, 8 digits in total, set to fill the beginning with 0

% bookmark,% cd,% pwd: Directory manipulation

Example of use

Register c: \ temp as a workingdir (any name) directory

jupyter


%bookmark workingdir c:\temp

Registered list display

jupyter


%bookmark -l
>>>
Current bookmarks:
workingdir -> c:\temp

Current directory display

jupyter


%pwd
>>>
'C:\\Users\\tsutomu\\Documents'

Move to the registered directory

jupyter


%cd workingdir
>>>
(bookmark:workingdir) -> c:\temp
c:\temp

Return to the original directory

jupyter


%cd -
>>>
C:\Users\tsutomu\Documents

Bookmark deletion

jupyter


%bookmark -d workingdir

Delete all bookmarks

jupyter


%bookmark -r

reference

Built-in magic commands — IPython 3.2.1 documentation

that's all

Recommended Posts

Jupyter Tips 4
Jupyter Tips 5
Jupyter Tips 3
Jupyter Tips 2
python tips
Jupyter begins
numpy tips
python tips
Scapy Tips
Jupyter Notebook: 4 banal tips and tricks
Jupyter installation
Jupyter tricks
Python Tips
Python tips
Python Conda Tips
Jupyter installation error
Jupyter Notebook memo
Introducing Jupyter Notebook
Jupyter Lab begins
Django's personal tips
Python debugging tips
Python click tips
Powerful Jupyter Notebook
[pandas] GroupBy Tips
Unexpectedly (?) Python tips
Golang on jupyter
Tensorflow personal tips
Bash in Jupyter
Django Template Tips
Jupyter on AWS
fabric Writing Tips
Jupyter Study Note_002
Jupyter notebook password
Build Jupyter Hub
Jupyter Notebook memo
Jupyter study notes_008
LTTng Tracing Tips
Jupyter study notes_004
jupyter qtconsole config
Jupyter study notes_001
Jupyter Study Note_003
Jupyter Study Note_007
Choregraphe Tips Collection
Jupyter Study Note_005
[Tips] Save / copy the graph displayed in Jupyter Lab