Dead kernel installing ipyleaflet

Hi all,

Jupyter notebook fails on installing ipyleaflet using the command>

%pip install ipyleaflet

Surprisely, there is no error during the setup but it is not finally installed. I am executing jupyter-notebook (5.2.2.) using Python 2.7 (on a Ubuntu 18.04 from VB)

Do you have to avoid the “dead kernel” issue? I need to install this package.

Thanks in advance!

Does your instance have a good amount of memory and not much else running when this happens?
Did you use conda to do the installation of Jupyter and Python? If so, maybe try in your terminal conda install -c conda-forge ipyleaflet listed here.
Or eliminate the kernel being involved by trying in the terminal pip install ipyleaflet. (Normally what you are trying with running %pip install ipyleaflet in the notebook is best, but maybe to troubleshoot it is worth trying the terminal.)
If the install goes okay, with that version of the old notebook, you’ll need jupyter nbextension enable --py --sys-prefix ipyleaflet.

Or try from further down on the page:

jupyter nbextension install --py --symlink --sys-prefix ipyleaflet
jupyter nbextension enable --py --sys-prefix ipyleaflet

@fomightez I cannot install it outside the jupyter. I’ve tried to do the following but I get this error:

jupyter notebook
[E 10:29:28.388 NotebookApp] Exception while loading config file /home/rparada/.jupyter/
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/traitlets/config/", line 562, in _load_config_files
        config = loader.load_config()
      File "/usr/lib/python3/dist-packages/traitlets/config/", line 457, in load_config
      File "/usr/lib/python3/dist-packages/traitlets/config/", line 489, in _read_file_as_dict
        py3compat.execfile(conf_filename, namespace)
      File "/usr/lib/python3/dist-packages/ipython_genutils/", line 198, in execfile
        exec(compiler(, fname, 'exec'), glob, loc)
      File "/home/rparada/.jupyter/", line 671, in <module>
        NotebookApp.max_buffer_size = 3221225472
    NameError: name 'NotebookApp' is not defined

How can I know the instance memory?

I could installed it from terminal. Thanks