Comments (12)
Are you sure this isn't available yet?
Try this:
- Start a remote Jupyter Notebook
- Find the token in the output of the Jupyter Notebook logs: http://jupyter-notebook.readthedocs.io/en/latest/security.html
Then in VS Code:
ctrl+shift+p
Jupyter: Enter the url of local/remote Jupyter Notebook
Here's that command in the code repo.
It seems to me like this is an undocumented with an open issue, while the feature seems to be there 😄
Still, it doesn't have Hydrogen's inline results nor auto-completion.
But it's a lot closer than not being able to connect to a remote server at all.
As a plus, the token can be written right after running the kernel, it doesn't have to be pre-configured, so you don't have to change configurations in the remote server and locally before being able to use it (as with Hydrogen).
Also, I'm not trying to make it a "vim vs emacs", I'm a huge fan of both plugins and the greatly improved experience they provide.
from vscodejupyter.
Have you ever use Atom's Hydrogen extension? It supports remote kernel with jupyter.
https://atom.io/packages/hydrogen
from vscodejupyter.
I use the hydrogen extension quite often but have migrated to vscode for pretty much everything else.
I periodically check to see if vscode Jupiter supports execution in remote kernels yet ... I use a workflow that gives a similar experience as would be achieved with Jupyter notebooks but gets me out of horrible web page text editor land (which I hate)
- Sync a directory of files to a server somewhere via a file watching mechanism
- Configure a Jupiter kernel on a remote machine with the required packages and set its startup directory to the target from above sync
- Connect to remote kernel from 2 with hydrogen
It is a little quirky sometimes but works pretty well. Would love a vscode based alternative
from vscodejupyter.
One of the parameters given by running jupyter notebook --help-all
is:
--NotebookApp.ip=<Unicode>
Default: 'localhost'
The IP address the notebook server will listen on.
Could that be useful for this purpose?
I've been able to successfully connect to a remote machine (a Google Cloud Platform instance) using the command @tiangolo mentioned, but I haven't yet managed to successfully connect to the same machine using various combinations of settings under the extension's "jupyter.notebook.startupArgs"
.
I'd really like to get that working so I don't have to enter the ip and token every time I want to connect.
from vscodejupyter.
Unfortunately not yet.
from vscodejupyter.
From @Earthson on October 20, 2016 9:28
Is there a way to connect to existing kernel by %connect_info?
from vscodejupyter.
Unfortunately this isn't supported as of yet and will be looked at for a future release.
from vscodejupyter.
From @mkohram on February 17, 2017 19:15
I would be more than glad to help with getting existing implemented if I could get a couple of pointers where to start. Please let me know.
from vscodejupyter.
Oh cool -- I'll check it out!
from vscodejupyter.
Hi all,
Currently exploring development solutions for my DS team. While there are lots of positives to a JupyterHub/JupyterLabs, the irritation of saving all notebooks as .py files for version control has me exploring other options. I've been playing with Atom/Hydrogen running remote kernels on AWS, and this seems to be a reasonable solution. There is some awkwardness, though (need to run the remote kernel in a synchronized directory structure to pick up local imports or use sshfs). Any thoughts on similar issues/maturity of using VS Code for doing local development with execution on remote kernels? One issue I've run into so far is that kernel_gateway doesn't seem to work, though tests with notebook server worked ok (had some problems restarting/shutting down kernels, but that might have been a notebook server config issue). Thanks!
from vscodejupyter.
@tiangolo why i get nothing after typing the url following with entring the token, have tried many times?
from vscodejupyter.
Sorry for the late response @puppyapple .
When you hit enter it doesn't show any obvious cue telling you if it worked or not. But you get a little new item in the blue status bar at the bottom. It tells you which Python kernel is running.
Then you can select a Python line, hit Ctrl + Shift + p
, find the command Jupyter: Run Selection/Line
and execute it. It won't show you if it ran or not, only when your code is an expression that results in a value. So, import os
won't show anything, my_var = "some text"
won't show anything either, but "some text"
alone will open the output display and show the printed "some text
".
from vscodejupyter.
Related Issues (20)
- Error when running cell HOT 1
- feature request: allow custom jupyter command
- ModuleNotFoundError: No module named 'IPython'
- Change menu to Run Selection\Line in a Jupyter Kernel
- Float "Append Results" checkbox and "Clear Results" button HOT 1
- Could you pls release a new version of vscodejupyter on marketplace?
- move result window will clear results
- can't run cell: 'KernelSpecManager' object has no attribute 'get_all_specs' HOT 2
- Cannot connect to remote kernels
- jupiter looks for a kernel from a conda env that has been removed HOT 1
- Error activating extension, cannot find module HOT 2
- Enhanced support for screen reader users
- Unable to determine version of Jupyter, Error: spawn jupyter ENOENT Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command , ({"message": "Forbidden", "reason": null}) HOT 1
- Activating extension 'donjayamanne.jupyter' failed: Cannot read property 'prototype' of undefined HOT 3
- jupyter response time
- Cannot connect to Jupyter
- Feature request: Inline visuals for running cell/line
- Cant run on vscode but inside browser works finely
- Upgrade to VS Code's webview API
- When can you support to Julia Lang?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscodejupyter.