Skip to content

Commit

Permalink
MAINT Drop iPython dependency and simple print instead (#188)
Browse files Browse the repository at this point in the history
* remove ipython requirement from setup.py

* Add ipython to docs requirements

* Replace display with print
  • Loading branch information
adamgayoso authored Oct 19, 2023
1 parent 8fbcc2f commit bc76212
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ sphinx_gallery==0.11.1
sphinx_autodoc_typehints
sphinxcontrib-bibtex==2.5.0
gitpython>=3.1.27
ipython
5 changes: 2 additions & 3 deletions pydeseq2/ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import numpy as np
import pandas as pd
import statsmodels.api as sm # type: ignore
from IPython.display import display # type: ignore
from joblib import Parallel # type: ignore
from joblib import delayed # type: ignore
from joblib import parallel_backend # type: ignore
Expand Down Expand Up @@ -282,7 +281,7 @@ def summary(
f"Log2 fold change & Wald test p-value: "
f"{self.contrast[0]} {self.contrast[1]} vs {self.contrast[2]}"
)
display(self.results_df)
print(self.results_df)

def run_wald_test(self) -> None:
"""Perform a Wald test.
Expand Down Expand Up @@ -496,7 +495,7 @@ def lfc_shrink(self, coeff: Optional[str] = None) -> None:
f"{split_coeff[0]} {split_coeff[1]} vs {split_coeff[3]}"
)

display(self.results_df)
print(self.results_df)

def plot_MA(self, log: bool = True, save_path: Optional[str] = None, **kwargs):
"""
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
packages=find_packages(exclude=["tests*"]),
install_requires=[
"anndata>=0.8.0",
"ipython",
"numpy>=1.23.0",
"pandas>=1.4.0",
"scikit-learn>=1.1.0",
Expand Down

0 comments on commit bc76212

Please sign in to comment.