khuyentran1401 / machine-learning-articles

List of interesting articles on different topics of machine learning and deep learning
https://towardsdatascience.com/how-to-organize-your-data-science-articles-with-github-b5b9427dad37?source=friends_link&sk=4dfb338164ad6e95809d943f0dc0578e
164 stars 55 forks source link

Top 10 Magic Commands in Python to Boost your Productivity #24

Open khuyentran1401 opened 4 years ago

khuyentran1401 commented 4 years ago

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