I don’t understand the need for this new packaged system, which still uses 
J905, given that I was easily able to make the Anaconda-based Jupyter work with 
the existing J805 installation via jkernel — once I changed my path so the 
Anaconda python was first.

—> My remaining issue, as I reported, is that jkernel (and Anaconda jupyter and 
python) does not work with J806 (six).

Why would I want to have to maintain a whole separate J installation directory?

Os is this just to test a concept of bundling everything — with the goal of 
making the jupyter IDE a standard part of the J distribution?

Murray. 
> On May 8, 2017, at 9:17 PM, [email protected] wrote:
> 
> Mon, 8 May 2017 18:16:46 -0700
> From: chris burke <[email protected] <mailto:[email protected]>>
> To: General forum <[email protected] <mailto:[email protected]>>
> Subject: Re: [Jgeneral] jkernel: cannot start kernel from jupyter
>       notebook
> Message-ID:
>       <CAAK_udU6vGpPVezuoGXZHJgOtDG4nCjCiXnveHFKFhm=+an...@mail.gmail.com 
> <mailto:CAAK_udU6vGpPVezuoGXZHJgOtDG4nCjCiXnveHFKFhm=+an...@mail.gmail.com>>
> Content-Type: text/plain; charset=UTF-8
> 
> Murray
> 
> Sorry about the problems, but instead of trying to fix them, would you mind
> trying the new packaged jupyter system? In theory, that should work out of
> the box without having to be concerned with the python version. See
> code.jsoftware.com/wiki/Guides/Jupyter 
> <http://code.jsoftware.com/wiki/Guides/Jupyter> for details. Thanks.
> 
> Chris
> 
> 
> On Sun, May 7, 2017 at 9:29 AM, Murray Eisenberg <[email protected] 
> <mailto:[email protected]>>
> wrote:
> 
>> The root cause of not being able to start the J kernel from jupyter
>> notebook was that my path put first the python from MacPorts rather than
>> the python from Anaconda.
>> 
>> I’ve edited my .profile so as to put the Anaconda bin first, and now
>> jkernel does work — but only with J805.
>> 
>> It does _not_ work for me (after suitably editing the jkernel qjide.cfg)
>> with the current J806; I get a dead kernel.
>> 
>> Here’s the Terminal output showing the failure after I open jupyter
>> notebook and then in it open
>> 
>>   Resize_Bitmap_Images.ipynb
>> 
>> [murray@:~]$ jupyter notebook
>> [I 12:24:16.147 NotebookApp] Serving notebooks from local directory:
>> /Users/murray
>> [I 12:24:16.147 NotebookApp] 0 active kernels
>> [I 12:24:16.147 NotebookApp] The Jupyter Notebook is running at:
>> http://localhost:8888/?token=d632ac9f9ff6f46d87fad51de67200 
>> <http://localhost:8888/?token=d632ac9f9ff6f46d87fad51de67200>
>> 45f82429297587036b
>> [I 12:24:16.147 NotebookApp] Use Control-C to stop this server and shut
>> down all kernels (twice to skip confirmation).
>> [C 12:24:16.152 NotebookApp]
>> 
>>    Copy/paste this URL into your browser when you connect for the first
>> time,
>>    to login with a token:
>>        http://localhost:8888/?token=d632ac9f9ff6f46d87fad51de67200 
>> <http://localhost:8888/?token=d632ac9f9ff6f46d87fad51de67200>
>> 45f82429297587036b
>> [I 12:24:16.486 NotebookApp] Accepting one-time-token-authenticated
>> connection from ::1
>> [W 12:24:56.801 NotebookApp] Notebook j64-806-user/J-Jupyterjkernel
>> examples/Resize_Bitmap_Images.ipynb is not trusted
>> [I 12:24:56.987 NotebookApp] Kernel started: 36929a97-21fb-45c7-9cdc-
>> e20416a0533c
>> Traceback (most recent call last):
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 193, in _run_module_as_main
>>    "__main__", mod_spec)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 85, in _run_code
>>    exec(code, run_globals)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/jkernel.py", line 32, in <module>
>>    import qjide
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.py", line 166, in <module>
>>    code = compile(fp.read(),cfg,'exec')
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.cfg", line 56
>>    JInsFol = '/Applications/j64-806’
>>                                     ^
>> SyntaxError: EOL while scanning string literal
>> [I 12:24:59.986 NotebookApp] KernelRestarter: restarting kernel (1/5)
>> Traceback (most recent call last):
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 193, in _run_module_as_main
>>    "__main__", mod_spec)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 85, in _run_code
>>    exec(code, run_globals)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/jkernel.py", line 32, in <module>
>>    import qjide
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.py", line 166, in <module>
>>    code = compile(fp.read(),cfg,'exec')
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.cfg", line 56
>>    JInsFol = '/Applications/j64-806’
>>                                     ^
>> SyntaxError: EOL while scanning string literal
>> [I 12:25:02.990 NotebookApp] KernelRestarter: restarting kernel (2/5)
>> Traceback (most recent call last):
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 193, in _run_module_as_main
>>    "__main__", mod_spec)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 85, in _run_code
>>    exec(code, run_globals)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/jkernel.py", line 32, in <module>
>>    import qjide
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.py", line 166, in <module>
>>    code = compile(fp.read(),cfg,'exec')
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.cfg", line 56
>>    JInsFol = '/Applications/j64-806’
>>                                     ^
>> SyntaxError: EOL while scanning string literal
>> [I 12:25:05.994 NotebookApp] KernelRestarter: restarting kernel (3/5)
>> [W 12:25:07.036 NotebookApp] Timeout waiting for kernel_info reply from
>> 36929a97-21fb-45c7-9cdc-e20416a0533c
>> Traceback (most recent call last):
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 193, in _run_module_as_main
>>    "__main__", mod_spec)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 85, in _run_code
>>    exec(code, run_globals)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/jkernel.py", line 32, in <module>
>>    import qjide
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.py", line 166, in <module>
>>    code = compile(fp.read(),cfg,'exec')
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.cfg", line 56
>>    JInsFol = '/Applications/j64-806’
>>                                     ^
>> SyntaxError: EOL while scanning string literal
>> [I 12:25:08.998 NotebookApp] KernelRestarter: restarting kernel (4/5)
>> WARNING:root:kernel 36929a97-21fb-45c7-9cdc-e20416a0533c restarted
>> Traceback (most recent call last):
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 193, in _run_module_as_main
>>    "__main__", mod_spec)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/runpy.py",
>> line 85, in _run_code
>>    exec(code, run_globals)
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/jkernel.py", line 32, in <module>
>>    import qjide
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.py", line 166, in <module>
>>    code = compile(fp.read(),cfg,'exec')
>>  File "/Applications/Programming/Python/anaconda/lib/python3.6/
>> site-packages/jkernel/qjide.cfg", line 56
>>    JInsFol = '/Applications/j64-806’
>>                                     ^
>> SyntaxError: EOL while scanning string literal
>> [W 12:25:12.004 NotebookApp] KernelRestarter: restart failed
>> [W 12:25:12.004 NotebookApp] Kernel 36929a97-21fb-45c7-9cdc-e20416a0533c
>> died, removing from map.
>> ERROR:root:kernel 36929a97-21fb-45c7-9cdc-e20416a0533c restarted failed!
>> [W 12:25:12.014 NotebookApp] Kernel deleted before session
>> [W 12:25:12.015 NotebookApp] 410 DELETE 
>> /api/sessions/32bf5a4e-4cd2-497a-a87c-4bb3a8311ba9
>> (::1) 1.48ms referer=http://localhost:8888/notebooks/j64-806-user/J- 
>> <http://localhost:8888/notebooks/j64-806-user/J->
>> Jupyterjkernel%20examples/Resize_Bitmap_Images.ipynb
>> 
>> 
>> 
>>> On Mon, 24 Apr 2017 08:57:52,"Martin Saurer" <[email protected] 
>>> <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]>>> wrote:
>>> 
>>> 
>>> I updated the terminology from "Anaconda Launcher" to "Anaconda
>> Navigator"
>>> at the Jwiki as well as on Github README.md. Same for ipython-notebook
>>> to "Jupyter Notebook".
>>> Thanks for pointing me at this.
>>> 
>>> 
>>> A dying jkernel normally means that there is something wrong with the
>>> installation/configuration of the jkernel components.
>>> Please check the installation instructions.
>>> 
>>> In your original email you are using J806 beta 3. Unfortunately I cannot
>>> check whether this would work with Jupyter or not. My hardware is too
>>> old for J806 / AVX extension :-(
>>> 
>>> Can anybody confirm that J806 is working (or not) with Jupyter?
>>> 
>>> The problem with Jupyter and Python 2.7 (your 2nd email) is that the
>>> module "jkernel" was not found in the Python 2.7 environment:
>>> 
>>> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/
>> Resources/Python
>>> .app/Contents/MacOS/Python: No module named jkernel [I 11:09:42.308
>>> NotebookApp] KernelRestarter: restarting kernel (1/5)
>>> 
>>> 
>>> 
>>> So please try installing the "jkernel" module into the Python 2.7
>>> environment,
>>> 
>>> or continue to use Python 3.6 which I would recommend.
>>> 
>>> 
>>> 
>>> Is the "jkernel" working with J805 at your site?
>>> 
>>> Please let me know.
>> 
>> ——

——
Murray Eisenberg                                [email protected]
Mathematics & Statistics Dept.       
Lederle Graduate Research Tower      phone 240 246-7240 (H)
University of Massachusetts                
710 North Pleasant Street                 
Amherst, MA 01003-9305




----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to