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

Click on A123456 and jump to OEIS #11

Open
neoneye opened this issue Dec 25, 2021 · 3 comments
Open

Click on A123456 and jump to OEIS #11

neoneye opened this issue Dec 25, 2021 · 3 comments
Labels
web-edit Edit and run loda in the browser

Comments

@neoneye
Copy link
Collaborator

neoneye commented Dec 25, 2021

In the editor area. Hover over an OEIS id, and it becomes a hyperlink, that jumps to OEIS.

In the following code, if you hover over A256967, then it links to its corresponding OEIS page.

And if you hover over A256966, then it links to its corresponding OEIS page.

And if you hover over A000045, then it links to its corresponding OEIS page.

; A256967: a(n) = A256966(n) + 1.
; 1,2,4,7,10,14,18,22,27,32,37,42,47,53,59,65,71,77,83,89,95,102,109,116,123,130,137,144,151,158,165,172,179,186,194,202,210,218,226,234,242,250,258,266,274,282,290,298,306,314,322,330,338,346,354,363,372,381,390,399,408,417,426,435,444,453,462,471,480,489,498,507,516,525,534,543,552,561,570,579,588,597,606,615,624,633,642,651,660,670,680,690,700,710,720,730,740,750,760,770

lpb $0
  sub $0,1
  mov $2,$0
  max $2,0
  seq $2,72649 ; n occurs Fibonacci(n) times (cf. A000045).
  add $1,$2
lpe
add $1,1
mov $0,$1
@neoneye neoneye added the web-edit Edit and run loda in the browser label Dec 25, 2021
@ckrause
Copy link

ckrause commented Dec 25, 2021

Yep, that's very useful. Maybe open the OEIS page in a new tab?

Another idea: if you hover over a seq operation, there could be a link for opening the corresponding LODA program in the editor. But that is probably more difficult to parse.

@neoneye
Copy link
Collaborator Author

neoneye commented Dec 26, 2021

Opening in a new tab that makes good sense.

There is a separate issue for the opening the corresponding LODA program: #7

@ckrause
Copy link

ckrause commented Apr 23, 2022

We could try to ask the OEIS people to add generic links to LODA and Sequence Machine for all sequences. For LODA it would be a link to the editor. But then we also must make sure that we have links back to the OEIS, which is covered by this ticket. Do you think it is feasible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-edit Edit and run loda in the browser
Projects
None yet
Development

No branches or pull requests

2 participants