As @devang says, native GHPython will be unable to read most Python 3 libraries given that it uses Python 2.7 and the only reason why many of our ladybug tools core libraries can be loaded by GHPYthon from that folder is that we have written many of the LBT core libraries specially to work in both Python 2 and Python 3.
To more specifically answer your question about whether you could connect ghpythonremote to the Python 3 that installs with Ladybug Tools, I haven’t tested it but I see no reason why you couldn’t.
If I were to make a recommendation about what I think it the “best” way (or at least the most reusable way) to give access to Python 3 functionality in Grasshopper right now, it would be through a command line interface for the Python package that you call with subprocess
in a native GH Python component. You can see that we actually do a version of this on Mac right now to get around the fact that the IronPython sqlite3
module on Mac is broken. We just make a call to the honeybee-energy CLI:
And here’s the command that is being called: