WolframLanguageForJupyter icon indicating copy to clipboard operation
WolframLanguageForJupyter copied to clipboard

Kernel not starting in JupyterLab but works fine in Jupyter Notebook

Open manu080797 opened this issue 5 years ago • 9 comments

I'm trying to run the Wolfram Engine in JupyterLab in macOS Mojave but the kernel never starts. Running "Jupyter notebook" the kernel starts and everything works fine. However when attempting the same in "jupyter-lab" the Wolfram Engine does not start and the kernel times out. The only warning I get in the console where Jupyter is running is:

 args::shdw: Symbol args appears in multiple contexts 
    {WolframLanguageForJupyter`, Global`}; definitions in context 
    WolframLanguageForJupyter` may shadow or be shadowed by other definitions.

but I get the same message in both JupyterLab and Jupyter notebook.

Software version:

macOS Mojave 10.14.6
Python 3.6.9 | Anaconda, Inc. | (default, Jul 30 2019, 13:42:17) 
GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)
Jupyter Notebook Server - version 6.0.1
Jupyter Lab - version 1.1.4
Wolfram Language For Jupyter 0.9.1
Wolfram Language 12.0.0 Engine for Mac OS X x86 (64-bit)

manu080797 avatar Oct 15 '19 00:10 manu080797

Some problems exist with JupyterLab for older versions of this project (e.g., the initial GitHub release). Can you give me more details on how you installed the project?

cc-wr avatar Oct 15 '19 14:10 cc-wr

I downloaded the repo in zip format and extracted it in Downloads folder. I installed Wolfram Engine 12. Then cd into ~/Downloads/WolframLanguageForJupyter-0.9.1 folder. Finally run: wolframscript configure-jupyter.wls add

manu080797 avatar Oct 21 '19 13:10 manu080797

Okay, thank you.

I have an additional question: with JupyterLab, do you run the Wolfram Language under a notebook or under a console?

cc-wr avatar Oct 21 '19 21:10 cc-wr

Either way fails, but works perfectly in Jupyter notebook. I have updated all my packages in the python environment and reinstalled (remove then add) Wolfram Language For Jupyter 0.9.1 with the procedure described above. I get the same behavior in the updated environment. Later, I will try installing the kernel in a python 3.7 environment to see if anything changes. Can you reproduce the bug?

manu080797 avatar Oct 21 '19 23:10 manu080797

Can you reproduce the bug?

I have not been able to yet, but I am still trying to.

cc-wr avatar Oct 23 '19 11:10 cc-wr

Running from the base-notebook Jupyter Docker stack, I installed WolframLanguageForJupyter from the Paclet. Jupyter Notebook works, but in JupyterLab I get the following:

[I 00:48:19.419 LabApp] Creating new notebook in /
[I 00:48:20.071 LabApp] Kernel started: c78ef30d-658c-4cfb-986a-c750d515ca32
No valid password found.
[I 00:48:23.070 LabApp] KernelRestarter: restarting kernel (1/5), new random ports
No valid password found.
[I 00:48:26.080 LabApp] KernelRestarter: restarting kernel (2/5), new random ports
No valid password found.
[I 00:48:29.088 LabApp] KernelRestarter: restarting kernel (3/5), new random ports
No valid password found.
[I 00:48:32.096 LabApp] KernelRestarter: restarting kernel (4/5), new random ports
No valid password found.
[W 00:48:35.104 LabApp] KernelRestarter: restart failed
[W 00:48:35.104 LabApp] Kernel c78ef30d-658c-4cfb-986a-c750d515ca32 died, removing from map.

maresb avatar Nov 09 '19 00:11 maresb

Now it works well with me. (Windows10, jupyterlab1.2.6) But inside jupyterlab, console with mma12 kernel still not works, and give out an error: "Error in getting kernel banner"

PhyX-Meow avatar Mar 05 '20 05:03 PhyX-Meow

It works in jupyterlab console, I just should try an "1+1", the only thing is the kernel banner has error being fetched. I think this issue could be closed @manu080797

PhyX-Meow avatar Mar 06 '20 06:03 PhyX-Meow

This could be caused that WolframKernel cannot find mathpass under your home directory.

LEXUGE avatar Oct 19 '20 04:10 LEXUGE