-
Notifications
You must be signed in to change notification settings - Fork 123
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
execute-cell doesn't work on password-protected notebook server #57
Comments
Actually a duplicate of #17, but thanks for the info. I think I have a clue of what some of the problem is and will try to look at this over the next few days as time permits. |
This is what I have found out so far:
Not sure if that makes sense, but for the moment that is my theory on what's happening. Somehow we need to provide the security cookie with the websocket connect request. |
I understand now what the problem is. Unfortunately it requires some changes to emacs-websocket. I have submitted an issue (ahyatt/emacs-websocket#38) so we will see what happens. |
Sorry for the wait, but this should be working now, as of 127039e. emacs-websocket just added this functionality, as of 542c6fec7447119c681d2a87da90a40223a81a36, and I have merged in support into ein. If you are downloading from MELPA you should see the updates sometime today. Let me know if you run into any problems. |
Sorry but it still doesn't work for me. Updated everything updatable from MELPA to no avail. When I try to execute cell I still get this message: Maybe there's something I'm doing wrong? PS Here is my system info: ("EIN system info"
:emacs-version "GNU Emacs 24.5.1 (x86_64-w64-mingw32)
of 2015-03-28 on KAEL"
:emacs-bzr-version nil
:window-system w32
:emacs-variant nil
:os
(:uname nil
:lsb-release nil)
:image-types
(svg png gif tiff jpeg xpm xbm pbm)
:image-types-available
(svg png gif tiff jpeg xpm xbm pbm)
:request
(:backend url-retrieve)
:ein
(:version "0.7"
:source-dir "~/AppData/Roaming/.emacs.d/elpa/ein-20150705.2027/")
:lib
((:name "websocket"
:path "~/.emacs.d/elpa/websocket-20150626.2049/websocket.el"
:featurep t
:version-var websocket-version
:version "1.4")
(:name "request"
:path "~/.emacs.d/elpa/request-20140316.417/request.elc"
:featurep t
:version-var request-version
:version "0.2.0")
(:name "auto-complete"
:path "~/.emacs.d/elpa/auto-complete-20150618.1949/auto-complete.elc"
:featurep t
:version-var nil
:version nil)
(:name "auto-complete"
:path "~/.emacs.d/elpa/auto-complete-20150618.1949/auto-complete.elc"
:featurep t
:version-var nil
:version nil)
(:name "popup"
:path "~/.emacs.d/elpa/popup-20150626.711/popup.elc"
:featurep t
:version-var popup-version
:version "0.5.3")
(:name "python"
:path
"~/_soft/emacs-bin-w64-24.5-rc1/emacs/share/emacs/24.5/lisp/progmodes/python.elc"
:featurep t
:version-var nil
:version nil)
(:name "python-mode"
:path "~/.emacs.d/elpa/python-mode-20150703.143/python-mode.el"
:featurep nil
:version-var nil
:version nil))) |
Is there a cookie file in the ~/.emacs.d/request/? (I was going to say that using curl as a backend for request is causing the problems, but apparently you are using url-retrieve per the above info). |
Another thing to check - make sure you are downloading websocket from melpa and not gnu, I noticed when I download the 1.4 version from gnu I see the same behavior that you do. In my (partial) defense - I didn't even know until I tried downloading from melpa that there was also a package in elpa. I guess in general life is much better now in Emacs with package management, but maybe not so much in this case. |
Thanks for your replies. There's no cookie or even I found these lines appearing in
After that ein successfully connects to notebooks catalog but fails to execute cells. PS I tried this with both elpa and melpa versions of websocket, nothing changed. |
I get those same messages, but I can get the websocket connection to open. Jupyter doesn't return a 200 status code when authenticating, which confuses request. The websocket connection is failing because it can't find the authentication cookie. We can double check this if you call Two other things to check:
|
Finally got this one, I hope, with #94. |
I am still getting this error with ein 20160422.629. |
Setting the Request Backend to |
Check list
files by removing all the
*.elc
files from source directory of EIN andits dependencies.
(You can check the location in the "System info" section below)
Description of the problem
When running the ipython notebook server protected with password, attempt to execute any cell in any notebook fails with "Kernel is not ready yet!" message.
Steps to reproduce the problem
c.NotebookApp.password = "your-password-sha1-hash"
ipython notebook --profile=nbserver
ein:notebooklist-login RET <port> RET <password>
ein:notebooklist-open
ein:worksheet-execute-cell
Expected output
Your EIN configuration (in .emacs.d/init.el or somewhere else)
no special configuration (all configs have default values)
Your IPython configuration
ipython --version
):3.1.0
ipython notebook --port 9999
):(see "Steps to reproduce the problem")
localhost:8888 or localhost:9999 (seems like port does not make difference)
Additional information (if any)
System info:
The text was updated successfully, but these errors were encountered: