-
Notifications
You must be signed in to change notification settings - Fork 17
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
TypeError: expected string or bytes-like object #12
Comments
Hi @martincousi , thanks for the heads up, |
This is a notebook with such table and lines: https://github.com/acedesci/scanalytics/blob/master/EN/S01_Intro/01_InClass_Exercises.ipynb I also saw that jtranslate translates the |
Thanks @martincousi! I was able to replicate it here. In the meantime, can you please run the legacy version at https://github.com/WittmannF/jupyter-translate/tree/master/legacy ? I was able to run the file from there with no issues. @andrebelem, can you please take a look? I'm trying to understand which specific recent change is raising this error. |
The code is probably confusing the sequence of strings that mark the table. Tomorrow I will study how the code reacts in different situations to correct it. In the meantime, I suggest using legacy (just point python to the legacy code). |
First assessement:
What Was Done to Fix It?
Update: I appreciate your understanding and will keep you posted on any further developments. |
Example of Proper Embedded Code:
Why This is Important: If embedded code is not properly enclosed within triple backticks, the program may inadvertently translate the code, altering its functionality or meaning. This can lead to unexpected results, especially when the embedded code is meant for demonstration purposes rather than execution. |
Hi, I noticed the same error while script translating markdown cells with tables or latex formulas (defined with $$ symbol) Here is the traceback:
|
When translating a notebook to french, jtranslate reports the following error:
Removing the Markdown lines
---
in my notebook allowed jtranslate to progress further. However, it stopped again when arriving at a Markdown table:Once that table was removed, I was able to fully translation the notebook. Is there an option to skip
---
lines and Markdown tables?The text was updated successfully, but these errors were encountered: