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 install with Miniconda Jupyter distribution #114

Open
reckoner opened this issue May 8, 2021 · 1 comment
Open

How to install with Miniconda Jupyter distribution #114

reckoner opened this issue May 8, 2021 · 1 comment

Comments

@reckoner
Copy link

reckoner commented May 8, 2021

I don't have the Anaconda distribution, but I do have the Miniconda distribution for Jupyter which requires conda activate before it runs. Is it possible to install this kernel in such Miniconda environments?

Traceback (most recent call last):

  File "d:\miniconda3\scripts\jupyter-kernelspec-script.py", line 5, \
in <module>

    from jupyter_client.kernelspecapp import KernelSpecApp

  File "d:\miniconda3\lib\site-packages\jupyter_client\__init__.py", \
line 4, in <module>

    from .connect import *

  File "d:\miniconda3\lib\site-packages\jupyter_client\connect.py", \
line 21, in <module>

    import zmq

  File "d:\miniconda3\lib\site-packages\zmq\__init__.py", line 55, in \
<module>

    from zmq import backend

  File "d:\miniconda3\lib\site-packages\zmq\backend\__init__.py", \
line 40, in <module>

    reraise(*exc_info)

  File "d:\miniconda3\lib\site-packages\zmq\utils\sixcerpt.py", line \
34, in reraise

    raise value

  File "d:\miniconda3\lib\site-packages\zmq\backend\__init__.py", \
line 27, in <module>

    _ns = select_backend(first)

  File "d:\miniconda3\lib\site-packages\zmq\backend\select.py", line \
28, in select_backend

    mod = __import__(name, fromlist=public_api)

  File "d:\miniconda3\lib\site-packages\zmq\backend\cython\__init__.\
py", line 6, in <module>

    from . import (constants, error, message, context,

ImportError: DLL load failed while importing error: The specified \
module could not be found.
@wzdlc1996
Copy link

wzdlc1996 commented Oct 29, 2021

If you use the method 1 in README to integrate mathkernel to jupyter, you need only run
./configure-jupyter.wls add $path_to_wolfram_engine $path_to_jupyter
For example, if your miniconda is installed in /home/usrname/dir and jupyter in the enviroment jupy, then $path_to_jupyter should be
/home/usrname/dir/envs/jupy/bin/jupyter

You may need to add wolframscript to your PATH such that env could find it. The .wls script should run in the directory containing WolframLanguageForJupyter package, usually it is the one git clone created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants