Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Jupyter extensions for running an RStudio rsession proxy

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE
BSD-3-Clause
LICENSE.txt
NotificationsYou must be signed in to change notification settings

jupyterhub/jupyter-rsession-proxy

TravisCI build status

jupyter-rsession-proxy provides Jupyter server and notebook extensions to proxy RStudio.

Screenshot

If you have a JupyterHub deployment, jupyter-rsession-proxy can take advantage of JupyterHub's existing authenticator and spawner to launch RStudio in users' Jupyter environments. You can also run this from within Jupyter.Note thatRStudio Server Pro has more featureful authentication and spawning than the standard version, in the event that you do not want to use Jupyter's.

This extension used to proxy Shiny server as well, however that functionality has beenseparated.

Installation

Pre-reqs

Install rstudio

Use condaconda install rstudio ordownload the corresponding package for your platform

Note that rstudio server is needed to work with this extension.

Install jupyter-rsession-proxy

Install the library viapip:

pip install jupyter-rsession-proxy

Or viaconda:

conda install -c conda-forge jupyter-rsession-proxy

Example

rocker/binder contains an example installation which you can run on binder.

Launch binder

Multiuser Considerations

This extension launches an RStudio server process from the Jupyter notebook server. This is fine in JupyterHub deployments where user servers are containerized since other users cannot connect to the RStudio server port. In non-containerized JupyterHub deployments, for example on multiuser systems running LocalSpawner or BatchSpawner,this is not secure if Rstudio server is listening on a TCP port. In that case, any user may connect to Rstudio server and run arbitrary code.However, if Rstudio is listening on a unix port, the socket will be protected using unix file permissions. Therefore, we recommend keeping the default configuration, which uses a unix socket and not a TCP port.

Configuration with Environment Variables

The following behavior can be configured with environment variables:

Environment VariableEffectDefault ValueNotes
JUPYTER_RSESSION_PROXY_USE_SOCKETWhether to use unix sockettrueBy default a unix socket is used. If set to case-insensitiveno orfalse it will switch to using a TCP socket
JUPYTER_RSESSION_PROXY_WWW_FRAME_ORIGINThe value of thewww-frame-origin flag to rserversame
RSERVER_TIMEOUTIdle timeout flag to rserver in minutes15Must be numeric and positive
RSESSION_TIMEOUTIdle timeout flag to rsession in minutes15Must be numeric and positive
NB_USERFallback name of the Notebook user, if password database lookup failsgetuser.getpass()

About

Jupyter extensions for running an RStudio rsession proxy

Topics

Resources

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE
BSD-3-Clause
LICENSE.txt

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors26

Languages


[8]ページ先頭

©2009-2025 Movatter.jp