Giter VIP home page Giter VIP logo

elyra-ai / elyra Goto Github PK

View Code? Open in Web Editor NEW
1.8K 43.0 328.0 114.7 MB

Elyra extends JupyterLab with an AI centric approach.

Home Page: https://elyra.readthedocs.io/en/stable/

License: Apache License 2.0

Makefile 0.69% Python 72.89% Dockerfile 0.25% TypeScript 20.33% CSS 2.43% JavaScript 0.31% Shell 0.33% Jupyter Notebook 1.43% Rebol 0.01% Jinja 1.27% R 0.08%
notebooks notebook-jupyter jupyterlab jupyterlab-extensions ai machine-learning pipelines kubeflow-pipelines python elyra binder jupyterlab-notebooks kubeflow hacktoberfest jupyterlab-extension anaconda pypi docker apache-airflow airflow

elyra's Introduction

PyPI version Anaconda-Server Badge Downloads Documentation Status GitHub OpenSSF Best Practices Gitter

Elyra

Elyra is a set of AI-centric extensions to JupyterLab Notebooks.

Elyra currently includes the following functionality:

Elyra

The Elyra Getting Started Guide includes more details on these features. A version-specific summary of new features is located on the releases page.

Try Elyra

Using container images

You can also try Elyra by running one of the container images from Docker Hub or quay.io:

  • elyra/elyra:latest has the latest released version installed.
  • elyra/elyra:x.y.z has a specific version installed.

Note: You can also build a container image from the main branch ("dev build") to try out features that have not been released yet.

To run one of the container images, issue the following command, specifying a tag of your choice.

docker run -it -p 8888:8888 elyra/elyra:dev jupyter lab --debug

To make a local directory containing your Notebooks (e.g. ${HOME}/opensource/jupyter-notebooks/) available in your docker container, you can use a mount command similar to the following:

docker run -it -p 8888:8888 -v ${HOME}/opensource/jupyter-notebooks/:/home/jovyan/work -w /home/jovyan/work elyra/elyra:dev jupyter lab --debug

These should produce output similar to that below, where you can then find the URL to be used to access Elyra in your local browser.

    To access the notebook, open this file in a browser:
        file:///home/jovyan/.local/share/jupyter/runtime/nbserver-6-open.html
    Or copy and paste one of these URLs:
        http://4d17829ecd4c:8888/?token=d690bde267ec75d6f88c64a39825f8b05b919dd084451f82
     or http://127.0.0.1:8888/?token=d690bde267ec75d6f88c64a39825f8b05b919dd084451f82

Refer to the installation documentation for details.

Installation

For detailed information refer to the installation documentation.

Prerequisites :

Install current release (for JupyterLab 3.x)

The current release version is displayed at the top of this page.

  • Install from PyPI

    pip3 install --upgrade "elyra[all]"
  • Install from conda-forge

    conda install -c conda-forge "elyra[all]"

Install older release

Installation instructions and JupyterLab support vary by release. Note that a JupyterLab build is required. Installation instructions are located in the release-specific documentation, which can be accessed by selecting a specific version.

Elyra 3.1 < 3.7 (JupyterLab 3.x)
  • Install from PyPI

    pip3 install --upgrade "elyra[all]>=3.1.0" && jupyter lab build
  • Install from conda-forge

    conda install -c conda-forge "elyra[all]>=3.1.0" && jupyter lab build
Elyra 2.0 < 3.1 (JupyterLab 3.x)
  • Install from PyPI

    pip3 install --upgrade "elyra>=2.0.1" && jupyter lab build
  • Install from conda-forge

    conda install -c conda-forge "elyra>=2.0.1" && jupyter lab build

Verify Installation

Run the following commands to verify the installation. Note that in the example output below the [version] placeholder is displayed instead of an actual version identifier, which might change with every release.

jupyter server extension list

Should output:

Config dir: /.../.jupyter

Config dir: /.../etc/jupyter
    elyra enabled
    - Validating elyra...
      elyra  OK
    jupyter_lsp enabled
    - Validating jupyter_lsp...
      jupyter_lsp [version] OK
    jupyter_resource_usage enabled
    - Validating jupyter_resource_usage...
      jupyter_resource_usage [version] OK
    jupyter_server_mathjax enabled
    - Validating jupyter_server_mathjax...
      jupyter_server_mathjax  OK
    jupyterlab enabled
    - Validating jupyterlab...
      jupyterlab [version] OK
    jupyterlab_git enabled
    - Validating jupyterlab_git...
      jupyterlab_git [version] OK
    nbclassic enabled
    - Validating nbclassic...
      nbclassic  OK
    nbdime enabled
    - Validating nbdime...
      nbdime [version] OK

