0 votes
6 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?
ago by | 6 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.

ago by datalab (21.7k points)

456 questions

469 answers

474 comments

661 users

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

Categories