Effective PyCharm Transcripts
Chapter: Data science tools
Lecture: Concepts: Data science mode

Login or purchase this course to watch this video and the rest of the course contents.
0:01 We saw when working with libraries like NumPy that are typically used in data science, PyCharm detects this and suggests that it goes
0:10 into what is called scientific mode, and in scientific mode, we have the couple of tool windows that rearrange themselves
0:17 and you can always get to this under the menu system but it's nice that PyCharm suggests it. Over here we have our main editor,
0:25 we have our code documentation and this really only worked when you actually have the library fully installed, remember we had a virtual environment,
0:34 NumPy was not installed, we had to use our code intention to install it,
0:36 then it started working, and then down at the bottom, we have this Python console. Now notice, this is an IPython console here
0:45 and when I did the demo, for some reason, it was just a standard Python console, I couldn't get the IPython console to come back,
0:53 I'm pretty sure the intention is always to be an interactive IPython console, who knows, I'm not sure why it didn't come up for me
1:01 when I was doing the demo for you. So, it's really nice that these tools come up like this
1:05 and when we write our code, we'll see that we have another area called the SciView, so we have the documentation, but we also have this SciView.
1:15 Now, any sort of graph that is going to be shown will appear here, when you run it, whether you're debugging or you're not debugging,
1:24 so we saw that when we call plot.show normally that's a separate window per plot that just pops up
1:30 but if you do it inside PyCharm in this data science mode it will actually just here in this SciView over here, so that's pretty cool.
1:39 Now if we actually debug it and stop here in a break point, we get some more options,
1:45 so if you look down here at the bottom in the variables, in the debugger the things that are certain types of data science
1:53 variables like nd arrays from NumPy actually have this view as array, so if you click on the view as array, over here on the right
2:02 you'll see you have this nice visualization. Now this is not super exciting because it's one dimensional
2:07 but it could be two dimensional or more over here on the right, so it's pretty cool that this option is available while you're debugging as well.


Talk Python's Mastodon Michael Kennedy's Mastodon