0 votes
37 views
Hi,

I would like to log into my datalab account jupyterlab using vscode to make use of the various packages in vscode. I was trying to use a ssh key for the login from datalab, but I do not know where to look this up. How can I proceed?
by | 37 views

1 Answer

0 votes

Thanks for reaching out. We don't support SSH logins to the NB server. But to get the Data Lab client functionality, simply install (with pip) on your machine the latest datalab command line client. See the README file for details: https://github.com/astro-datalab/datalab

After installation, this is also usable in Jupyter NBs or Python scripts:

from getpass import getpass
from dl import authClient as ac, queryClient as qc, storeClient as sc
token = ac.login(input("username:"),getpass("passsword:"))
result = qc.query("select * from gaia_dr3.gaia_source limit 5",fmt='pandas')

Hope this is helpful. Let us know if you have further questions.

by datalab (21.8k points)
Follow-up regarding astro-datalab client

460 questions

473 answers

475 comments

662 users

Welcome to Data Lab Help Desk, where you can ask questions and receive answers from other members of the community.

Categories