On Oct 4, 2021, at 15:57, Christopher Jones wrote:

> On 4 Oct 2021, at 9:18 pm, Artemio González López wrote:
> 
>> I only experienced a very minor glitch, namely that for some reason 
>> (probably a minor bug?) the /opt/local/Library/Frameworks/Versions/3.9/bin 
>> directory where jupyter resides is not in the $PATH, so you must add it by 
>> hand if you want to invoke (say) jupyter with just its name.
> 
> No, that is not a bug but intentional. it is that way because in principle 
> you could have multiple versions installed, for different python versions. 
> For that reason one specific python version cannot place its binaries under 
> the default ${prefix}/bin with the nominal names, as that would prevent 
> others from then being installed.
> 
> The port does in fact install binaries, but they are suffixed with the python 
> version
> 
> Oberon ~/Projects/MacPorts/ports > port contents py39-jupyter_client | grep 
> bin
>   
> /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-kernel
>   
> /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-kernelspec
>   /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-run
>   /opt/local/bin/jupyter-kernel-3.9
>   /opt/local/bin/jupyter-kernelspec-3.9
>   /opt/local/bin/jupyter-run-3.9
> 
> 
> so to run a specific version (for a given python version) run XYZ-3.9 etc.

That's right.

The "select" mechanism has already been mentioned earlier in this thread. It 
has been requested that the py-jupyter ports be given a "select" 
implementation, but so far that request has not been acted upon. See 
https://trac.macports.org/ticket/62414

Reply via email to