Comments (12)
Update: I am able to get this to work if I specify the absolute path of the kernel file to the --existing flag.
from qtconsole.
Can you run it with --debug
and provide the output? It's possible that it's not looking in the CWD.
from qtconsole.
Hm, I can't seem to get command to run with the --debug flag. Using this command:
jupyter qtconsole --existing kernel-8103.json --ssh user@host --debug
Results in:
[JupyterQtConsoleApp] CRITICAL | Bad config encountered during initialization:
[JupyterQtConsoleApp] CRITICAL | Unrecognized flag: '--debug'
Thoughts?
from qtconsole.
I got the exact same problem and specifying the absolute path also solved this problem, thanks @shaunpatel!
jupyter 4.1.1
ipython 5.1.0
python 2.7.12
SUSE Linux Enterprise Server 11 (x86_64)
from qtconsole.
Can we close this issue since it is documented that you need the full path, or should we keep it open to search the local path?
from qtconsole.
IMO it'd be cool if it worked just with the local path, more convenient.
from qtconsole.
Hi,
Trying to do something similar, can't get it to work. My steps:
- running "%connect_info" on the notebook in a remote machine (the remote machine is notebook server).
- copying the json connection file into my local machine
- Run jupyter qtconsole --existing kernel.json --ssh user@host
The qtconsole comes up, but shows "kernal died, restarting" repeatedly.
from qtconsole.
Hi,
I had the issue as shaunpatel until added the absolute path. Now, I'm in the same boat as edoson:
[JupyterQtConsoleApp] WARNING | kernel died: 3.00207400322
[JupyterQtConsoleApp] WARNING | kernel died: 3.00264906883
[JupyterQtConsoleApp] WARNING | kernel died: 3.00072693825
[JupyterQtConsoleApp] WARNING | kernel died: 3.00230789185
[JupyterQtConsoleApp] WARNING | kernel died: 3.00383901596
thanks
from qtconsole.
@Migelo and @shaunpatel , how did you guys make it work ? I'm getting the same error "kernel died"
jupyter qtconsole --existing C://Users//username//kernel-32488.json user@host
[JupyterQtConsoleApp] WARNING | kernel died: 3.00600004196
[JupyterQtConsoleApp] WARNING | kernel died: 2.98300004005
[JupyterQtConsoleApp] WARNING | kernel died: 3.00899982452
[JupyterQtConsoleApp] WARNING | kernel died: 3.00999999046
[JupyterQtConsoleApp] WARNING | kernel died: 2.99699997902
from qtconsole.
from qtconsole.
@Migelo Thanks for replying. ( I was giving that command with the forward slash '/' because i was trying something in git bash installed on the windows machine)
When I give this command ( which is more windows like)
jupyter qtconsole --existing c:\Users\username\kernel-32488.json --ssh user@hostname
, it gives me this weird error.
[JupyterQtConsoleApp] Forwarding connections to 127.0.0.1 via user@hostname
[JupyterQtConsoleApp] ERROR | Could not setup tunnels
Traceback (most recent call last):
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\jupyter_client\consol
eapp.py", line 229, in init_ssh
newports = tunnel_to_kernel(info, self.sshserver, self.sshkey)
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\jupyter_client\connec
t.py", line 258, in tunnel_to_kernel
if tunnel.try_passwordless_ssh(sshserver, sshkey):
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\zmq\ssh\tunnel.py", l
ine 82, in try_passwordless_ssh
return f(server, keyfile)
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\zmq\ssh\tunnel.py", l
ine 126, in _try_passwordless_paramiko
look_for_keys=True)
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\paramiko\client.py",
line 381, in connect
look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\paramiko\client.py",
line 543, in _auth
key = pkey_class.from_private_key_file(key_filename, password)
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\paramiko\pkey.py", li
ne 196, in from_private_key_file
key = cls(filename=filename, password=password)
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\paramiko\rsakey.py",
line 46, in __init__
self._from_private_key_file(filename, password)
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\paramiko\rsakey.py",
line 173, in _from_private_key_file
data = self._read_private_key_file('RSA', filename, password)
File "C:\Users\msrta\AppData\Local\Continuum\Anaconda2\envs\conda3\lib\site-packages\paramiko\pkey.py", li
ne 267, in _read_private_key_file
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: ''
from qtconsole.
Sorry it took me so long. I don't have any idea.
from qtconsole.
Related Issues (20)
- qtconsole packaged into .app macOS bundle using py2app
- Crash on PySide6 due to version checking HOT 1
- Catching Ctrl-Z and Ctrl-\
- Question: Removal of ipython_genutils HOT 1
- Values missing from console when running automatically
- AttributeError: 'QtInProcessChannel' object has no attribute 'closed' HOT 2
- How to access objects in my application follow the example qtconsole/examples/inprocess_qtconsole.py? HOT 2
- Qt bindings version outdated in documentation HOT 2
- Matplotlib Qt5Agg backend is given anonymous icon when used with qtconsole on macOS HOT 3
- Weird pytest error: 'CompletionHtml' object has no attribute '_text_edit' HOT 4
- Qtconsole quits when trying to drag in PyQt6 HOT 12
- Segmentation Fault on `jupyter qtconsole` HOT 10
- Stop using `IPythonLexer` from ` IPython.lib.lexers` HOT 3
- TypeError due to wrong spelling in keyword HOT 1
- compute_item_matrix() got an unexpected keyword argument 'displaywidth' HOT 1
- New tab causes crash for --existing kernels
- intersphinx warning HOT 1
- possibly removing `qtconsole` from jupyter metapackage HOT 2
- Horizontal scrolling not updated until wndow resize event HOT 3
- misspelled keyword arg in qtconsole.util.compute_item_matrix HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtconsole.