Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
erp5
erp5
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Merge Requests 130
    • Merge Requests 130
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Jobs
  • Commits
  • nexedi
  • erp5erp5
  • Merge Requests
  • !29

Merged
Opened Nov 26, 2015 by Ayush Tiwari@tiwariayush
  • Report abuse
Report abuse

Business Template : erp5_data_notebook (To execute remote python code from inside of erp5)

Addition of erp5_data_notebook bt5


Jupyter == IPython Notebook


Features:

  1. Module - Data Notebook (To save notebook according to reference from jupyter frontend)
  2. Execute python code which might/might not be remote.
  3. Save local_variables for specific notebook, i.e, you can use the python objects which were created during code execution. After making a successful connection(from frontend) to specific notebook, the variables which were saved earlier are available while for execution.

Architecture:

  • Code from Jupyter cell is being received as string by Base_executeJupyter.
  • Code is executed in Base_runJupyter external method.
  • Local variables saved via CMFActivity.
  • Result as JSON is returned to frontend (contains mime_type of result string also).

Example Notebook: http://nbviewer.ipython.org/urls/lab.nexedi.com/nexedi/erp5/uploads/6778782d5753873583bd4843772cf502/Proof_of_concept_Notebook.ipynb

Proof_of_concept_Notebook.ipynb

@Tyagov : Please review.

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch https://lab.nexedi.com/tiwariayush/erp5.git erp5-data-notebook
git checkout -b tiwariayush/erp5-erp5-data-notebook FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/master
git merge --no-ff tiwariayush/erp5-erp5-data-notebook

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 23
  • Commits 50
  • Changes
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: nexedi/erp5!29
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7