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

connect to a paperspace session #871

Open
LazerJesus opened this issue Apr 27, 2023 · 6 comments
Open

connect to a paperspace session #871

LazerJesus opened this issue Apr 27, 2023 · 6 comments

Comments

@LazerJesus
Copy link

LazerJesus commented Apr 27, 2023

Hi,
I am trying to connect to a kernel running on Paperspace.

when running this block:

#+NAME: BD7DDF92-DC52-439E-8CDF-CFD659FC7560
#+BEGIN_SRC ein-python :session https://n[]e.c[]l.paperspacegradient.com :results output
  print("lorem inc")
#+end_src

#+RESULTS: BD7DDF92-DC52-439E-8CDF-CFD659FC7560
: [....]

i get this message:

ein: [info] WS action [(websocket-received-error-http-response 403)] on-open (wss://n[]l.paperspacegradient.com:443/api/kernels/[]/channels?session_id=[])

on paperspace, i have now two notbooks Untitlted & Untitled1.

what to do?

related:
i can connect to the instance with ein:login and view the notebooklist of the remote instance in emacs, but any edits i do to the notebook arent propagated. the top of the buffer says kernel requires reconncect C-c C-r which results in the same error

ein: [info] WS action [(websocket-received-error-http-response 403)] on-open (wss://[].paperspacegradient.com:443/api/kernels/[]/channels?session_id=[])
@dickmao
Copy link
Collaborator

dickmao commented Apr 27, 2023 via email

@LazerJesus
Copy link
Author

I would love to flee the entire python ecosystem in its entirety - its a toy language created for learning - but sadly all of modern ML is built on python & jupyter. therefore i can not.

raw

@dickmao
Copy link
Collaborator

dickmao commented Apr 27, 2023 via email

@LazerJesus
Copy link
Author

LazerJesus commented Apr 27, 2023 via email

@nakkaya
Copy link

nakkaya commented May 1, 2023

@dickmao @FinnFrotscher This is not exactly a Paperspace issue. I also have the same thing with vanilla jupyter instance and org-mode. I can use ein with the instance running (edit/run notebooks) but org-mode integration is broken.

What I do is, use ein when working with collaborators who are using notebooks. For personal stuff I use emacs-jupyter with org-mode.

I'd reroute off the jupyter ecosystem generally. How ridiculous is a
framework that willy-nilly creates cruft like Untitled1.ipynb, and
foils any attempt at version control?

I would if I could believe me but unfortunately we are at a point where it became the standard interface.

@LazerJesus
Copy link
Author

I get the same error message even on ein <-> jupyter kernel (on paperspace) connections in ein:notebook-mode without org or babel.

ein: [info] WS action [(websocket-received-error-http-response 403)] on-open (wss://[].paperspacegradient.com:443/api/kernels/[]/channels?session_id=[])

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

3 participants