Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

Fix wald friedman - #88

Closed
najuzilu wants to merge 5 commits into
masterfrom
fix-wald_friedman
Closed

najuzilu wants to merge 5 commits into
masterfrom
fix-wald_friedman

Conversation

@najuzilu

Copy link
Copy Markdown
Contributor

Fixes #72

Travis will fail until the notebook is generated automatically.

@najuzilu
najuzilu requested a review from mmcky March 30, 2020 10:28
@Harveyt47

Copy link
Copy Markdown
Member

Hi @najuzilu , @jstac @mmcky I think this link should be pointing to this notebook. I believe the link in this PR will just link back to the same lecture notebook on wald Friedman. But there are also issues with the notebook I have linked (the sliders output is having a few errors), which I'm working to resolve.

@mmcky

mmcky commented Mar 30, 2020

Copy link
Copy Markdown
Contributor

@Harveyt47 -- QuantEcon.notebooks is an old repository that we will need to archive after this migration. The new repos are lecture-python-intro.notebooks for notebooks related to the lecture-python-intro set of lectures.

@mmcky

mmcky commented Mar 30, 2020

Copy link
Copy Markdown
Contributor

Any edits should be applied to the RST file which will then auto publish to these supporting notebook repositories on publish.

@najuzilu

najuzilu commented Mar 30, 2020 •

Copy link
Copy Markdown
Contributor Author

@mmcky: @Harveyt47 is pointing out that the context does not match the linked notebook since the one we're linking to does not have any sliders while the text implies that the notebook does.

To facilitate comparative statics, we provide a Jupyter notebook that generates the same plots, but with sliders.

So should we submit a new issue to fix the rST file?

@Harveyt47

Copy link
Copy Markdown
Member

@mmcky I see, so I think we need to move this notebook out of that repo as well as fix it up if we are going to continue to have this link in the lecture. I believe that this is also related to this issue.

@mmcky

mmcky commented Mar 30, 2020

Copy link
Copy Markdown
Contributor

@Harveyt47 and @najuzilu do these sliders use ipython magics to get them in place? Are they contained in the original rst file. We should figure out how to get this to pass-through sphinx so we can auto-publish with sliders etc.

@Harveyt47

Copy link
Copy Markdown
Member

Hey @mmcky you mean to move the code which generates the sliders into the main rst file wald_friedman.rst located in the lecture-python-intro repo?

@mmcky

mmcky commented Mar 30, 2020

Copy link
Copy Markdown
Contributor

hey @Harveyt47 as a rule it is best to have all the support notebooks of the lectures such as wald_friedman built by sphinx so that the notebooks are updated from the sources which is the rst file.

@Harveyt47

Copy link
Copy Markdown
Member

@mmcky sounds good I'll move this code into this section once the code is fixed.

@mmcky

mmcky commented Apr 1, 2020

Copy link
Copy Markdown
Contributor

@jstac this version of wald_friedman uses jupyter notebook sliders. I asked @Harveyt47 to migrate this from the edited notebook that was being linked to and served from QuantEcon.notebooks (which will be archived). My question is does this overly complicate the code?

@jstac

jstac commented Apr 4, 2020

Copy link
Copy Markdown
Contributor

@mmcky So this works now? We have widgets via jupinx? I didn't realize. That's very cool.

Let's go ahead. Please merge when ready. Thanks for those edits @Harveyt47

@mmcky

mmcky commented Apr 5, 2020

Copy link
Copy Markdown
Contributor

hey @jstac let me check the nbconvert element to see if passthrough is working for the html.

@mmcky

mmcky commented Apr 5, 2020 •

Copy link
Copy Markdown
Contributor

@AakashGfude current nbconvert parses the ipywidget and puts in some static images via jupinx. Do you think there would be a pretty straight forward way to use the javascript object to embed into our html pages

https://ipywidgets.readthedocs.io/en/latest/embedding.html
jupyter/nbconvert#900

@mmcky

mmcky commented Apr 24, 2020

Copy link
Copy Markdown
Contributor

@jstac I think we can close this issue. We added sliders to it so the download notebook was complete with jupyter type interactions but has made the static site a bit messier. I wonder how we should support this in future projects. Perhaps context based directives (one set of code for notebook targets and another for html?)

@jstac

jstac commented Apr 24, 2020

Copy link
Copy Markdown
Contributor

Thanks @mmcky. I suggest that for anything of this nature we should be aiming to implement in Jupyter Book, so it's there when we make the switch. Perhaps it's worth opening an issue in that tracker?

@mmcky

mmcky commented Apr 29, 2020

Copy link
Copy Markdown
Contributor

Thanks for updating the Issue @Harveyt47 but let's write-up what needs to be done so when we come back to this in the future we will know what to do without to much thinking. It takes time now but will reward us later on :-) --- I will close this PR for now.

@mmcky mmcky closed this Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants