Skip to content

Conversation

@m-mohr
Copy link

@m-mohr m-mohr commented Jan 17, 2022

Enables using device code in Jupyter environments (through IRKernel).

@m-mohr
Copy link
Author

m-mohr commented Mar 14, 2022

image

The is_interactive() in the if is always true and not required if interactive = TRUE is present in the oauth_flow_check. Unfortunately, IRKernel for Jupyter is declared as non-interactive and as such the device code can't be used there. Would be nice if we could enable it for Jupyter envs, too.
Seems we won't get it through IRKernel (see IRkernel/IRkernel#236), the issue is 7 years old. As such trying to get it working anyway.

@m-mohr
Copy link
Author

m-mohr commented Apr 4, 2022

Workaround for us is now: rlang::with_interactive(oauth_flow_device(...))

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

Successfully merging this pull request may close these issues.

1 participant