For the git cloning you are trying in your bottom screenshot

Go here and click on the 'launch binder' badge. When the temporary remote session comes up, click on the 'Terminal' tile in the 'Launcher' panel on the right, under 'Other' (third row). In the terminal that comes up then type the following:

git clone https://github.com/strath-sdr/rfsoc_sam.git

(that part after git clone comes from going to github page for strath-sdr/rfsoc_sam and and clicking the green code button and copying the https code from there.)
You'll see that git clone command work. Compare that behavior to anything you try on your own machine because git works there in the temporary, remote session served via MyBinder.

For the pip install of 'strath-sdr/RFSoC-Book' direct from the GitHub repo

In same terminal as the session I suggest you start above, run the following:

pip install git+https://github.com/strath-sdr/RFSoC-Book@main

That will use pip to install packages rfsoc-book-1.0.1 rfsoc_freqplan-0.3.2 strath_sdfec-1.0.1 direct from the GitHub repo. The syntax probably doesn't match some old posts because Github began enforcing limiting things to https.

There is another variant for the pip install that will work that I found is from here and that is:

pip install https://github.com/ <username>/<reponame>/archive/<branch_name>.zip

For this example that would be:

pip install https://github.com/strath-sdr/RFSoC-Book/archive/main.zip

(I believe this comment even suggests use of the zip to be faster.)

The easiest way is to test this is to start a new temporary session using the 'launch binder' route as above and then try that command in a terminal there. Having a new session makes sure you know for sure each variant command for installing strath-sdr/RFSoC-Book direct from the GitHub repo works.


Getting back to your issue, I understand getting it to work in sessions from MyBinder doesn't help on your computer, but it gives you a place to test commands without concern whether the issue is either the syntax of the command and your system or possibly both. You take the machine out of the equation to make it easier to work things out.

Answer from Wayne on Stack Overflow
🌐
GitHub
github.com › jupyter › notebook › issues › 3395
how to run git clone https://.... in jupyter notebook · Issue #3395 · jupyter/notebook
March 5, 2018 - File "<ipython-input-4-4d4c63f65776>", line 1 git clone https://github.com/tensorflow/models" ^ SyntaxError: invalid syntax · Also can you tell me how I can do cd Desktop/... in jupyter notebook
Author   isalirezag
Top answer
1 of 1
1

For the git cloning you are trying in your bottom screenshot

Go here and click on the 'launch binder' badge. When the temporary remote session comes up, click on the 'Terminal' tile in the 'Launcher' panel on the right, under 'Other' (third row). In the terminal that comes up then type the following:

git clone https://github.com/strath-sdr/rfsoc_sam.git

(that part after git clone comes from going to github page for strath-sdr/rfsoc_sam and and clicking the green code button and copying the https code from there.)
You'll see that git clone command work. Compare that behavior to anything you try on your own machine because git works there in the temporary, remote session served via MyBinder.

For the pip install of 'strath-sdr/RFSoC-Book' direct from the GitHub repo

In same terminal as the session I suggest you start above, run the following:

pip install git+https://github.com/strath-sdr/RFSoC-Book@main

That will use pip to install packages rfsoc-book-1.0.1 rfsoc_freqplan-0.3.2 strath_sdfec-1.0.1 direct from the GitHub repo. The syntax probably doesn't match some old posts because Github began enforcing limiting things to https.

There is another variant for the pip install that will work that I found is from here and that is:

pip install https://github.com/ <username>/<reponame>/archive/<branch_name>.zip

For this example that would be:

pip install https://github.com/strath-sdr/RFSoC-Book/archive/main.zip

(I believe this comment even suggests use of the zip to be faster.)

The easiest way is to test this is to start a new temporary session using the 'launch binder' route as above and then try that command in a terminal there. Having a new session makes sure you know for sure each variant command for installing strath-sdr/RFSoC-Book direct from the GitHub repo works.


Getting back to your issue, I understand getting it to work in sessions from MyBinder doesn't help on your computer, but it gives you a place to test commands without concern whether the issue is either the syntax of the command and your system or possibly both. You take the machine out of the equation to make it easier to work things out.

Discussions

