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

code-cell using new/strange font -- how to revert to a fixed-width font? #2136

Open
uqtmiller opened this issue Mar 29, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@uqtmiller
Copy link

Describe the bug

Hi,

When I do compile a book with a python code-cell, I expected the code-cell to use a usual "code-looking", fixed-width font.

But instead, it uses a font I don't expect, which seems to be Roboto (if I paste it into MS Word as see the font name).

Here is my code-cell:

x = 1
if x == 1:
    print("True")

Here is the output:

image

This is fine for such a small example, but for larger it affects readability:

image

I'm not sure when this started happening, but I noticed it recently.

Any ideas what I'm doing wrong and how to change this?

Thanks!
Tim

Reproduce the bug

For me, paste:

x = 1
if x == 1:
    print("True")

and compile using 'jb build'

List your environment

Details:
jupyter-book --version
Jupyter Book : 1.0.0
External ToC : 1.0.1
MyST-Parser : 2.0.0
MyST-NB : 1.0.0
Sphinx Book Theme : 1.1.2
Jupyter-Cache : 0.6.1
NbClient : 0.7.4

python3 --version
Python 3.10.12

Operating system:
Ubuntu 22.04.2 LTS

Example website: https://gibberblot.github.io/rl-notes/single-agent/value-iteration.html

@uqtmiller uqtmiller added the bug Something isn't working label Mar 29, 2024
Copy link

welcome bot commented Mar 29, 2024

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@gibberblot
Copy link

This can now be closed. I had tried on several platforms, but hadn't built this on another platform until today. It worked on someone else's laptop, so I dug much deeper and figured out the issue was a local problem.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants