8000 Mathstring conveniences for axis_labels and tick labels by IuryPiva · Pull Request #11584 · bokeh/bokeh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Mathstring conveniences for axis_labels and tick labels #11584

Merged
merged 11 commits into from
Sep 11, 2021

Conversation

IuryPiva
Copy link
Contributor
@IuryPiva IuryPiva commented Sep 10, 2021

Strings with MathJax default TeX delimiters are now converted into TeX object.
Bokeh's bundler will check for those delimiters and include bokeh-mathjax.

Discussion on bundler and finding mathstrings #11589

@tcmetzger
Copy link
Member

Docs for the conveniences introduced in this PR are in: #11544

@lgtm-com
Copy link
lgtm-com bot commented Sep 11, 2021

This pull request introduces 1 alert when merging ef40ee4 into ddecf31 - view on LGTM.com

new alerts:

  • 1 for Unused import

bokeh/embed/bundle.py Outdated Show resolved Hide resolved
bokeh/embed/bundle.py Outdated Show resolved Hide resolved
def test_plaintext() -> None:
from bokeh.models import PlainText
test_plaintext = PlainText("$$sin(x)$$")
return test_plaintext
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the advantage of making these fixtures? They seem like they could just be module-scope vars defined at the top of the test module (which is fine)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just followed the current design of the file to be honest.

@bryevdv
Copy link
Member
bryevdv commented Sep 11, 2021

A couple of comments, but also please make an issue regarding the special-casing for the following release (cc @mattpap )

@bryevdv bryevdv merged commit c304e65 into branch-2.4 Sep 11, 2021
@bryevdv bryevdv deleted the iurypiva/mathstring-conveniences branch September 11, 2021 22:16
@mattpap
Copy link
Contributor 8000
mattpap commented Sep 11, 2021

This was unfinished, should not have been merged yet.

@bryevdv
Copy link
Member
bryevdv commented Sep 11, 2021

@mattpap It's close enough, in my opinion, and there are other PRs waiting on it. The rest will have to be follow-on.

Edit: Also, as a matter of policy, in the future, if you have changes you consider blocking please submit an actual review requesting changes to actually communicate that effectively.

@mattpap
Copy link
Contributor
mattpap commented Sep 12, 2021

It's not in my opinion. Given that I was more involved in this work, I should have been asked for a go ahead before this was merged. Now it makes my problem to deal with any issues that this PR introduces.

@bryevdv
Copy link
Member
bryevdv commented Sep 12, 2021

I've presented the solution: a Changes Requested review will clearly communicate a strong objection to merging. Otherwise, I'm trying to get a release out with the information I have in front of me.

bryevdv pushed a commit that referenced this pull request Dec 13, 2021
* working conveniences axis_labels and tick labels

* fix line too long

* remove tick labels not computed

* add inline property to bokehjs

* mathstring tests

* mathstring unit tests

* remove inline prop from TeX

* do not expect python conversions of mathstrings

* Fix docstring links

* Refactor _use_mathjax

* update utils.ts

Co-authored-by: tcmetzger <39711796+tcmetzger@users.noreply.github.com>
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0