-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
JN7 markdown cells mess #7002
Comments
Thank you @liquidcarbon for opening this issue! Something like this, dealing with Windows line endings, has been previously reported in JupyterLab jupyterlab/jupyterlab#14752. |
Since Notebook 7 is based on JupyterLab components, this will likely have to be fixed in JupyterLab first and then pulled in Notbeook 7. |
This is a problem with Windows, NOT Jupyter Lab. Whether it can be controlled within VsCode is another thing. For example, take ANY code in VsCode with LF line endings (it can be Python code, a Jupyter notebook, etc) and copy several lines of the code then paste it into the online service https://www.soscisurvey.de/tools/view-chars.php and choose |
@kuhlaid if CRLF problem is all this really is, it has been solved for a good decade in the old Jupyter notebook and older JupyterLab and every other tool crossplatform tool, but somehow it's a problem in the new JN |
I have the same issue - running Jupyter from a Docker container on a Linux VM, opening with Chrome on Windows: Even worse, when I opened the notebook again a few days later, I found that the input cell text was broken as well ! Copying the cell contents to https://www.soscisurvey.de/tools/view-chars.php I can see the line endings are CRLF. I have Jupyter Notebook v7.0.3 installed. I hope this will be solved soon. |
I can confirm this problem. It is reported in jupyterlab: jupyterlab/jupyterlab#14752 And indeed is related to \r\n line ending problem. It seems to be started all in summer 2023. Maybe a git bisect will reveal the revision where this happended. At first only the rendering is affected. And I most oftenly find the issue with tripple quotes for code also. And when reopening the file then the markdown source is even missing some input. |
I made a PR it should be fixed in the coming bug fix. |
@jtpio I think this can be closed a fixed by jupyterlab/jupyterlab#15794 (I do not have rights to close issues here) |
OK, thanks for checking! |
- jupyter/notebook#7002 - Fix using notebook formatter provided by pycharm professional
Is anyone else experiencing issues with markdown cells where you paste a block of text and it does not show up correctly in the output? It tends to happen more with block quotes and triple quoted code blocks. When you go back to edit the code, your edits also don't appear in the right places. It's rather erratic and hard to reproduce with a specific example. This is happening for me in both Firefox and Edge. I'm under Windows and the notebook is hosted on a Linux server, but I'm pretty sure this was happening locally as well.
Please answer the following questions for yourself before submitting an issue
Example input:

Example output, after pressing Ctrl+Enter:

And it's actually messed up in the saved ipynb file, too:
The text was updated successfully, but these errors were encountered: