Discussion:
[Matplotlib-users] [matplotlib-devel] Easy problem working with dev library
Paul Hobson
2015-05-17 01:20:03 UTC
Permalink
On Saturday, May 16, 2015 at 14:58, Neil Girdhar <***@gmail.com>, wrote:



Thanks, and if I want to revert my system to its old matplotlib?








​

​

​Assuming you cloned the repo from git, just checkout any revision you want.

​
If didn't clone from git, just reinstall matplotlib anyway you want. 










​-Paul. 







On Sat, May 16, 2015 at 5:52 PM, Paul Hobson <***@gmail.com> wrote:

After you've setup your development environment with all of the MPL dependencies, navigate to the MPL source directory and install it with:


$ python setup.py develop




or




$ pip install -e .




That'll create a link in site-packages (or whatever that directory is) to the source directory. After you make changes to the source code, you'll either need to use the "imp" module to reload MPL and the submodule you changed. I typically find it easier to just restart my python interpreter.

-Paul






On Sat, May 16, 2015 at 1:45 PM, Neil Girdhar <***@gmail.com> wrote:





How do I set it up so that I can import my local matplotlib dev copy?


I tried making a sym-link to matplotlib/lib/matplotlib, but it's giving me errors:





    import matplotlib.transforms as mtransforms

AttributeError: 'module' object has no attribute 'transforms'






Thanks,




Neil






------------------------------------------------------------------------------

One dashboard for servers and applications across Physical-Virtual-Cloud

Widest out-of-the-box monitoring support with 50+ applications

Performance metrics, stats and reports that give you Actionable Insights

Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
Eric Firing
2015-05-17 01:35:49 UTC
Permalink
Post by Paul Hobson
Thanks, and if I want to revert my system to its old matplotlib?


​Assuming you cloned the repo from git, just checkout any revision you want.
But you have to rerun the "pip install -e ." or "setup.py develop" so
that the extension code will be rebuilt if there were any extension code
changes between revisions.
Post by Paul Hobson

If didn't clone from git, just reinstall matplotlib anyway you want.
It's not as simple as that, unfortunately, because different
installation methods put things in different places. For example, if
you are on linux, the package manager will install the /usr tree while
setup etc will install in the /usr/local tree.

The usual advice for getting around such problems is to use a fresh
virtualenv (or conda environment if you are using Anaconda) for your
development. Alternatively you can use a user install to a location of
your choice and then add that to your PYTHONPATH when you want to work
in development mode, and remove it when you want to run with whatever
python environment you had before.

Eric
Post by Paul Hobson
​-Paul.
After you've setup your development environment with all of the
MPL dependencies, navigate to the MPL source directory and
$ python setup.py develop
or
$ pip install -e .
That'll create a link in site-packages (or whatever that
directory is) to the source directory. After you make changes to
the source code, you'll either need to use the "imp" module to
reload MPL and the submodule you changed. I typically find it
easier to just restart my python interpreter.
-Paul
On Sat, May 16, 2015 at 1:45 PM, Neil Girdhar
How do I set it up so that I can import my local matplotlib
dev copy?
I tried making a sym-link to matplotlib/lib/matplotlib, but
import matplotlib.transforms as mtransforms
AttributeError: 'module' object has no attribute 'transforms'
Thanks,
Neil
------------------------------------------------------------------------------
One dashboard for servers and applications across
Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you
Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Matplotlib-devel mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...