You may have a file called rebound.py in your home directory which you're importing instead of the real rebound package.
If you can't import it at all, that probably means that Jupyter is running on another Python installation or environment from the one on which you installed rebound. Packages have to be installed in each Python environment you want to use them from. Check sys.executable to see which Python you're running, and sys.path to see where it imports from. Thomas On 13 July 2017 at 00:09, Dean Sayre <[email protected]> wrote: > I usually use Atom as a text editor when coding, but I need to use the > notebook to make use of its widget capabilities. First off, running a > notebook in my home directory, I'm able to import Rebound but for some > reason it doesn't recognize one of the functions I jot down. I'm certain > that I have it typed in correctly, I've attached the screenshot. > > > Then I try running rebound outside of my home directory, and it doesn't > even recognize at all, leaving me unable to import it. > > I find this odd since I'm not having these problems in Atom. > > > I'm running Jupyter Notebook 5.0.0. If you'd like to know more about > rebound, here is the link: http://rebound.readthedocs.io/en/latest/ > index.html > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jupyter/2e7fdd83-7e90-4c1c-a05a-21e53e61aff7%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/2e7fdd83-7e90-4c1c-a05a-21e53e61aff7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAOvn4qi9RCzrJrB_G1PyHEREqCG0irFhkHt%3DVWAqTM1bE-EX2Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
