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

ipynb files displaying in book without formatting #1896

Open
joemcglinchy opened this issue Dec 7, 2022 · 8 comments
Open

ipynb files displaying in book without formatting #1896

joemcglinchy opened this issue Dec 7, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@joemcglinchy
Copy link

Describe the bug

context
When I commit changes with an ipynb, I want the output and formatting preserved. I have tried setting execute to off, auto, and force, but force is not ideal because i have credentials being used which are being loaded to run the notebook but I don't want to publish access to them in the repository.

expectation
I expected the published version to have formatting like I see when running the notebook locally... bold font for keywords like for, lambda, etc.

bug
But instead it is rendered as plain text (Raw NBConvert?)

this could be a rendering issue

**problem**
This is an issue mainly in aesthetics. 


### Reproduce the bug

1. go to https://hydrosat.github.io/fusion-hub-docs/examples/order-service-example.html
2. see the text rendered as plain text, not python formatted

### List your environment

'''
jupyter-book --version
Jupyter Book      : 0.12.2
External ToC      : 0.2.3
MyST-Parser       : 0.15.2
MyST-NB           : 0.13.1
Sphinx Book Theme : 0.1.10
Jupyter-Cache     : 0.4.3
NbClient          : 0.5.11
@joemcglinchy joemcglinchy added the bug Something isn't working label Dec 7, 2022
@welcome
Copy link

welcome bot commented Dec 7, 2022

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! 🎉

@joemcglinchy
Copy link
Author

i will add that a local build has the rendering of the text I'd expect in the html.

local:
image

github-actions build:
image

@joemcglinchy
Copy link
Author

i'd like to bump this and ask now, is there a good way to clean out the gh-pages branch?

@Zethson
Copy link
Contributor

Zethson commented Dec 29, 2022

I was told that it's an issue with ipython 8.7.0 but I haven't figured out why yet.

@Zethson
Copy link
Contributor

Zethson commented Dec 29, 2022

spatialaudio/nbsphinx#687

see this issue

@choldgraf
Copy link
Member

This is because of this bug:

It has been fixed and merged, but not yet released. We can close this issue once it is released. In the meantime, I recommend pinning IPython to avoid the latest version.

@joemcglinchy
Copy link
Author

I pinned ipython!=8.7.0 and we are back in business! thank you so much. I had it pinned to a 7.x version before, but the formatting is looking good again.

@Zethson
Copy link
Contributor

Zethson commented Jan 4, 2023

@choldgraf ipython 8.8.0 got released

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

3 participants