JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
475 stars 87 forks source link

miniconda fully installed by default on macOS unless explicitly set ENV["PYTHON"] #415

Closed xdavidliu closed 5 years ago

xdavidliu commented 5 years ago

this behavior is noted in the installation instructions for IJulia for the case in which the user already has jupyter installed through pip or conda, e.g. on macOS one must explicitly first do ENV["JUPYTER"]="jupyter", even if jupyter is already in the PATH, in order for IJulia to use an existing jupyter if it is already installed.

Here, if one already has python and matplotlib installed, then tries to Pkg.add("PyPlot") on macOS, the default behavior is to install the full ~2.0 gb miniconda into ~/.julia, even if python is already in the PATH. In order for PyPlot to use an existing python, it appears that it is necessary to explicitly do ENV["PYTHON"]="python" before adding PyPlot. This doesn't seem to be noted in the installation instructions.

stevengj commented 5 years ago

It's noted in the PyCall installation instructions: https://github.com/JuliaPy/PyCall.jl#installation

xdavidliu commented 5 years ago

that may be a pitfall / gotcha for people (like myself) who directly install PyPlot, with PyCall being installed automatically as a dependency