Thanks for getting back on this. Here’s my output for the two commands.
I'm not the person who analyzes your outputs. It's YOU who try to understand them.
Get the outputs of the two commands
1) from within the regular pyferret;
2) from within the pyferret that is invoked by jupyter;
and compare (1) and (2).
As Martin suggests, compare the values of LD_LIBRARY_PATH and LD_RUN_PATH between the two cases.