Comments (20)
It is not quite a quick spot but the error is because https://github.com/sktime/skpro/blob/main/docs/source/conf.py#L148
sphinx doesn't get the json file but the whole HTML page so there is parse json error.
On the other hand, I am not sure how builds so far could have passed. json_url
must be overwritten somehow: https://github.com/sktime/skpro/blob/main/docs/source/conf.py#L162 .
L148 is edited in #125 to fix #122 but why don't just point it to the _static/switcher.json
?
from skpro.
The problem was that after manually modifying the json to add a new version, this change would not be visible on the branch, because the json_url pointed to main.
i dont think it would introduce issue. While the changes in switcher not visible in PR or branch, it would still update correctly in release version. Also it have an added benefit that all legacy docs have the dropdown pointing to all available versions.
from skpro.
Can you please share the link where to see this error? Is it in some PR, or on main itself?
from skpro.
all recent PR, e.g., #222
from skpro.
L148 is edited in #125 to fix #122 but why don't just point it to the
_static/switcher.json
?
what do you mean by this? Is that not where it aready points to?
from skpro.
No json_url
currently points to "https://github.com/sktime/skpro/blob/main/docs/source/_static/switcher.json", which is a website not a json file. It used to point to https://skpro.readthedocs.io/en/latest/_static/switcher.json
, which is a json file but changed in #125.
I think you should revert that change. Or you could point it toward https://raw.githubusercontent.com/sktime/skpro/main/docs/source/_static/switcher.json
from skpro.
oh, I see! Let's try that.
I also remember why I changed #125: The problem was that after manually modifying the json
to add a new version, this change would not be visible on the branch, because the json_url
pointed to main
.
If I revert #125, it possibly fixes failure, but it might introduce the same problem into the release pipeline.
I also wonder, why do we need this? sktime
does not seem to have the json_url
variable.
from skpro.
It is for the version switcher panel that is theme-specific.
It is different than the switcher of RTD. https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/version-dropdown.html.
The docs build for tags seem to not be available due to either failures of configs. So I think you could actually remove that panel.
Edit: as you may observe in the newly build docs in PR. The version in the switcher direct to error page.
from skpro.
hm, what precise change are you suggesting, with "I think you could actually remove that panel."?
from skpro.
I meant removing the json and switcher related configs. Though normally a switcher.json is a minor enhancement for docs. So perhaps you should rebuild the docs for the legacy tags because they are currently not available.
from skpro.
hm, the switcher dropdown doesn't seem to work for me at all...
from skpro.
hm, the switcher dropdown doesn't seem to work for me at all...
The switcher dropdown for release docs will be empty because probably only builds skipping json work. The one in the PR will have all tag links direct to broken page because they weren't built.
from skpro.
ok, that makes sense. I reverted to the original state, this will unfortunately lead to release PRs failing.
Any way we can think around that?
from skpro.
Could you point me to an instance of release PR failing due to this change? I would think the currently failed PRs are more likely because their conf.py still had the error before #225 merged.
Also I think you would want to go to
https://readthedocs.org/projects/skpro/versions/
and activate some of the legacy versions included in the switcher.json. Atm the links in the switcher are all dead except for dev one to the latest version
from skpro.
Thanks, @duydl - I've activated all legacy versions now.
The automation rule for "automatic activate on semver tag" was not enabled, I've enabled this and now in the future it should automatically activate new release tags.
from skpro.
Could you point me to an instance of release PR failing due to this change?
I'll open one and we can see what happens.
Here, fails as usual:
#228
To note, the code quality failure is not due to linting, it has to do with switcher.js
.
from skpro.
Sorry, how did you see it as failed? RTD seemed to build successfully https://readthedocs.org/projects/skpro/builds/23921941/
Also, FYI because most of the tags in the switcher point to version with buggy json_url, they could not be built. Seem like all tags after https://skpro.readthedocs.io/en/v2.1.1/index.html . From v2.1.1 the build is failing.
Edit: I saw the test/code quality CI failure. Isnt it because of trilom/[email protected] action. I am not sure what it does, but is not used in sktime.
from skpro.
Sorry, how did you see it as failed?
CI in the PR
from skpro.
Also, FYI because most of the tags in the switcher point to version with buggy json_url, they could not be built. Seem like all tags after https://skpro.readthedocs.io/en/v2.1.1/index.html . From v2.1.1 the build is failing.
Should we rebuild with the URL fixed? E.g., push 2.1.2 where that's the only change?
from skpro.
CI in the PR
RTD seemed to build successfully https://readthedocs.org/projects/skpro/builds/23921941/
I saw the test/code quality CI failure. Isnt it because of trilom/[email protected] action. I am not sure what it does, but is not used in sktime.
Should we rebuild with the URL fixed? E.g., push 2.1.2 where that's the only change?
Or just remove those from the switcher.json . Fixing only the current stable version would be enough imo.
from skpro.
Related Issues (20)
- [ENH] general Johnson QPD regression wrapper to reduce proba to quantile predictions
- [ENH] proba regression: reduction to multiclass classification HOT 7
- [BUG] test_methods_p not handling getattr after shifting
- [ENH] Multiple link function support for GLMs HOT 3
- [BUG] `sklearn.utils._param_validation.InvalidParameterError` thrown when using max_iter parameter in various sklearn regressors HOT 1
- [BUG] `Singular Matrix` error when testing param set with Cross Validation estimators
- [ENH] Design of a Bayesian model interface for sktime and skpro
- [ENH] outlier detection based on probabilitsic regressors
- [MNT] `numpy 2` compatibility HOT 3
- [ENH] merge `test_probabilistic_metrics` into `TestAllDistrMetrics` HOT 1
- [ENH] Improve efficiency of `Histogram Distribution` HOT 1
- [MNT] address incompatibility of `lifelines` with `scipy 1.14` HOT 1
- [BUG] `Histogram` distribution fails to construct on `numpy 2` HOT 2
- [BUG] `plot` method of the `Binomial` distribution shows incorrect pmf.
- Intervals/quantiles can be negative for models that can only make non-negative predictions HOT 3
- [ENH] interface `TweedieRegressor` from `sklearn` as `skpro` regressor HOT 6
- [ENH] interface GLM models from `glum`
- [ENH] Tweedie distribution, incl mathematics and design HOT 4
- [ENH] dummy supervised regressor HOT 5
- [ENH] dummy supervised regressor with polars support HOT 4
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 skpro.