Cloning git to Binder Jupyter Lab
I am trying to clone from github to jupyter lab on binder, I clicked install the git extension for binder but am getting a Build Failed error: Build failed with 504, please run ‘jupyter lab build’ on the server for full output The process i’m following is here: https://geo-python-sit... More on discourse.jupyter.org
🌐 discourse.jupyter.org
0
0
September 20, 2021
python - git: cloning problem via jupyter notebook - Stack Overflow
I'm trying to clone a file in my repo to a jupyter notebook. This is for a final project which is a requirement. The jupyter notebook has a set of programs that will run correctly if a module in my More on stackoverflow.com
🌐 stackoverflow.com
April 30, 2020
How to use a new repository downloaded from github
Hello, I am a new user of python and github. I want to use a new repository (module) published on github. I downloaded the zip folder and extracted it. , but I don’t know how to use this module with jupyter (on windows 10). How can I import this module into jupyter . Thanks! More on discourse.jupyter.org
🌐 discourse.jupyter.org
4
0
April 21, 2021
how to run git clone https://.... in jupyter
I am new to jupyter In python i can easily run git clone https://github..... and it runs and work My question is how I can do it in jupyter because when i cpy and paste it in jupyter and run it it ... More on github.com
🌐 github.com
4
March 4, 2018
🌐
Reviewnb
blog.reviewnb.com › github-jupyter-notebook
How to use Git / GitHub with Jupyter Notebook - ReviewNB Blog
February 21, 2020 - We copy two notebooks to the directory where we cloned projectA repository, >> cp /some/path/analysis1.ipynb /path/of/projectA/ >> cp /some/path/scratch.ipynb /path/of/projectA/ Let’s say we want to push analysis1.ipynb to GitHub.
🌐
GitHub
github.com › jupyterlab › jupyterlab-git
GitHub - jupyterlab/jupyterlab-git: A Git extension for JupyterLab · GitHub
# Clone the repo to your local environment git clone https://github.com/jupyterlab/jupyterlab-git.git # Change directory to the jupyterlab-git directory cd jupyterlab-git # Install package in development mode pip install -e ".[dev,test]" pre-commit ...
Starred by 1.6K users
Forked by 398 users
Languages   TypeScript 67.8% | Python 29.9% | Jupyter Notebook 1.2%
🌐
Jupyter Community Forum
discourse.jupyter.org › jupyterlab › extensions
Cloning git to Binder Jupyter Lab - extensions - Jupyter Community Forum
September 20, 2021 - I am trying to clone from github to jupyter lab on binder, I clicked install the git extension for binder but am getting a Build Failed error: Build failed with 504, please run ‘jupyter lab build’ on the server for full output The process i’m following is here: https://geo-python-sit...
🌐
Medium
medium.com › @thiliniumesha417 › how-to-clone-a-github-repository-and-set-up-a-virtual-environment-for-jupyter-notebooks-48d78ee9273c
How to Clone a GitHub Repository and Set Up a Virtual Environment for Jupyter Notebooks | by Umesha KandanaArachchi | Medium
August 14, 2024 - Log in to Jupyter Notebook or JupyterLab. When creating a new notebook or changing the kernel for an existing notebook, you can select the kernel you just created from the list. ... That’s it! You’ve successfully cloned a GitHub repository, set up a virtual environment, and configured it for use with Jupyter Notebooks.
🌐
Stack Overflow
stackoverflow.com › questions › 61522180 › git-cloning-problem-via-jupyter-notebook
python - git: cloning problem via jupyter notebook - Stack Overflow
April 30, 2020 - But why isn't it working when using the jupyter notebook? ... I don't understand properly what are you going to achieve but I think you need to pull from your remote repository ... you can't use clone to get single file from your remote repository. You can use clone to download whole repository ... sorry. just a bit of context: there is a folder and inside that folder is a 1 project file. i have a python module in a remote git repository and i need to clone that to the folder where the project file.
Find elsewhere
🌐
Quora
quora.com › How-do-I-download-a-project-from-GitHub-and-open-in-a-Jupyter-Notebook
How to download a project from GitHub and open in a Jupyter Notebook - Quora
You will see a green button clone ... you have git installed in your machine you can copy link of project using copy button then open git in your machine and type command ......
🌐
Nkelber
nkelber.github.io › tapi2021 › book › configure-git.html
Clone your repository to your local machine
Return to your terminal or Git Bash. Use the pwd command to confirm you are in the directory where you would like to make a local copy of your repository. If everything looks good, run git clone followed by the address you copied.
🌐
Reviewnb
blog.reviewnb.com › jupyterlab-git-extension
How to use the JupyterLab Git extension - ReviewNB Blog
November 30, 2022 - Click on the Clone a Repository button on the JupyterLab Git extension panel and paste the repository link we copied above: Now the repository is cloned to your local machine & you can see the awesome-notebooks folder in the navigation panel.
🌐
C# Corner
c-sharpcorner.com › article › how-to-clone-git-repository-in-aws-notebook-instances
How To Clone Git Repository In AWS Notebook Instances
September 8, 2021 - From this article, we’ll be able to clone the public repositories from GitHub and explore them with ease in the Notebook Instance in Amazon SageMaker. Step 1 - Create Notebook Instance in Amazon SageMaker · You can easily follow the instructions from the previous article, Creating Notebook Instance in Amazon SageMaker, and have the notebook instance running. We have our notebook instance, ojash-deployment-notebook running. ... We’ll be taken to the Jupyter Page Under Files.
🌐
Reviewnb
reviewnb.com › git-jupyter-notebook-ultimate-guide
Git and Jupyter Notebooks: The Ultimate Guide
Let's briefly list down the challenges of using Git with Jupyter Notebooks - ... In this article, we'll look at each of these problems & suggest optimal solution for each. First, let's get the basics out of the way. There are 2 main ways to perform Git operations (clone / pull / push) for Jupyter ...
🌐
Chemcompute
chemcompute.org › jupyterhub › git
Launch a Jupyter Notebook from a GitHub Repo | ChemCompute: Free Computational Chemistry For Undergraduates
Start a notebook instance then return to this tab Login first · Enter the URL of the repo you want to clone · Click the "Clone Repo" button · URL: Optional: enter branch (if not master or main) Optional: choose between Jupyter Notebook (default) or Jupyter Lab ·
🌐
Saturn Cloud
saturncloud.io › blog › how-to-import-code-into-jupyter-notebook-online
How to Import Code into Jupyter Notebook Online | Saturn Cloud Blog
October 25, 2023 - Open Jupyter Notebook online in your web browser. Click on the “New” button in the top right corner of the screen. Select “Terminal” from the dropdown menu. In the terminal window, type the following command: git clone [repository URL]
🌐
GitHub
github.com › jupyter › help › issues › 311
how to run git clone https://.... in jupyter · Issue #311 · jupyter/help
March 4, 2018 - and it runs and work My question is how I can do it in jupyter because when i cpy and paste it in jupyter and run it it gives me error that: File "<ipython-input-4-4d4c63f65776>", line 1 git clone https://github.com/tensorflow/models" ^ SyntaxError: invalid syntax
Author   isalirezag
🌐
Cyberhelp
sesync-ci.github.io › faq › git-and-jupyterlab.html
How do I work with a git-versioned project in Jupyter Lab?
February 21, 2020 - Whether you are using the git extension or the command line, if you want to sync your local repo with a remote repo, you will need to create a remote repo on GitHub or GitLab. See our quickstart instructions here. SESYNC’s Jupyter server has the Jupyter Lab git extension enabled.
🌐
Ebrains
wiki.ebrains.eu › bin › view › Collabs › neuromorphic › HowToUse › Git clone from a notebook
Git clone into a notebook - HBP Wiki
April 6, 2023 - git clone https://github.com/electronicvisions/brainscales2-demos.git --branch jupyter-notebooks-experimental
🌐
Qubole
docs.qubole.com › en › latest › user-guide › notebooks-and-dashboards › notebooks › jupyter-notebooks › managing-jupy-notebook-versions › link-jupy-notebook-github.html
GitHub Version Control for Jupyter Notebooks — Qubole Data Service documentation
Obtain the GitHub repository URL. Navigate to the GitHub profile and click Repositories. From the list of repositories, click the repository that you want to link. Copy the URL that is displayed within that repository. Alternatively, you can navigate to the GitHub profile and copy the URL from ...
🌐
Jupyter Community Forum
discourse.jupyter.org › jupyterhub › zero to jupyterhub on kubernetes
How do I git pull a private repository of example notebooks (Z2JH) - Zero to JupyterHub on Kubernetes - Jupyter Community Forum
July 9, 2020 - Hi! I am looking for some insight in the best practices of this. I have a pull-only ssh-key with access to a github repository of notebooks that I would like to have users access. As I see it, there are currently two ways of doing this: Accessing SSH-access from the RUN-command in the Dockerfile: RUN --mount=type=ssh git clone git@github.com:myorg/myproject.git myproject and when building doing docker build --ssh ssh_key.