{"id":15359756,"url":"https://github.com/redhog/jupyter-petrova","last_synced_at":"2025-04-06T01:41:39.165Z","repository":{"id":136340380,"uuid":"409671964","full_name":"redhog/jupyter-petrova","owner":"redhog","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-24T19:13:05.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T07:54:05.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-23T16:47:11.000Z","updated_at":"2021-09-24T19:13:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"21fbc378-0c39-41ad-b16e-2e2af28f9394","html_url":"https://github.com/redhog/jupyter-petrova","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhog%2Fjupyter-petrova","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhog%2Fjupyter-petrova/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhog%2Fjupyter-petrova/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhog%2Fjupyter-petrova/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhog","download_url":"https://codeload.github.com/redhog/jupyter-petrova/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423492,"owners_count":20936622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T12:46:09.053Z","updated_at":"2025-04-06T01:41:39.143Z","avatar_url":"https://github.com/redhog.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jupyter-petrova\n===============================\n\nExplore dataframes, arrays, scipy and matplotlib interactively w/o coding\n\nInstallation\n------------\n\nTo install use pip:\n\n    $ pip install jupyter_petrova\n\nFor a development installation (requires [Node.js](https://nodejs.org) and [Yarn version 1](https://classic.yarnpkg.com/)),\n\n    $ git clone https://github.com/redhog/jupyter-petrova.git\n    $ cd jupyter-petrova\n    $ pip install -e .\n    $ jupyter nbextension install --py --symlink --overwrite --sys-prefix jupyter_petrova\n    $ jupyter nbextension enable --py --sys-prefix jupyter_petrova\n\nWhen actively developing your extension for JupyterLab, run the command:\n\n    $ jupyter labextension develop --overwrite jupyter_petrova\n\nThen you need to rebuild the JS when you make a code change:\n\n    $ cd js\n    $ yarn run build\n\nYou then need to refresh the JupyterLab page when your javascript changes.\n\n\n# Usage\n\nIn a notebook cell, enter:\n\n    from jupyter_petrova import *\n    g = Graph()\n    g\n\nUse the \"Add\" field to select python functions to add. A good starting\npoint might be `skimage.io.imread` and anything under\n`skimage.filters`. Click and drag to move boxes on the board. Click on\na function box to set its input parameters and view its output. To set\na parameter to the output of another box, select the input field for\nthat parameter, then shift-click the other box.\n\nTo pre-populate the graph,\n\n    test = Task(\"skimage.io.imread\", fname=\"test.jpeg\")\n    filtered = Task(\"skimage.filters.edges.sobel\", image=test)\n    g = Graph(tasks = {\"test\": test, \"filtered\": filtered})\n    g\n\nIndividual tasks can be accessed using the dictionary `g.tasks`. Each\ntask has a property `value` that contains the output value of that\ntask. The function name is available in the task property `name`, and\nthe parameters in `params`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhog%2Fjupyter-petrova","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhog%2Fjupyter-petrova","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhog%2Fjupyter-petrova/lists"}