Implied print(), head(), pyplot.show() statements

Answered

There are certain IDEs (namely jupyter notebook) where the print(), head(), or pyplot.show() are not necessary to be in the code. Is it possible to replicate this behavior in pycharm?

For example, the below code when executed in pycharm will not print anything.

from pandas_datareader import data
spy = data.get_data_yahoo("SPY", start="2000-01-01")
spy.head()

 

However, in jupyter notebook, the last line of the above code will interpreted as

print(spy.head())
0
1 comment

Please check Jupyter notebook integration in Pycharm: https://www.jetbrains.com/help/pycharm/2016.3/using-ipython-jupyter-notebook-with-pycharm.html and feel free to ask any questions.

0

Please sign in to leave a comment.