Config dir: /.../etc/jupyter

NOTE: If you don't see the Elyra server extension enabled, you may need to explicitly enable it with jupyter server extension enable elyra

jupyter labextension list

Should output:

JupyterLab [version]
/.../share/jupyter/labextensions
        nbdime-jupyterlab [version] enabled OK
        @jupyter-server/resource-usage [version] enabled OK (python, jupyter-resource-usage)
        @krassowski/jupyterlab-lsp [version] enabled OK (python, jupyterlab_lsp)
        @elyra/code-snippet-extension [version] enabled OK
        @elyra/code-viewer-extension [version] enabled OK
        @elyra/metadata-extension [version] enabled OK
        @elyra/pipeline-editor-extension [version] enabled OK
        @elyra/python-editor-extension [version] enabled OK
        @elyra/scala-editor-extension [version] enabled OK
        @elyra/r-editor-extension [version] enabled OK
        @elyra/theme-extension [version] enabled OK
        @jupyterlab/git [version] enabled OK (python, jupyterlab-git)

Other labextensions (built into JupyterLab)
   app dir: /.../share/jupyter/lab

Starting Elyra

After verifying Elyra has been installed, start Elyra with:

jupyter lab

Getting Help

We welcome your questions, ideas, and feedback. Check the Getting Help section in the Getting Started guide to learn more about the channels you can use to get in touch with us.

Contributing to Elyra

If you are interested in helping make Elyra better, we encourage you to take a look at our Contributing page,
Development Workflow documentation, and invite you to attend our weekly dev community meetings.

Meetup with Us!

Our daily and weekly community meeting schedule can be found here.

elyra's People

Contributors

19690ao avatar a-ag avatar ajbozarth avatar akchinstc avatar bourdakos1 avatar casassg avatar dependabot[bot] avatar fresende avatar hema-mathiyazhagan avatar karlaspuldaro avatar kevin-bates avatar kiersten-stokes avatar kjdoyle avatar lresende avatar marthacryan avatar mudspringhiker avatar ptitzler avatar rkpattnaik780 avatar romeokienzler avatar salonee13 avatar sandhya-nayak avatar sanika93 avatar thesuperzapper avatar tlzhu19 avatar typhoonzero avatar vabarbosa avatar vna818-rpi avatar wenjun93 avatar yuhuishi-convect avatar zeusorionibm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elyra's Issues

[Imported PR] Initial changes for ai-workspace build

  • switched over to lerna to manage packages
  • relocated extension over to packages dir
  • ensure lerna is installed "npm install -g lerna" and then run "lerna bootstrap" to install scheduler extension which should then pull in the jupyterlab packages as well.

[Imported PR] Enable pipelines to be saved / opened

  • Adds a button to save a current pipeline, which opens a dialog to ask for the filename (doesn't check for validity of filename yet). Adds .pipeline to the filename then saves to the jupyterlab filesystem
  • Adds a button to open a pipeline - must have a file selected in the filebrowser. Currently doesn't check for validity of filename / content.
  • Adds a button to clear the canvas

Python runner does not support imports from same folder

Add a init.py to a notebook folder
Create a file helloworld.py with the following contents

class Helloworld:
    def say_hi(self, name):
        print('Hi {}'.format(name))

Create a notebook and import that file (it works)

from helloworld import Helloworld
a = Helloworld()
a.say_hi('John')

Do the same from a python file

Error : ModuleNotFoundError - No module named 'helloworld'

When you try from .helloworld import Helloworld you will get

Error : ModuleNotFoundError - No module named '__main__.util'; '__main__' is not a package

Python runner does not show result output

The following sample code results in nothing when running from python runner

import io
import requests
import pandas as pd

def df_from_url(url):
    data = requests.get(url).content
    df = pd.read_csv(io.StringIO(data.decode('utf-8')))
    return df

df = df_from_url('http://samplecsvs.s3.amazonaws.com/Sacramentorealestatetransactions.csv')
df['price'].mean()

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.