PJLink icon indicating copy to clipboard operation
PJLink copied to clipboard

JLink but for python: a link between Mathematica and python with efficient data transfer

Results 11 PJLink issues
Sort by recently updated
recently updated
newest added

Hi b3m2a1, I was to follow your guide from: https://community.wolfram.com/groups/-/m/t/1468475 and when I run this block of code: ker = SubprocessKernel() def MEval (expr, wait = True, kernel = ker)...

Hi I got InstallPython[] running forever in Mathematica 12. Interception gives me the following message: ` "Failed to start python process for python executable python3. Got \ message:\\n\\n\!\(\*InterpretationBox[StyleBox[\"\\\"Traceback (most \...

I was trying the tutorial in the following [link](https://community.wolfram.com/groups/-/m/t/1468475). When I tried to load the image using topil() function, it resulted in the error - "ValueError: Size must be a...

If PJLink does not support Windows , please improve in future. thanks! There are two python envirmoents: Anaconda 5.2.0 (Python 3.6.5) and Python 3.6.3 by SystemInstall["Python"] (Dir: _C:\Users\Administrator\AppData\Roaming\Mathematica\ApplicationData\SystemInstall\Python_ ) on...

I am getting the following error on windows 10, mathematica 11.3 and python 3.6.7 as part of anaconda. ValueError: Couldn't find any MathLink library files in C:\Program Files\Wolfram Research\Mathematica\11.3\SystemFiles\Links\MathLink\DeveloperKit\Windows-x86-64\CompilerAdditions

I'm on v11.3 with MacOS 10.13.6. Doesn't seem to install as the Readme says: ``` In[82]:= PacletInstall["PJLink","Site"->"http://www.wolframcloud.com/objects/b3m2a1.paclets/PacletServer"] Out[82]= Paclet[PJLink,1.0.0,] In[83]:= ker=InstallPython[]; In[84]:= PyEvaluateString["import numpy as np"]; PyEvaluateString["np.random.rand(5, 5, 5)"]~Short~3 Out[85]//Short=...

Notice I edited `~/.Mathematica/Paclets/Repository/PJLink-.0.2/PJLink/MathLinkEnvironment.py:666` to reflect the actual installation root for Mathematica. ```text running build running build_ext building 'PJLinkNativeLibrary' extension creating build creating build/temp.linux-x86_64-3.6 gcc -pthread -B /opt/anaconda/compiler_compat -Wl,--sysroot=/ -Wsign-compare...

In my installation the binary is at: `/opt/Wolfram/Mathematica/11.3/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel` ```text ker = SubprocessKernel() ``` results in ```text --------------------------------------------------------------------------- ValueError Traceback (most recent call last) in () ----> 1 ker = SubprocessKernel()...

Encoders and decoders should be written for important data types (`SparseArray`, `Graph`, `Region`, etc.) so that users can build off of these.

Compiling PJLinkNativeLibrary is a pain. It'd be better to provide it precompiled as a .so for each platform where it'll be used (if possible). This is akin to what Mathematica...