Switching from Jupyter to Pycharm

I completed a masters program in data science recently and we used Jupyter primarily.

Nothing wrong with Jupyter, but it's limiting. Like in our program we did procedural programming and I prefer object oriented which I find to be easier in pycharm when making games as a hobby.

The one thing that I like about jupyter is how I can just write

df.head(10)

and I will get the first 10 records in a table

however when I do thing in pycharm it does not return anything unless I begin with:

print(df.head(10))

am I doing something wrong, or does jupyter just have the ability to interpret my intention to have an output displayed when I write df.head(10) whereas pycharm simply runs it and only shows it when explicitly told to?

 

 

myloweslife

0

Hello,

when a file is being launched with Run Configuration

https://www.jetbrains.com/help/pycharm/creating-and-editing-run-debug-configurations.html , runfile() function is executed.  To get the same result as in Jupyter (where execution is processed line by line) you can select the code fragment, right-click and "Execute selection in Python Console".  Make sure the ipython package is installed. https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html

 

Also, Jupyter notebooks are supported in the professional version, please see https://www.jetbrains.com/help/pycharm/jupyter-notebook-support.html

 

Should you have any questions please let me know. 

 

0

请先登录再写评论。