def open_jupyter(ctx): br = ctx.browser br.visit(ctx.feature.jynb_url) nb = Notebook(br) login_required = br.is_text_present('Password', wait_time=2) login_required |= br.is_text_present('token', wait_time=2) if login_required: nb.login() nb.jupyter_home
def open_jupyter(ctx): br = ctx.browser br.visit(jburl(ctx.feature.jynb_url, '')) nb = Notebook(br, password='******') nb.login() nb.jupyter_home