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

Clone app objects to enable multiple embeddings #3398

Open
akshayka opened this issue Jan 10, 2025 · 0 comments
Open

Clone app objects to enable multiple embeddings #3398

akshayka opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@akshayka
Copy link
Contributor

Make it possible to clone an app object, so that the same app can be embedded multiple times (independently) in the same notebook.

I have another question (not sure if I can ask here or should open another request): I made a notebook (processor.py) that imports data from a file and processes them.
I need to process three files at the same time, to quickly compare the results, so I tried to import processor.py in another notebook (main.py) like that:

from processor import app

processor1 = app.embed()
processor2 = app.embed()
processor3 = app.embed()

but the output is the same, as the three processor were not different instances of app, but just three placeholders.
My workaround is to create three copies of processor.py and import them separately: is there any other way to obtain the same result?

Originally posted by @pcomepaolo in #3386

@akshayka akshayka added the enhancement New feature or request label Jan 10, 2025
@akshayka akshayka self-assigned this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant