winpython / winpython

A free Python-distribution for Windows platform, including prebuilt packages for Scientific Python.
https://winpython.github.io/
MIT License
1.82k stars 301 forks source link

Installing MATLAB Jupyter Kernel on WinPython #477

Open RoyiAvital opened 7 years ago

RoyiAvital commented 7 years ago

Hello,

I installed MATLAB Jupyter Kernel on my portable WinPython installation.
I wrote the procedure to do so in this Wiki - Installing MATLAB Kernel with WinPython.

I have one issue (Stated on Wiki), The MATLAB Kernel is installed C:\ProgramData\jupyter\kernels\matlab.

  1. I would guess it is installed there because of a path variable in WinPython which directs it there. In order to be Portable, could this variable direct it some other place?
  2. Is there a place I can move this folder C:\ProgramData\jupyter\kernels\matlab into WinPython folder and Jupyter will find this kernel?

Thank You.

P. S. We really must find all variable to make WinPython really portable.

stonebig commented 7 years ago

Hi @RoyiAvital

You're welcome to hunt what variable was/is to redefine. Apparently, Jupyter internals have moved since last time I did that effort.

Perhaps renaming (copying ?) your directory: C:\ProgramData\jupyter\kernels\matlab as ...\winpython-nnbit-x.y.z.aa\tools\mingw32\bin

RoyiAvital commented 7 years ago

@stonebig , Unfortunately I have zero knowledge how those programs interact with each other.

There 3 files in the folder created:

  1. kernel.json.
  2. 2 Logo Files.

The json file internals are:

{"argv": ["D:\\Applications\\Programming\\WinPython\\WinPython-64bit-3.5.2.2Qt5\\scripts\\..\\python-3.5.2.amd64\\python.exe", "-m", "matlab_kernel", "-f", "{connection_file}"], "display_name": "Matlab", "language": "matlab", "mimetype": "text/x-octave", "name": "matlab"}

Where is the variable defining the path where Jupyter is looking for new Kernels?

My version of WinPython is python-3.5.2.amd64.

Thank you for your great effort.

RoyiAvital commented 6 years ago

Any updates on this?

stonebig commented 6 years ago

no time, sorry. you may ask for help on stackoverflow.