machine-learning-articles icon indicating copy to clipboard operation
machine-learning-articles copied to clipboard

Top 10 Magic Commands in Python to Boost your Productivity

Open khuyentran1401 opened this issue 4 years ago • 0 comments

TL;DR

Useful magic commands in iPython

Article Link

https://towardsdatascience.com/top-10-magic-commands-in-python-to-boost-your-productivity-1acac061c7a9

Author

Siddhesh Jadhav

Key Takeaways

Useful Code Snippets

# run external files
%run myCode.py

# overwrite another file in another notebook
%writefile myCode.py

# display content of external file
%pycat myCode.py

#list all variables 
%who

# Share variables between notebooks
%store my data

#In another notebook
%store -r myData

# list all magic command 
%lsmagic

Useful Tools

Comments/ Questions

khuyentran1401 avatar Apr 14 '20 00:04 khuyentran1401