user4334596
user4334596

Reputation:

Modules work in python interpreter but not in iPython

Ever since I configured iPython with the ability to switch between python 2 & 3 kernels, my modules stopped importing in iPython. Is this a path issue? How do I fix it?

Upvotes: 0

Views: 533

Answers (1)

DevLounge
DevLounge

Reputation: 8437

2 possibilities:

  1. Your modules are not installed in both your Python 2.X AND Python 3.X kernels site_packages
  2. You install modules from the command line but do not restart your Jupyter Notebook server. In this case, activate autoreload

However, as stated in the docs: "C extension modules cannot be reloaded, and so cannot be autoreloaded", are those modules C extensions kind of modules by chance?

Upvotes: 1

Related Questions