Running Linux Mint 13 Maya (64-bit)
On both epd 7.3.2 (academic) and Canopy, when running notebook the kernel dies periodically. I get a pop-up that allows me to restart the kernel. I get this in the terminal window:
$ ipython notebook --pylab inline --notebook-dir=***
[NotebookApp] Using existing profile dir: u'*****.config/ipython/profile_default'
[NotebookApp] Serving notebooks from *****
[NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/
[NotebookApp] Use Control-C to stop this server and shut down all kernels.
[NotebookApp] Using MathJax from CDN: http://cdn.mathjax.org/mathjax/latest/MathJax.js
[NotebookApp] Kernel started: 5425f0fa-38cc-4e1e-a39d-736d3ac935e3
[NotebookApp] Connecting to: tcp://127.0.0.1:33939
[NotebookApp] Connecting to: tcp://127.0.0.1:52824
[NotebookApp] Connecting to: tcp://127.0.0.1:54440
[IPKernelApp] To connect another client to this kernel, use:
[IPKernelApp] --existing kernel-5425f0fa-38cc-4e1e-a39d-736d3ac935e3.json
[NotebookApp] Kernel 5425f0fa-38cc-4e1e-a39d-736d3ac935e3 failed to respond to heartbeat
[NotebookApp] Kernel started: dc484a8e-c822-46b1-bc6d-a1e019a67258
[NotebookApp] Connecting to: tcp://127.0.0.1:45376
[NotebookApp] Connecting to: tcp://127.0.0.1:54515
[NotebookApp] Connecting to: tcp://127.0.0.1:51380
[IPKernelApp] To connect another client to this kernel, use:
[IPKernelApp] --existing kernel-dc484a8e-c822-46b1-bc6d-a1e019a67258.json
[NotebookApp] Kernel dc484a8e-c822-46b1-bc6d-a1e019a67258 failed to respond to heartbeat
Your issue looks similar to https://github.com/ipython/ipython/issues/2824. It might be addressed in newer IPython versions, or you can find suggestions there.
I had the same problem using the latest Enthought Canopy Express (ex-EPD Free). To fix that, I just upgraded IPython to 0.13.1, and it stopped dying and began to work smoothly as with my other (standard own made) install of IPython.
I had similar issue, when I reboot system, for importing anything like sklearn or skimage it gives massage like "The kernel appears to have died. It will restart automatically." Then it does not restart at all, I had to reinstall canopy and then install all the packages i need.
Is there any way to repair canopy then reinstall?
Why this is happening most often
Related
The issue is as shown in the image below. The kernel runs but the output is not displayed.
For installation, I followed the steps under 'Python side configuration' and 'MATLAB side configuration' here.
Have tried the following:
All other kernels work normally
The issue persists in both Firefox and Chrome
Edit: There were no issues in the installation of the python engine.
sudo python3 setup.py install
[sudo] password for tinkidinki:
running install
running build
running build_py
running install_lib
copying build/lib/matlab/engine/_arch.txt -> /usr/local/lib/python3.8/dist-packages/matlab/engine
running install_egg_info
Removing /usr/local/lib/python3.8/dist-packages/matlabengineforpython-R2020b.egg-info
Writing /usr/local/lib/python3.8/dist-packages/matlabengineforpython-R2020b.egg-info
Most likely your antivirus program is blocking the output (e.g. Adaware antivirus often causes this problem).
If this is not the case: sometimes the output is shown in the command prompt window instead of in the Jupyter notebook, check if this is the case.
Try restarting the kernel in kernel option (yup, more of a workaround...)
When trying to open a new Remote-WSL window I run into an error during the "Installing VS Code Server in WSL (details): Installing WSL components" step. Appears it can not find the wslpath command.
I have tried looking at my PATH variables, I didn't see wslpath anywhere there nor do I know what the path should look like? I also tried reinstalling my linux distribution but that did not help.
[2019-07-09 12:23:39.266] Launching C:\Windows\System32\wsl.exe bash -c "'$(wslpath -u 'c:/Users/laida/.vscode/extensions/ms-vscode-remote.remote-wsl-0.38.8/scripts/wslServer.sh')' '0f3794b38477eea13fb47fbe15a42798e6129338' 'stable' '.vscode-server' 'C:/Users/laida/AppData/Local/Temp/vscode-remote-wsl/0f3794b38477eea13fb47fbe15a42798e6129338/vscode-server-linux-x64.tar.gz' 0 " in c:\Users\laida\.vscode\extensions\ms-vscode-remote.remote-wsl-0.38.8
[2019-07-09 12:23:39.562] /bin/bash: wslpath: command not found
[2019-07-09 12:23:39.562] bash: : command not found
[2019-07-09 12:25:10.024] VS Code Server for WSL failed to start. No messages received for 90s
I just ran into this today when starting up Remote - WSL. I am using an older Windows 10 version as #Biswapriyo noted, so I resolved it by installing wslpath from https://github.com/laurent22/wslpath
(Note: I also had to install php for that to work).
After that I was able to start Remote - WSL
I imagine that installing a newer Windows 10 version would probably work as well, but I'm unable to do that (managed image) and even if I were able that's kind of like killing an ant with a sledgehammer.
I recently began using julia, and I would like to use in with IPython Notebook/Jupyter.
So, I installed julia using MacPorts, i.e. sudo port install julia. Following the installation instructions here: https://github.com/JuliaLang/IJulia.jl
After the prompt, I used "Pkg.add("IJulia") to install IJulia.
However, I cannot use Julia with IPython notebook. After opening the notebook with
ipython notebook --profile=julia
the kernel for the julia notebook dies instantly and cannot be restarted.
The error on the Terminal shows:
[I 19:03:19.410 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel dc00ae3a-8fa6-4d01-a802-f7845a16a9ba restarted
ERROR: SHA256 not defined
in include at /opt/local/lib/julia/sys.dylib
in process_options at /opt/local/lib/julia/sys.dylib
in _start at /opt/local/lib/julia/sys.dylib
while loading /Users/NAME/.julia/v0.3/IJulia/src/kernel.jl, in expression starting on line 6
I suspect I have installed IJulia incorrectly? How can I solve this?
(The version of julia is julia version 0.3.11. The version of python is Python 2.7.10. The version of ipython is 4.0.0.)
The current stable version of Julia is v0.4.0.
You should download it directly from the Julia homepage (.dmg):
http://julialang.org/downloads/
Having done that, run it and do Pkg.add("IJulia") again.
Then from within Julia do
using IJulia
notebook()
Note that the Jupyter Notebook (the new name for what used to be the IPython Notebook) is run as
jupyter notebook
The --profile julia is no longer necessary and should be removed.
Furthermore, this (jupyter notebook) will only work if you had a previous installation of Jupyter, which seems to be the case. In this case, I suggest you upgrade it with conda, if you installed Anaconda, or with pip.)
When I run %qtconsole from within ipython3 I get ERROR: Line magic function%qtconsolenot found., but ipython3 qtconsole in terminal starts fine. According to this, how can I run qtconsole instance connected to ipython3 instance? And how to run it on a single core -- rc[0].execute(%qtconsole)?
P.S. If someone know, tell me please how to escape `(backquote) symbol in code-mode.
Reposting as an answer:
If you just run ipython3 in a terminal, what you get is a pure terminal interface, it's not running a kernel that the Qt console can talk to.
If you run ipython3 console, you'll get a similar interface but it will be talking to a kernel, so you can start a Qt console to interact with it. You can either run %qtconsole from inside that interface, or run ipython qtconsole --existing in a shell to start a Qt console and connect to an existing kernel.
I was using ipython notebook (packages in Anaconda-2.1.0 or Canopy-1.4.1) in "Windows Server 2008 R2 Enterprise" with browser (latest version of chrome or firefox). It was working perfectly.
Once another user has started ipython notebook in his account. At first, his ipython notebook was failed to run any notebook. The worst is that my ipython was also failed to open or create any notebook after restart the kernel. The windows popup a dialog of "Problem signature" with following information:
Problem Event Name: APPCRASH
Application Name: python.exe
Application Version: 0.0.0.0
Application Timestamp: 538f8ffc
Fault Module Name: oleshell874.dll
Fault Module Version: 8.7.4.0
Fault Module Timestamp: 54448aac
Exception Code: c0000005
Exception Offset: 0000000000004867
OS Version: 6.1.7600.2.0.0.274.10
Locale ID: 1033
Additional Information 1: a481
Additional Information 2: a481c64a34722f1c689be57b64ee6a54
Additional Information 3: 3393
Additional Information 4: 33936ce55b0e8b96f5dce6a43fae2e99
Even I reinstalled the Anaconda or Canopy and restarted the system, it won't help. I have tried to google the Fault Module (oleshell874.dll) but it shows no result.
Please help!
Thanks for your comment. I just tried to google "oleshell dll" and found this file is not related to ipython and windows. The ipython works again after I've renamed this file.