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

Allow outbox box #s to be links, instead of "labels" #3

Open
ihodes opened this issue Jul 25, 2016 · 5 comments
Open

Allow outbox box #s to be links, instead of "labels" #3

ihodes opened this issue Jul 25, 2016 · 5 comments

Comments

@ihodes
Copy link

ihodes commented Jul 25, 2016

i.e. ?hyper=Out[2]

@tavinathanson
Copy link
Owner

@ihodes some reasons I didn't start off basing the logic on cell numbers was:

  • Re-running notebooks generates different cell numbers.
  • Notebook specific vs. general case.

But probably worth doing anyway?

@ihodes
Copy link
Author

ihodes commented Jul 25, 2016

Eh, #1 in particular is a very good point. Not sure you want to open that can of worms by supporting this. I'd close this, but up to you.

@ihodes
Copy link
Author

ihodes commented Jul 25, 2016

Wish there were a better solution than adding some new syntax into a notebook, though…

@tavinathanson
Copy link
Owner

Actually don't mind adding the syntax, since it's unrelated to the notebook and the cell: allows pulling "labels" out of cells that contain other stuff.

Supporting cell numbers seems somewhat reasonable if the user plans to restart and re-run the entire notebook, which should re-number the cells in the identical way, and only append cells vs. re-ordering, resulting in some sort of "true" cell number. Will leave this open for now as I/we play around with this.

@tavinathanson
Copy link
Owner

@ihodes another Jupyter-specific approach could be to find matching In[2] and Out[2] cells, and use the contents of In[2] as the label for Out[2]. Would only support the use case of outputting single variable contents directly to a cell vs. outputting various things to a cell, but still possibly useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants