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

Notebook gets loaded and dont work #5

Open
deepu2010 opened this issue Dec 12, 2018 · 15 comments
Open

Notebook gets loaded and dont work #5

deepu2010 opened this issue Dec 12, 2018 · 15 comments
Assignees
Labels

Comments

@deepu2010
Copy link

I have followed all the steps and I have got C# kernel in my notebook, but my notebook is getting loaded and not working. No error message is also getting displayed

@gyurisc
Copy link
Owner

gyurisc commented Dec 12, 2018

@deepu2010 can you please send me your notebook that you are trying to load?

@gyurisc gyurisc self-assigned this Dec 12, 2018
@deepu2010
Copy link
Author

@gyurisc these are the script commands generated....

[W 06:54:49.284 NotebookApp] Error loading kernelspec 'csharp'
Traceback (most recent call last):
File "N:\Anaconda\lib\site-packages\jupyter_client\kernelspec.py", line 258, in get_all_specs
spec = self.get_kernel_spec_by_name(kname, resource_dir)
File "N:\Anaconda\lib\site-packages\jupyter_client\kernelspec.py", line 201, in get_kernel_spec_by_name
return self.kernel_spec_class.from_resource_dir(resource_dir)
File "N:\Anaconda\lib\site-packages\jupyter_client\kernelspec.py", line 47, in from_resource_dir
kernel_dict = json.load(f)
File "N:\Anaconda\lib\json_init
.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "N:\Anaconda\lib\json_init
.py", line 354, in loads
return _default_decoder.decode(s)
File "N:\Anaconda\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "N:\Anaconda\lib\json\decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 2 column 17 (char 18)
[I 06:54:50.405 NotebookApp] Kernel started: 7c30099c-6ee1-442b-8171-ee77caf7cbb7
[W 06:54:50.650 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20181212065415 (::1) 106.94ms referer=http://localhost:8888/notebooks/Untitled.ipynb?kernel_name=icsharpkernel
[W 06:55:50.539 NotebookApp] Timeout waiting for kernel_info reply from 7c30099c-6ee1-442b-8171-ee77caf7cbb7
[I 06:56:49.776 NotebookApp] Saving file at /Untitled.ipynb

@deepu2010
Copy link
Author

cshrp1

@deepu2010
Copy link
Author

@gyurisc I'm getting to know that, my kernel is connected but my notebook keeps on loading........so I cant work further. Thanks

@gyurisc
Copy link
Owner

gyurisc commented Dec 13, 2018

What happens if you just start a brand new notebook with one a single line of code:

Console.WriteLine("Hello!");

Does that work?

@deepu2010
Copy link
Author

deepu2010 commented Dec 14, 2018 via email

@gyurisc
Copy link
Owner

gyurisc commented Dec 16, 2018

@deepu2010 I tried this and seeing it too. I will try to figure out what is going on and will get back to you.

@gyurisc gyurisc added the bug label Dec 16, 2018
@gyurisc
Copy link
Owner

gyurisc commented Dec 16, 2018

It seems that the whole Roslyn thing is not working. I am seeing this error that is logged against the Roslyn library.

dotnet/roslyn#28506

Trying to figure this out...

@gyurisc
Copy link
Owner

gyurisc commented Dec 16, 2018

I think I managed to fix this. Please, do a git pull and clean your build and the recompile to the whole project and hit F5 with Visual Studio. If you need a pre-built package then let me know!

Thanks for reporting this issue. Really, appreciate it...

@gyurisc
Copy link
Owner

gyurisc commented Dec 16, 2018

added a new release just in case

@deepu2010
Copy link
Author

Hi Gyurisc,

The rebuild was successful, however after launching my notebook, I'm facing 'Kernel Error'. Am I missing something here? Please look into this issue, thank you.

image

Error messages:
Traceback (most recent call last):
File "N:\Anaconda\lib\site-packages\tornado\web.py", line 1543, in _execute
result = yield result
File "N:\Anaconda\lib\site-packages\tornado\gen.py", line 1099, in run
value = future.result()
File "N:\Anaconda\lib\site-packages\tornado\gen.py", line 1107, in run
yielded = self.gen.throw(*exc_info)
File "N:\Anaconda\lib\site-packages\notebook\services\sessions\handlers.py", line 73, in post
type=mtype))
File "N:\Anaconda\lib\site-packages\tornado\gen.py", line 1099, in run
value = future.result()
File "N:\Anaconda\lib\site-packages\tornado\gen.py", line 1107, in run
yielded = self.gen.throw(*exc_info)
File "N:\Anaconda\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File "N:\Anaconda\lib\site-packages\tornado\gen.py", line 1099, in run
value = future.result()
File "N:\Anaconda\lib\site-packages\tornado\gen.py", line 1107, in run
yielded = self.gen.throw(*exc_info)
File "N:\Anaconda\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "N:\Anaconda\lib\site-packages\tornado\gen.py", line 1099, in run
value = future.result()
File "N:\Anaconda\lib\site-packages\tornado\gen.py", line 315, in wrapper
yielded = next(result)
File "N:\Anaconda\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 160, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File "N:\Anaconda\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "N:\Anaconda\lib\site-packages\jupyter_client\manager.py", line 259, in start_kernel
**kw)
File "N:\Anaconda\lib\site-packages\jupyter_client\manager.py", line 204, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
File "N:\Anaconda\lib\site-packages\jupyter_client\launcher.py", line 128, in launch_kernel
proc = Popen(cmd, **kwargs)
File "N:\Anaconda\lib\subprocess.py", line 709, in init
restore_signals, start_new_session)
File "N:\Anaconda\lib\subprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

@gyurisc
Copy link
Owner

gyurisc commented Dec 23, 2018

@deepu2010 There is a log file (shell.log) in the same directory where your notebook is. Can you please send me that log file?

@gyurisc
Copy link
Owner

gyurisc commented Dec 23, 2018

@deepu2010 and I wish you a Merry Christmas! :)

@deepu2010
Copy link
Author

deepu2010 commented Dec 23, 2018 via email

@gyurisc
Copy link
Owner

gyurisc commented Jan 11, 2019 via email

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

No branches or pull requests

2 participants