Comments (8)
my local sphinx does find the math package but this displays the whole entity as a subscript. In some places, someone has used :mathrm: which works on rtd but not locally and looks much better.
Actually,the astropy_helpers probably sets me up for imgmath and I have not really tried that yet.
I am using Firefox.
I will try imgmath next and see what happens. If that doesn't work, I will try a few more things but I don't expect to be on this forever.
from chiantipy.
Ah ok so the equations just show up as :math:$\my_latex_equation$
literals?
I have included a couple of math expressions using :math: (for inline) or .. math:: for separate equations in several docstrings. From what I understand, these are general Sphinx expressions for typesetting math and should not be dependent on what type of renderer (e.g. mathjax, imgmath, pngmath) you're using.
Yes, astropy-helpers uses imgmath locally. I wonder if there is something wrong with your sphinx installation? Have you tried uninstalling and reinstalling sphinx? What version of sphinx are you using? Perhaps your installed version is missing the math support extension?
I'm also using the sphinx_rtd_theme
package, though I don't think this should make any difference...
All of this is reminding me too that we should mention somewhere in the docs that if people want to build the docs locally, they will need a few extra dependencies.
from chiantipy.
I think I have it working now
In astropy_helpers/astropy_helpers/sphinx/conf.py, the extension imgmath is loaded. I changed this to mathjax
so far so good
from chiantipy.
Hmm strange. Perhaps there is just some issue with imgmath on your local setup? Either way, glad it is working now.
I would avoid committing any changes you've made to astropy-helpers to the upstream. Since this is a submodule, it would create a bit of a headache if we ever wanted to pull down upstream changes from that repo.
from chiantipy.
I am going to check this one more time -- there are only a few edits involved to the ion class and then push it to the upstream package and see how if the docs are built on RTD.
Let me know if this is not something to do right now.
from chiantipy.
This is PR #31 ? It looks like there are currently conflicts so you might have trouble merging into the upstream.
Looking at the commits, it doesn't look like anything will break RTD.
We should think about implementing some automatic builds via Travis CI as well so that it will be easier to say when PRs break the install at least. Later on tests could be added for better coverage. These also get run when a PR is submitted so if a PR breaks the install/fails a test, you know before the merge happens.
from chiantipy.
Sounds like a good idea. I followed the link you gave to 'Travis CI' and logged in via github. Now they want to access my github data. Is that the way to go?
from chiantipy.
Sounds like this has been resolved in that #33 has been merged. Closing.
from chiantipy.
Related Issues (20)
- AttributeError: module 'ChiantiPy.tools.data' has no attribute 'Abundance' HOT 27
- conda-forge package HOT 4
- KeyError on windows 10 HOT 5
- Error on running provided jupyter notebooks in the repo HOT 3
- line identifications in spectrum plot HOT 13
- Ability to give custom abundance files HOT 8
- Error while using spectrum with elementList only when all the ions are not present in the masterlist HOT 7
- Unexpected behavior when setting minAbund lower than lowest abund HOT 3
- Error when giving "Zn" in elementlist HOT 2
- How much memory does the mspectrum process consumes? HOT 1
- Chianti is taking more threads than specified HOT 2
- Clarify emission measure units in the function documentations. HOT 2
- Question: Support for photons/keV completed? HOT 10
- Getting spectrum from Ch.spectrum without smoothing/filtering HOT 4
- IDL and ChiantiPy gives different results. HOT 4
- Possible typo in function's documentation HOT 1
- NaNs generated when calculating spectra under certain conditions HOT 9
- Upload 0.15.1 to PyPI HOT 3
- Non-ionization equilibrium? HOT 2
- Unable to load ioneq HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chiantipy.