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

Allow using Sphinx 4 #338

Closed
3 tasks
vberlier opened this issue Jun 23, 2021 · 14 comments · Fixed by #356
Closed
3 tasks

Allow using Sphinx 4 #338

vberlier opened this issue Jun 23, 2021 · 14 comments · Fixed by #356
Labels
bug Something isn't working

Comments

@vberlier
Copy link

vberlier commented Jun 23, 2021

Summary

Right now sphinx>=2,<4 in setup.cfg makes it impossible to use myst-nb with Sphinx 4. myst-parser upgraded to Sphinx 4 recently executablebooks/MyST-Parser#390.

Tasks to complete

@vberlier vberlier added the bug Something isn't working label Jun 23, 2021
@welcome
Copy link

welcome bot commented Jun 23, 2021

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

@choldgraf
Copy link
Member

Indeed - the next step to get this is to update the MyST Parser dependency, which will bring support for Sphinx 4 when that happens (https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md#0150---2021-06-13). There might need to be some other changes too though.

@vberlier
Copy link
Author

vberlier commented Jul 6, 2021

Just checking in. Is there anything we can do to help move this forward?

@cheekyshibe
Copy link

Any progress? 👀

@chrisjsewell
Copy link
Member

Well myst-parser is updated, so this should now work in principle

@cheekyshibe
Copy link

Well myst-parser is updated, so this should now work in principle

Cool. I will have a try and give some feedback asap.

@chrisjsewell
Copy link
Member

Note we would want myst-parser~=0.15.1

@chrisjsewell
Copy link
Member

A notable potential change, would be to set dmath_double_inline=True as standard, to mirror the current Jupyter Notebook render behaviour

@cheekyshibe
Copy link

INFO: pip is looking at multiple versions of sphinx-togglebutton to determine which version is compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking

When I add mystnb and myst-parser into my requirements.txt file, it will take a long time to determine other packages' version. It that means I have to use specific version for those package?

sphinx>=4.0
sphinx-intl
sphinxcontrib-mermaid>=0.7
sphinx-copybutton
sphinx-tabs
sphinx-togglebutton
sphinx-panels
jieba
ipython
recommonmark
nbsphinx
beautifulsoup4

@cheekyshibe
Copy link

sphinx>=2,<4
it was required that sphinx>=2,<4

The conflict is caused by:
    The user requested sphinx>=4.0
    sphinx-copybutton 0.4.0 depends on sphinx>=1.8
    sphinx-tabs 3.1.0 depends on sphinx<5 and >=2
    sphinx-togglebutton 0.2.3 depends on sphinx
    sphinx-panels 0.6.0 depends on sphinx<5 and >=2
    myst-nb 0.12.3 depends on sphinx<4 and >=2

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

@chrisjsewell
Copy link
Member

it was required that sphinx>=2,<4

oh no what I mean is that it should work with the change to myst-nb, to sphinx>=2,<5

@chrisjsewell
Copy link
Member

but yeh it won't work yet for the current published version

@choldgraf
Copy link
Member

any chance that @mmcky or @AakashGfude would be able to tackle this one? If we can get MyST-NB to Sphinx 4, then we can also get sphinx-book-theme to Sphinx 4, and then Jupyter Book to Sphinx 4!

@mmcky
Copy link
Member

mmcky commented Aug 25, 2021

@choldgraf yup -- I added this to the Next Up on the Activity Board. I am going to take a look at this soon.

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
Archived in project
5 participants