Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to find the path of kernel #13

Closed
914191848 opened this issue Oct 14, 2019 · 2 comments
Closed

how to find the path of kernel #13

914191848 opened this issue Oct 14, 2019 · 2 comments
Labels
question Further information is requested

Comments

@914191848
Copy link

I want to use the wolframclient by my python in anaconda, but raise the error that:

WolframKernelException: Cannot locate a kernel automatically. Please provide an explicit kernel path.

how can i find the path of kernel

@DbxDev
Copy link
Contributor

DbxDev commented Oct 14, 2019

This error comes from the fact that you probably have installed the wolfram kernel in a non-default location. This is perfectly fine, but the library cannot find it automatically, so you need to specify the path manually.
A kernel is a binary called WolframKernel.
Using Mathematica/WolframDesktop or the Wolfram Engine evaluate: First@$CommandLine. It'll return the path to a Wolfram Kernel. Use this path in Python to initialize instances of WolframLanguageSession as explained in the documentation.

@DbxDev
Copy link
Contributor

DbxDev commented Apr 1, 2020

Did this answer your question?

@DbxDev DbxDev added the question Further information is requested label Apr 1, 2020
@DbxDev DbxDev closed this as completed Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants