I ran sys.path in Atom and got: ['/Users/Dean', '/Users/anaconda/lib/python35.zip', '/Users/anaconda/lib/python3.5', '/Users/anaconda/lib/python3.5/plat-darwin', '/Users/anaconda/lib/python3.5/lib-dynload', '/Users/anaconda/lib/python3.5/site-packages', '/Users/anaconda/lib/python3.5/site-packages/Sphinx-1.4.1-py3.5.egg', '/Users/anaconda/lib/python3.5/site-packages/aeosa', '/Users/anaconda/lib/python3.5/site-packages/setuptools-23.0.0-py3.5.egg']
The difference is in the python/package versions. My terminal is also running this same path. On Thu, Jul 13, 2017 at 11:50 AM, Dean Sayre <[email protected]> wrote: > The executable spits out: /Users/Dean/anaconda3/bin/python > > and the path: ['', '/Users/Dean/anaconda3/lib/python36.zip', > '/Users/Dean/anaconda3/lib/python3.6', > '/Users/Dean/anaconda3/lib/python3.6/lib-dynload', > '/Users/Dean/anaconda3/lib/python3.6/site-packages', > '/Users/Dean/anaconda3/lib/python3.6/site-packages/Sphinx-1.5.6-py3.6.egg', > '/Users/Dean/anaconda3/lib/python3.6/site-packages/aeosa', > '/Users/Dean/anaconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg', > '/Users/Dean/anaconda3/lib/python3.6/site-packages/IPython/extensions', > '/Users/Dean/.ipython'] > > I'm a bit of a mediocre programmer here, so I don't really know how to > analyze the two. > > On Thu, Jul 13, 2017 at 12:55 AM, Thomas Kluyver <[email protected]> wrote: > >> 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.readthedo >>> cs.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/ms >>> gid/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 a topic in the >> Google Groups "Project Jupyter" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/jupyter/46Rj3tB0r_g/unsubscribe. >> To unsubscribe from this group and all its topics, 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/ms >> gid/jupyter/CAOvn4qi9RCzrJrB_G1PyHEREqCG0irFhkHt%3DVWAqTM1bE >> -EX2Q%40mail.gmail.com >> <https://groups.google.com/d/msgid/jupyter/CAOvn4qi9RCzrJrB_G1PyHEREqCG0irFhkHt%3DVWAqTM1bE-EX2Q%40mail.gmail.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/CAPVseB_JepSLxxaEBS%2B7P9vo7_w74LUiP35Q9%3DdikUAFn6PooA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
