Open muyuballs opened 5 years ago
Hello, can you please provide the steps to reproduce this problem?
On Linux, you can reproduce this with the following (only place I've noticed it so far is in jupyter console
):
To install:
go get -u github.com/gopherdata/gophernotes
mkdir -p ~/.local/share/jupyter/kernels/gophernotes
cp $GOPATH/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes
To reproduce:
$ jupyter console --kernel=gophernotes
2019/02/18 12:06:05 Unhandled shell message: history_request
/home/jstaf/.local/lib/python3.7/site-packages/jupyter_console/ptshell.py:103: UserWarning: No lexer found for language ''. Treating as plain text.
warn("No lexer found for language %r. Treating as plain text." % name)
Jupyter console 6.0.0
Go kernel: gophernotes - v1.0.0
In [1]: import "fmt"2019/02/18 12:06:16 Unhandled shell message: is_complete_request
In [1]: import "fmt"
/home/jstaf/.local/lib/python3.7/site-packages/jupyter_console/ptshell.py:661: UserWarning: The kernel did not respond to an is_complete_request. Setting `use_kernel_is_complete` to False.
warn('The kernel did not respond to an is_complete_request. '
Hmmm, looks like you can "fix" the warning with --ZMQTerminalInteractiveShell.use_kernel_is_complete
option:
$ jupyter console --kernel=gophernotes --ZMQTerminalInteractiveShell.use_kernel_is_complete=False
2019/02/18 12:06:05 Unhandled shell message: history_request
/home/jstaf/.local/lib/python3.7/site-packages/jupyter_console/ptshell.py:103: UserWarning: No lexer found for language ''. Treating as plain text.
warn("No lexer found for language %r. Treating as plain text." % name)
Jupyter console 6.0.0
Go kernel: gophernotes - v1.0.0
In [1]: import "fmt"
:
:
In [2]: fmt.Println("test")
:
:
test
Much quieter :smile:
I just commit a pr, see #230
The kernel did not respond to an is_complete_request. Setting
use_kernel_is_complete
to False. warn('The kernel did not respond to an is_complete_request. ') sys: debian9 amd64 jupyter:4.4.0 zmq:libzmq3-dev(4.2.1-4)