-
Notifications
You must be signed in to change notification settings - Fork 3
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
Incorrect example for ⎕IO=1 on page /SystemFunctions.html #5
Comments
Hey @AleBeda I would love to do this. Can I? |
@NaincyKumariKnoldus, the repository is not mine. It's up to @xpqz to decide. He probably won't mind if you send him a PR. |
okay @AleBeda sure I am doing it. |
Hi @NaincyKumariKnoldus annd @AleBeda -- and thanks for taking the time. It's in fact the first result that's wrong; I was relying on ⎕IO being defaulted to 1 when you open a new session in a notebook, but the build system that makes the book has an IO-setting that 'spills over' from an earlier chapter. The last For future reference, the HTML pages are auto-generated from the Jupyter notebooks that make up the source for the book; thus any PRs would need to target those, as any changes to the HTML pages will get overwritten next time I run |
Okay! @xpqz You mean to say I have to change first result not second result. Right? |
That was my intention, but it works doing it like so, which should be immune to this problem: ⍳4 ⊣ ⎕IO←0
⍳4 ⊣ ⎕IO←1 |
okay I am changing first result. Correct? |
I've fixed it already this time. But as I said, your PR would have needed to target the notebook itself Fixed in 142e6af |
Means ......I havent understand. |
So assuming you're not familiar with jupyter and jupyter-book....the book is built from jupyter notebooks and the Dyalog jupyter kernel. The website's html is automatically generated, and need never be modified manually. The notebook in question is this:
Any changes to the book's content text, code examples etc always go in the notebook files ( Whilst the notebooks themselves are basically just a bunch of json, they're not intended to be edited directly. Instead, in order to make changes to the notebooks you need the following bits and bobs installed:
With that in place, you can edit directly in a web browser, crucially including executing APL code in place. Your PR changes the build artefacts, not the source. Instead, had you changed the notebook source, the build process would have executed the APL snippet, and included the (correct) output into the generated html. Don't let this put you off: you spotted a problem, reported it, and it got fixed. Play around a bit with the jupyterbook system; it's a super-cool tool chain to do this kind of thing with. |
This example does not look correct. The second result should be
1 2 3 4
. The reason is that the assignment of ⎕IO should precede⍳4
.The text was updated successfully, but these errors were encountered: