scanpy icon indicating copy to clipboard operation
scanpy copied to clipboard

Jupyter Notebook vs Python/PyCharm

Open hansen7 opened this issue 3 years ago • 3 comments

Hi, there.

I am following the tutorial here, it works perfectly with Jupyter Notebook, but I do encounter the following errors when running the code in command line or PyCharm.

  • [x] I have checked that this issue has not already been reported.
  • [x] I have confirmed this bug exists on the latest version of scanpy.
  • [ ] (optional) I have confirmed this bug exists on the master branch of scanpy.

Minimal code sample (that we can copy&paste without having any data)

from https://scanpy-tutorials.readthedocs.io/en/latest/pbmc3k.html

adata.var['mt'] = adata.var_names.str.startswith('MT-')
sc.pp.calculate_qc_metrics(adata, qc_vars=['mt'], percent_top=None, log1p=False, inplace=True)
TypeError: calculate_qc_metrics() got an unexpected keyword argument 'log1p'

Versions

[Paste the output of scanpy.logging.print_versions() leaving a blank line after the details tag]

hansen7 avatar Mar 22 '22 21:03 hansen7

Hi,

As requested in the issue template, what scanpy versions are you running? Thanks.

Zethson avatar Mar 24 '22 10:03 Zethson

Thanks, I am running the version of 1.4.5.1

hansen7 avatar Mar 24 '22 10:03 hansen7

Thanks, I am running the version of 1.4.5.1

Assuming that it is one of 1.4.1 or 1.5.1 I would suggest that you upgrade to the latest scanpy version. What you are using is quite old. If the problem still occurs we can discuss it further.

Zethson avatar Mar 24 '22 10:03 Zethson