I\'ve seen similar posts but haven\'t seen any reply that really addresses the difference in outputs between Jupyter Notebook and PyCharm.
An example is like this:
The reason is because Pycharm is running in script mode, while Jupyter is working in interactive mode. You can add print statements such as print(now)
to see the output, or you can run the code in the Pycharm interactive interpreter.
See this for more details on interactive mode Python interpretation difference in interactive mode and script mode
See this for more details on how to use the Pycharm interactive interpreter Does Pycharm have Interactive Python Interpreter?