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

Odd behavior for python comment lines #6916

Open
RayWagner opened this issue Jun 12, 2023 · 6 comments
Open

Odd behavior for python comment lines #6916

RayWagner opened this issue Jun 12, 2023 · 6 comments
Labels
Milestone

Comments

@RayWagner
Copy link

RayWagner commented Jun 12, 2023

When I am writing a comment like
let me show what this does
On the call it changes the l to L
I cut and paste this from my screen.
# offset 3 is "low"
That is what I had typed. The copy and paste gets the right character even though it is not what it looks like on the screen.
On my screen it shows
# offset 3 is "Low"
If I take away the # it goes back to lower case.
It does this with any l anywhere on the line.
I have only seen it with letter L

It is obviously not an urgent problem.

@RayWagner RayWagner added the bug label Jun 12, 2023
@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to issues that need triage label Jun 12, 2023
@RRosio
Copy link
Collaborator

RRosio commented Jun 13, 2023

Hi @RayWagner thanks for submitting this issue. Could you share which version of notebook are you using? You can find the version by to Help > About Jupyter Notebook or running jupyter --version from your terminal. Could you also share which browser and OS you are using? If you are using any extensions in your browser, do you still see this issue when you run Notebook with no extensions enabled?

@RRosio
Copy link
Collaborator

RRosio commented Jun 20, 2023

Hi @RayWagner, would you be able to provide the information requested above?

@RayWagner
Copy link
Author

Yes.
The version of the notebook server is: 6.5.4
It is Windows 10.
I am using Firefox. I do not have extensions.

@RRosio
Copy link
Collaborator

RRosio commented Jun 27, 2023

Thank you for this information @RayWagner! Would you be able to try Notebook 7 and see if this is still an issue for you? You can install Notebook 7 with pip install notebook --pre.

@RRosio RRosio removed the status:Needs Triage Applied to issues that need triage label Jun 27, 2023
@RRosio RRosio added this to the 6.5 milestone Jun 27, 2023
@RayWagner
Copy link
Author

I tried that command in anaconda but it does not try to install a version 7. It used the one in notebook in c:\users\raykw\appdata\roaming\python\python310\site-packages (6.5.4)
Is there a specific version I can identify? notebook==7.0

@EtiennePelletier
Copy link

Hello, I saw this open issue and thought I could shed some light on the observed problem, in case that could be helpful.

The default monospace font (from a Windows web browser at least), when italic, slightly modifies the shape of the lowercase l character instead of only tilting it like most other characters, making it look closer to a capital L. Commented lines in jupyter add the italic font style.

image

Zoomed in to make it more obvious:
image

One way to modify this for any user is to provide a different font of their likings in jupyter's code cell configuration. Arial is likely not a great choice for code as it isn't monospace, but it's sufficient to demonstrate this can work.
image

🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants