Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'data' when opening sumlime-IJulia #82

Open
datamut opened this issue May 7, 2016 · 2 comments
Open

KeyError: 'data' when opening sumlime-IJulia #82

datamut opened this issue May 7, 2016 · 2 comments

Comments

@datamut
Copy link

datamut commented May 7, 2016

It seems that IJulia kernel does not start properly. I've tried to Pkg.pin IJulia on different versions include v0.2.4, v0.2.5, v1.1.9, v1.1.8, and v1.1.7, and it keeps throw out the same error as below. I tried IJulia in Jupyter, and it works properly.

-----------error traceback below----------
Command Executed: /Applications/Julia-0.4.5.app/Contents/Resources/julia/bin/julia /Users/xxxx/.julia/v0.4/IJulia/src/kernel.jl "/Users/xxxx/Library/Application Support/Sublime Text 3/Packages/User/profile-1.json"
Exception in thread Thread-2:
Traceback (most recent call last):
File "./threading.py", line 901, in _bootstrap_inner
File "/Users/xxxx/Library/Application Support/Sublime Text 3/Packages/IJulia/Kernel.py", line 412, in run
r = self.handlers.get(m, self.pyin_h)()
File "/Users/xxxx/Library/Application Support/Sublime Text 3/Packages/IJulia/Kernel.py", line 378, in stdout_h
data = self.get_stdout()
File "/Users/xxxx/Library/Application Support/Sublime Text 3/Packages/IJulia/Kernel.py", line 328, in get_stdout
data = m.content['data']
KeyError: 'data'

@datamut
Copy link
Author

datamut commented May 10, 2016

An additional information is that several julia backend processes have been created. I notice this when I opened my Activity Monitor today and found that there were several processes still running.

@Andrew-S-Rosen
Copy link

Andrew-S-Rosen commented Jun 13, 2016

I have found a solution: Open Kernel.py in your IJulia folder within your ST3 packages directory. Edit Line 328 and swap out m.content['data'] with m.content['text'].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants