Closed mario-grgic closed 7 years ago
Please, could you run ijsconsole --ijs-debug
and post the output here? It'll help me debug/reproduce the issue.
The current keybinding to exit the Jupyter console (Ctrl-d
) is really hard to discover. I've just opened issue #112 to remind me to update ijsconsole
so that it prints out this info.
Here is the debug output:
$ ijsconsole --ijs-debug
IJS: CONTEXT: { path:
{ node: '/usr/local/bin/node',
root: '/usr/local/lib/node_modules/ijavascript',
kernel: '/usr/local/lib/node_modules/ijavascript/lib/kernel.js',
images: '/usr/local/lib/node_modules/ijavascript/images' },
packageJSON:
{ _from: 'ijavascript',
_id: 'ijavascript@5.0.19',
_inBundle: false,
_integrity: 'sha1-O9O0Z0vr48av8kD4TU/Y4Ls4yOA=',
_location: '/ijavascript',
_phantomChildren: {},
_requested:
{ type: 'tag',
registry: true,
raw: 'ijavascript',
name: 'ijavascript',
escapedName: 'ijavascript',
rawSpec: '',
saveSpec: null,
fetchSpec: 'latest' },
_requiredBy: [ '#USER' ],
_resolved: 'https://registry.npmjs.org/ijavascript/-/ijavascript-5.0.19.tgz',
_shasum: '3bd3b4674bebe3c6aff240f84d4fd8e0bb38c8e0',
_spec: 'ijavascript',
_where: '/Volumes/ramdisk',
author:
{ email: 'enquiries@nicolasriesco.net',
url: 'http://www.nicolasriesco.net/' },
bin:
{ ijs: 'bin/ijavascript.js',
ijsconsole: 'bin/ijsconsole.js',
ijsinstall: 'bin/ijsinstall.js',
ijskernel: 'lib/kernel.js',
ijsnotebook: 'bin/ijsnotebook.js' },
bugs: { url: 'https://github.com/n-riesco/ijavascript/issues' },
bundleDependencies: false,
contributors:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ],
dependencies: { 'jp-kernel': '0.1.x' },
deprecated: false,
description: 'IJavascript is a Javascript kernel for the Jupyter notebook',
devDependencies:
{ debug: 'latest',
jsdoc: 'latest',
jshint: 'latest',
mocha: '3',
uuid: '^3.0.1' },
homepage: 'https://n-riesco.github.io/ijavascript',
keywords: [ 'javascript', 'kernel', 'ipython', 'jupyter' ],
license: 'BSD-3-Clause',
name: 'ijavascript',
repository:
{ type: 'git',
url: 'git+https://github.com/n-riesco/ijavascript.git' },
scripts:
{ doc: 'python scripts/doc-build.py',
'doc:publish': 'node scripts/doc-publish.js gh-pages https://github.com/n-riesco/ijavascript',
lint: 'jshint bin lib',
test: 'npm run lint && npm run test:ijskernel',
'test:ijskernel': 'mocha test/ijskernel.js' },
version: '5.0.19' },
flag: { hideUndefined: false, debug: true },
args:
{ kernel:
[ 'ijskernel',
'--debug',
'--show-undefined',
'{connection_file}',
'--protocol=5.0' ],
frontend: [ 'jupyter', 'console' ] },
protocol: { version: '5.0', majorVersion: 5 },
frontend: { version: '4.3.0', majorVersion: 4 } }
Jupyter console 5.2.0
Python 2.7.10 (default, Feb 7 2017, 00:08:15)
Type "copyright", "credits" or "license" for more information.
IPython 5.4.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: exit
Shutting down kernel
$
I can only manually start jupyter console with javascript kernel with:
Starting the kernel and IPython manually like this works, but then none of the IPython magic commands work, and there is not way to exit from IPython without killing the process from different shell or closing the terminal window itself.