n-riesco / ijavascript

IJavascript is a javascript kernel for the Jupyter notebook
Other
2.18k stars 187 forks source link

ijsinstall: not working due to wrong use of ipython --user #286

Closed sohang3112 closed 2 months ago

sohang3112 commented 9 months ago
$ npm install -g ijavascript-await
$ ijsinstall 
Error running `ipython kernelspec install --replace C:\Users\SOHANG~1\AppData\Local\Temp\9828760a66989ad4df1621c6b0a8ff31\javascript --user`
ipython: error: argument --user: expected one argument

Environment / Versions

n-riesco commented 9 months ago

It looks like your installation is missing jupyter-client.

Have you installed jupyter in your computer? What method did you use?

sohang3112 commented 9 months ago

@n-riesco I installed using pip install jupyter. jupyter-client is installed on my laptop:

$ pip show jupyter-client
Name: jupyter_client                                                                                              12/13/2023 06:50:59 PMName: jupyter_client
Version: 7.4.8
...
n-riesco commented 9 months ago

In that case, we need to find out why ijsinstall can't run jupyter. What happens when you run jupyter kernelspec list in the same terminal you run ijsinstall?

sohang3112 commented 9 months ago

What happens when you run jupyter kernelspec list in the same terminal you run ijsinstall?

This output shows (since I have installed a few other kernels also):

$ jupyter kernelspec list                                                                                              12/16/2023 07:56:19 PM
0.01s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Available kernels:
  dyalog-kernel    C:\Users\SohangChopra\AppData\Roaming\jupyter\kernels\dyalog-kernel
  rust             C:\Users\SohangChopra\AppData\Roaming\jupyter\kernels\rust
  python3          C:\Users\SohangChopra\AppData\Local\Programs\Python\Python311\share\jupyter\kernels\python3
  forth            C:\ProgramData\jupyter\kernels\forth
  kernelspec       C:\ProgramData\jupyter\kernels\kernelspec
n-riesco commented 6 months ago

Try running 'ijsinstallin the same terminal wherejupyter kernelspec` is working and see if you get the same error message.

Otherwise, I need to find a windows machine to try and reproduce the problem.

sohang3112 commented 2 months ago

Closing this issue, as I'm not using ijavascript nowadays