GithubHelp home page GithubHelp logo

nzaba / python-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sol-eng/python-examples

0.0 1.0 0.0 45.93 MB

Examples of using Python with RStudio Connect

Home Page: https://solutions.rstudio.com/python/overview/

License: Apache License 2.0

R 0.13% Python 0.75% Jupyter Notebook 98.90% HTML 0.11% CSS 0.11%

python-examples's Introduction

Using R with Python

Reticulate

The reticulate package provides a comprehensive set of tools for interoperability between Python and R. You can use Python for the following:

  • Call Python from R
  • Use Python with R Markdown, Shiny, and R scripts
  • Source Python scripts
  • Import Python modules
  • Use Python interactively within an R session
  • Translate between R and Pandas data frames
  • Translate between R matrices and NumPy arrays
  • Bind with Virtualenv
  • Bind with Conda environments

RStudio Connect

You can publish Jupyter notebooks to RStudio connect. The RStudio plugin for Jupyter allows you to publish Jupyter notebooks with the press of a button. Once published on RStudio Connect, these notebooks can be scheduled for updates or refreshed on demand.

Examples

Getting Started

  • Clone this repository

  • Install Python on your machine

  • Set the RETICULATE_PYTHON environment variable to point to your installation of Python, for example using the following line in your ~/.Rprofile:

    Sys.setenv(RETICULATE_PYTHON = '/usr/local/bin/python')
    
  • Run the examples

  • Publish the examples with source code to RStudio Connect

Philosophy

The intent of the reticulate package is to integrate Python into R projects, and are not intended for standalone Python work. There are many IDEs available for doing data science with Python including JupyterLab, Rodeo, Spyder, and Visual Studio Code, and we strongly recommend using one of them for Python-only projects. However, if you are using reticulated Python within an R project then RStudio provides a set of tools that we think you will find extremely helpful.

python-examples's People

Contributors

colearendt avatar koverholt avatar siegerts avatar danielfrg avatar mmarchetti avatar dependabot[bot] avatar

Watchers

James Cloos 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.