yunabe / tslab

Interactive JavaScript and TypeScript programming with Jupyter
Apache License 2.0
702 stars 44 forks source link

jupyter kernelspec list does not show the tslab kernel #34

Open danvln opened 4 years ago

danvln commented 4 years ago

Is anything that's broken in this solution, I installed it but I do not see the kernel running. Anything special that I should do to get it running? There is no error, or issue that I see. How do I investigate it?

danvln commented 4 years ago

Any input on this?

yunabe commented 4 years ago

Could you share your information about your environment and what command you run?

Internally, tslab install invokes python/install.py with python3 (python in Windows) internally (source).

One possible reason of the problem is the Python tslab used to install the kernel is different from the Python used from your jupyter command (e.g. python3 and python2 are mixed). In Unix-like system, the kernel configs are usually installed under $HOME/.local/share/jupyter/kernels/tslab.

we684123 commented 4 years ago

me too!

Debian GNU/Linux 10 (buster) python3.8.4 jupyter core : 4.6.3 jupyter-notebook : 6.0.3 qtconsole : not installed ipython : 7.16.1 ipykernel : 5.3.3 jupyter client : 6.1.6 jupyter lab : not installed nbconvert : 5.6.1 ipywidgets : not installed nbformat : 5.0.7 traitlets : 4.3.3

docker

FROM python:3.8 as builder
MAINTAINER we684123
# for Atom_Hydrogen_remote_kernels_by_docker

RUN python -m pip install --upgrade pip 
RUN pip install notebook 
RUN apt-get update
RUN apt install npm -y
RUN npm install -g tslab 

FROM builder

EXPOSE 8888

CMD ["jupyter", "notebook", "--ip" ,"0.0.0.0", "--no-browser", "--allow-root","--port=8888"]
yunabe commented 4 years ago

Hi we684123,

You have to run tslab install after npm install -g tslab. https://github.com/yunabe/tslab#installing-tslab-1

we684123 commented 4 years ago

Hi yunabe Thank you very much! m( )m