Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Follow publication

Jupyter + IDE: how to make it work

3 min readFeb 14, 2021

--

Introduction

Pros & Cons

Example test suite in PyCharm using pytest.

Workflow setup

cd YOUR_PROJECT_ROOT
mkdir lib
from setuptools import setup
setup(
name='lib',
version='0.1.0',
packages=['lib'],
)
pip install -e .
|-- setup.py
|-- lib
| |-- __init__.py
| |-- tools
| |-- __init__.py
| |-- tool.py
def yo():
print("Hello World")
>>> from lib.tools.tool import yo
>>> yo()
Hello World
%load_ext autoreload
%autoreload 2

Result

I edited the function to print a different string in an IDE.

How I actually use this workflow:

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Denis Kazakov
Denis Kazakov

No responses yet