title: How to count lines of code in jupyter notebook
body: <p>I'm currently using Jupyter ipython notebook and the file I am working with has a lot of code. I am just curious as to how many lines of code there exactly are in my file. It is hard to count since I have separated my code into many different blocks. </p>
  
  <p>For anyone who is experienced with jupyter notebook, how do you count how many total lines of code there are in the file?</p>
  
  <p>Thanks!</p>
  
  <p><em>Edit: I've figured out how to do this, although in a pretty obscure way. Here's how: download the jupyter notebook as a .py file, and then open the .py file in software like Xcode, or whatever IDE you use, and count the lines of code there.</em></p>