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

Create tooling to translate Jupyter notebooks with IBM infrastructure #671

Closed
Eric-Arellano opened this issue Jan 22, 2024 · 1 comment
Closed

Comments

@Eric-Arellano
Copy link
Collaborator

Eric-Arellano commented Jan 22, 2024

The IBM translations pipeline from #670 will not be able to handle jupyter notebooks because it can't understand that file type.

So we will need to instead have some custom tooling that extracts the translatable strings from the notebook, sends it to get translated, then applies the translations properly. The start and end product should be a valid Jupyter notebook where only the markdown code blocks are translated. This notebook needs to be executable, including because users may download the translated notebook.

We can choose any key-value format like a PO file or JSON file.

Look at https://github.com/WittmannF/jupyter-translate for inspiration. We can also probably use https://github.com/Qiskit/documentation/blob/main/scripts/js/lib/markdownReader.ts

#2368 is a follow up to to also translate code comments.

@Eric-Arellano
Copy link
Collaborator Author

This was moved to closed source, since the tooling will live there. Indeed, we will only globalize markdown cells for now and use code similar to markdownReader.ts.

@Eric-Arellano Eric-Arellano closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant