OK, when I first got this I thought the issue stemmed from the ShimWarning, 
thus the name of the post.  While the  ShimWarning stands, the real issue 
is finding the kernel connection information. I'm using Anaconda and the 
kernel connection files, e.g., kernel-99999.json are being written to 
~\AppData\Roaming\jupyter\runtime\... instead of 
~\.ipython\profile_default\security\... When I hardcode the connection file 
name in ipython_kernel_config.py:: c.ConnectionFileMixin.connection_file the 
bridge seems to work. This isn't a good solution though since this 
essentially limits me to one kernel connection file, so I can't launch a 
Notebook while running Leo, etc.

Does anyone have any ideas why the connection files are being written to 
~\AppData\Roaming\jupyter\runtime\... instead of the expected 
~\.ipython\profile_default\security\...? 

 



On Sunday, December 20, 2015 at 12:51:39 PM UTC-5, Rafi Bin-Nun wrote:
>
> Hi, When launching Leo with the IPython bridge  python launchLeo.py 
> --ipython  I get what's listed below... am I doing something wrong?
>
>
> C:\Program Files (my)\Leo-5.1-final>python launchLeo.py --ipython
> C:\Program Files 
> (my)\Anaconda3_py35\lib\site-packages\IPython\kernel\__init__
> .py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You 
> shoul
> d import from ipykernel or jupyter_client instead.
>   "You should import from ipykernel or jupyter_client instead.", 
> ShimWarning)
> leoID=my (in C:\Users\rnun\.leo)
> reading settings in C:\Program Files 
> (my)\Anaconda3_py35\lib\leo\config\leoSet
> tings.leo
> reading settings in C:\Users\rnun\.leo\workbook.leo
>
> ** isPython3: True
> Leo 5.1-final, build 20150416183122, Thu Apr 16 18:31:22 CDT 2015
> Not running from a git repo
> Python 3.5.1, PyQt version 4.8.7
> Windows 7 AMD64 (build 6.1.7601) SP1
> NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.
>
> To exit, you will have to explicitly quit this process, by either sending
> "quit" from a client, or using Ctrl-\ in UNIX-like environments.
>
> To read more about this, see 
> https://github.com/ipython/ipython/issues/2049
>
>
> To connect another client to this kernel, use:
>     --existing kernel-10376.json
> Traceback (most recent call last):
>
>   File "C:\Program Files (my)\Anaconda3_py35\lib\leo\plugins\qt_gui.py", 
> line
> 918, in runWithIpythonKernel
>     ipk.new_qt_console(event=None)
>
>   File "C:\Program Files (my)\Anaconda3_py35\lib\leo\core\leoIPython.py", 
> line
>  121, in new_qt_console
>     profile=self.ipkernel.profile)
>
>   File "C:\Program Files 
> (my)\Anaconda3_py35\lib\site-packages\ipykernel\conne
> ct.py", line 162, in connect_qtconsole
>     cf = find_connection_file(connection_file, profile=profile)
>
>   File "C:\Program Files 
> (my)\Anaconda3_py35\lib\site-packages\ipykernel\conne
> ct.py", line 85, in find_connection_file
>     return jupyter_client.find_connection_file(filename, path=['.', 
> security_dir
> ])
>
>   File "C:\Program Files 
> (my)\Anaconda3_py35\lib\site-packages\jupyter_client\
> connect.py", line 185, in find_connection_file
>     raise IOError("Could not find %r in %r" % (filename, path))
>
> OSError: Could not find 'kernel-10376.json' in ['.', 
> 'C:\\Users\\rnun\\.ipyth
> on\\profile_default\\security']
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to