Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new feature to allow editing API Algorithm script in Jyputer. #547

Open
4 of 9 tasks
wildone opened this issue Sep 20, 2023 · 0 comments
Open
4 of 9 tasks

Add new feature to allow editing API Algorithm script in Jyputer. #547

wildone opened this issue Sep 20, 2023 · 0 comments

Comments

@wildone
Copy link
Member

wildone commented Sep 20, 2023

We need to to make creating the Python code easier.

Lets create a feature that would allow editing/developing API Algorithm code in Jyputer.

When you add API Algorithm you will have a button called "Edit" when you click it:

  • script will post to Jyputer input params as a new file "{id}.input"
  • script will post to Jyputer blank output file "{id}.ouput"
  • script will post to Jyputer updated algorithm as file "{id}.ipynb", reference in [1]
  • script will open a dialog to wait for a user to click "Done" then would pull latest scirpt from Jyputer removing cells it does not need, identifiable by cell ID.
  • a new window will open with Jyputer notebook for editing "{id}.ipynb"
  • allow posting to Jyputer from Flow UI
  • investigate how to and what to do when posting to Jyputer
  • update flow component with reference code
  • Build a new modal dialog that would wait in totaljs untill the editing is done and would pull latest script content into the wiring block. [2]

[1] - API Algorithm - https://github.com/typerefinery-ai/flowcomponents/blob/main/components/api-algorithm.html
[2] - reference for making a dialog that can wait for continue in Flow UI.

FUNC.readme = function(title, md) {

	var winid = 'readme' + HASH(md);
	common.readmewindow = md;

	if (common.windows.findItem('id', winid)) {
		SETTER('windows/focus', winid);
	} else {
		PUSH('common.windows', { id: winid, cache: 'readme', html: '<ui-import config="url:@{#}/forms/readme.html"></ui-import>', title: title, actions: { move: true, autosave: true, close: true, maximize: false, minimize: false }, offset: { x: ((WW / 2) - 275) >> 0, y: ((WH / 2) - 250) >> 0, width: 550, height: 500, minwidth: 200, minheight: 300, maxwidth: 800, maxheight: 1200 }, make: function(el) {
			el.closest('.ui-windows-item').css('z-index', 50);
		}});
	}

};
@wildone wildone changed the title Add new feature to allow testing/developing API Python script in Jyputer. Add new feature to allow editing API Algorithm script in Jyputer. Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant