Sitemap
Better Programming

Advice for programmers.

Follow publication

The Pros and Cons of Using Jupyter Notebooks as Your Editor for Data Science Work

5 min readMar 2, 2020
Zoom image will be displayed
Image by Gerd Altmann from Pixabay

Jupyter notebooks have three particularly strong benefits:

  • They’re great for showcasing your work. You can see both the code and the results. The notebooks at Kaggle is a particularly great example of this.
  • It’s easy to use other people’s work as a starting point. You can run cell by cell to better get an understanding of what the code does.
  • Very easy to host server side, which is useful for security purposes. A lot of data is sensitive and should be protected, and one of the steps toward that is no data is stored on local machines. A server-side Jupyter Notebook setup gives you that for free.

When prototyping, the cell-based approach of Jupyter notebooks is great. But you quickly end up programming several steps — instead of looking at object-oriented programming.

Downsides of Jupyter notebooks

When we’re writing code in cells instead of functions/classes/objects, you quickly end up with duplicate code that does the same thing, which is very hard to maintain.

Don’t get the support from a powerful IDE.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (7)

Write a response

I started with Spyder, and after a time with Pycharm, I moved for Visual Studio Code definitively. It is so lightweight, simple to use, and you can integrate it with Jupyter notebooks automatically.

5

After trying all IDEs over the last few years, I stopped at VSCode.

1

Use dagster.io to incorporate a notebook as one step of your pipeline. See an example here: https://dagster.readthedocs.io/en/0.6.6/sections/learn/airline_demo.html#dagstermill-executing-and-checkpointing-notebooks
This way you have the best of both…

3