Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation doesn't work for me #6

Closed
themightyoarfish opened this issue Jan 14, 2017 · 2 comments · Fixed by #9
Closed

Installation doesn't work for me #6

themightyoarfish opened this issue Jan 14, 2017 · 2 comments · Fixed by #9

Comments

@themightyoarfish
Copy link

themightyoarfish commented Jan 14, 2017

I don't know how to diagnose this really, but I have ran sudo pip install itermplot which installs to /opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages on my system. My package path contains this directory

In [5]: sys.path
Out[5]:
['',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python35.zip',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/plat-darwin',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/readline',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload',
 '/Users/Rasmus/Library/Python/3.5/lib/python/site-packages',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages', # <=====
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/IPython/extensions',
 '/Users/Rasmus/.ipython']

I have also exported the MLPBACKEND var:

echo $MPLBACKEND
module://itermplot

Still, when trying to run a script with plotting, I get an import error stating that the itermplot module was not found. How can I diagnose this?

@themightyoarfish themightyoarfish changed the title Installation doesn't work for me Installation doesn't work for me and uninstall fails Jan 14, 2017
@themightyoarfish themightyoarfish changed the title Installation doesn't work for me and uninstall fails Installation doesn't work for me Jan 14, 2017
@josephtbenton
Copy link

josephtbenton commented Jan 14, 2017

I'm having the same issue

EDIT: as a temporary fix, you can place the itermplot.py file in the directory where pip installs stuff. That worked for me. (I think setup.py isn't quite doing everything it needs to)

hbredin added a commit to hbredin/itermplot that referenced this issue Jan 15, 2017
@themightyoarfish
Copy link
Author

Nice. Can someone tell me how to access config parameters relating to this backend in my ipython_kernel_config.py? For the matplolib inline backend I would use

c = get_config()
c.InlineBackend.rc = {'figure.figsize': (10,10) }

but what do I do to increase the size of my figures in iTerm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants