It used to be the case that one could easily edit colab notebooks from within GitHub, and also move them (so long as one remembered to change the path in the notebook itself).
Just now I noticed that this functionality in the GitHub browser seems to have been removed. Is this a bug? Is there workaround that does not involve the command line and git?
Related
Is there any way that I can locally link from one Jupyter notebook to another on GitHub without the need to embed the absolute path, such as https://github.com/jeffheaton/test-linking/blob/main/notebook1.ipynb?
I create a notebook (notebook1.ipynb)
With this content:
# This is Notebook 1
* [Link to Notebook 2a](notebook2.ipynb)
* [Link to Notebook 2b](./notebook2.ipynb))
I tried two different methods, one using the . for current directory. Neither worked.
notebook2.ipynb is actually at this URL:
https://github.com/jeffheaton/test-linking/blob/main/notebook2.ipynb
However, GitHub transforms my link into:
https://notebooks.githubusercontent.com/view/notebook2.ipynb
Which results in a bad link.
If I put this same markdown into README.md it works fine. Just does not seem to like jupyter notebooks.
I would really like to NOT have to prefix everything with https://github.com/jeffheaton/test-linking/blob/main/, because the local links:
Work locally, outside of GitHub
On GitHub are branch agnostic
You can see my attempts to make this work at this short repo: https://github.com/jeffheaton/test-linking
In case anyone happens upon this question. GitHub resolved this issue, relative links now appear to work just fine.
I'm using the builtin setting sync with vscode (not the extension), I've successfully synced, yet I do not see the actual files anywhere through github. Do these files exist somewhere that is accessible through github?
From what I can tell the files are not accessible through github, obviously they are at the root of the repo in .vscode/, but I'd love to actually see the backed up version.
The way I handled this with vim was to add a source command in the .vimrc, then link that to it's own github repo.
I guess I'll have to just trust that github and vscode have it handled
I accidentally uploaded a bunch of very sensitive client projects to Github. I need to remove them immediately.
I'm very new to Git. I don't know how to use the terminal. I'm using Github Desktop on Mac. Can someone please explain it to me in the simplest terms possible how to quickly and effectively purge/remove full directories from a GitHub repository's history without using terminal? (or very very simple specific instructions on how to use terminal to do this?)
I found some terminal directions already through Google, but I don't know how to use it. I can't find any option on github.com to do it via browser, and the Desktop app doesn't seem to allow history of files or directories.
When doing a code review on jupyter notebooks in github, it shows only the html code that generates the notebook. Are there any extensions that would enable github to show the rendered jupyter notebook, along with the ability to comment on cells for code review?
Under the hood Notebook files are JSON documents. All the markdown, code, outputs are present in this JSON document. Since git diff used by GitHub is meant for text files, it's hard to read Jupyter Notebook diffs on GitHub.
I built a GitHub app ReviewNB specifically to review Jupyter Notebooks on GitHub. It integrates directly with your repositories on GitHub and provides visual diff and commenting support (see screenshot below).
There's also nbdime if you just want to access rendered diff locally.
I have a very simple notebook, hosted on github and on bitbucket.
The github URL
displays fine in the nbviewer, but the bitbucket URL
- which should indicate the same trivial notebook - does not work with the nbviewer.
Is it possible that nbviewer only takes github notebooks?
Later comment:
my repo was private - so that was at least one reason why it could not work!
Since this is/was the first result when googling for this, I just thought I'd update and let everyone know that this is now an add-on available in Bitbucket. You can find it under Settings -> Find Integrations. The source and issue tracker are available here - https://bitbucket.org/bitbucket/bitbucket-nbviewer
Based on this issue on Bitbucket's issue tracker, it does not seem to be supported yet.
As pointed out by #ThomasK in the comments, you can display a notebook from bitbucket if you copy the raw address.
Just click on the three dots next to your notebook and copy the address that you get when you click on Open raw.
Copy this address...
... and paste it in the text box in https://nbviewer.jupyter.org/ ...
... and it will render your notebook: