Giter Site home page Giter Site logo

reprex-connect-20200414's Introduction

Reprex Connect 20200414

Setup

remotes::install_github("rstudio/connectapi")
  • Note that the user/password for Connect are admin/admin0
  • Create the reprex environment
docker-compose up -d

# add python packages to the site library
docker exec reprex-connect-20200414_rstudio-connect_1 /opt/python/3.6.5/bin/pip install flask-restx sklearn

# deploy the example
R -f deploy.R

# tear down the server
docker-compose down

# build it again
docker-compose up -d

Problems

Notice that the content is now broken, because the underlying site library has changed.

This is undesirable for a number of reasons:

  • Reproducibility of content is reduced
  • As an admin, I may be lax about managing the site library
  • As an admin, I did not opt into this behavior, and Connect usually isolates content / manages deployments for me / etc.
  • As a publisher, this error is very confusing and I have no way to remedy
2020/04/14 13:03:15.973098700 Error while loading Python API: Could not import
module 'predict'. Connect expected to find a file in the application directory
named 'predict.py'. Please check the entrypoint specified in the manifest.json
file or on the rsconnect-python command line. Reason: No module named
'sklearn'.
  • Even figuring out "what" the issue is requires shell access on the server
  • As a publisher, I have no real recourse to remedy the issue other than try to intuit how I need to change / redeploy my content
  • The issue could pop up at any time that the python system library changes, between nodes, etc.
  • Connect's contract of "content bundle reproducible over time" is much reduced without a way to purge these cached environments

reprex-connect-20200414's People

Contributors

colearendt avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.