How to clone git repo and run a code in repo directory

  • Thread starter Thread starter Arman777
  • Start date Start date
  • Tags Tags
    Code
AI Thread Summary
The discussion revolves around customizing the JupyterLab Neon Theme by modifying the custom.css file, which requires a development installation. To achieve this, the user needs to clone a repository and execute specific commands, including "npm install" and "jupyter labextension link .". The conversation highlights the necessity of installing Git Bash for command line operations and suggests using Visual Studio Code or GitHub Desktop for a more user-friendly experience. Additionally, Node.js must be installed to run the npm command. It is recommended to create a dedicated directory for projects to avoid clutter and potential issues with file management. The user expresses concern about potential viruses from extensions after experiencing computer problems while working on JupyterLab. They also mention downloading an updated version of the theme from GitHub.
Arman777
Insights Author
Gold Member
Messages
2,163
Reaction score
191
I have downloaded JupyterLab Neon Theme, and I can run it without a problem, but I want to change some things on the custom.css file.

However, when I change that file, I need to do something called development installation. However, I have no idea how to do it properly. I mean, what steps should I follow to do that. First, I need to clone a repo, but I don't even know how to do that. And then it says type this
Code:
npm install
jupyter labextension link .
in repo directory.

I looked to Google, and it seems that I need to download git bash? Is that what is wanted from the development installation?

Note: I am using Windows 10
 
Last edited:
Technology news on Phys.org
Are you very comfortable with the command prompt? If not I suggest that you use a GUI to help you with this.

My recommendation would be the built-in Git functionality of Visual Studio Code https://code.visualstudio.com/docs/editor/versioncontrol, or you could try GitHub Desktop.

You will also need to install Node.js which contains what you need for the npm install command to work: https://nodejs.org/ (choose the LTS version).

I also recommend you set up a directory at the root of your C:\ drive (or another drive) called C:\Projects or whatever and do anything involving Git or Node in subdirectories of this (a single Git command, or a 'npm install' can create or update hundreds or even thousands of files; this doesn't play well with whatever backup strategy you have for your Users\Arman\My Documents, and Search will slow your machine to a crawl.
 
pbuk said:
Are you very comfortable with the command prompt? If not I suggest that you use a GUI to help you with this.

My recommendation would be the built-in Git functionality of Visual Studio Code https://code.visualstudio.com/docs/editor/versioncontrol, or you could try GitHub Desktop.

You will also need to install Node.js which contains what you need for the npm install command to work: https://nodejs.org/ (choose the LTS version).

I also recommend you set up a directory at the root of your C:\ drive (or another drive) called C:\Projects or whatever and do anything involving Git or Node in subdirectories of this (a single Git command, or a 'npm install' can create or update hundreds or even thousands of files; this doesn't play well with whatever backup strategy you have for your Users\Arman\My Documents, and Search will slow your machine to a crawl.
Thanks a lot. It seems that I manage to what I wanted to do without these steps. The bad parts is I hope this/these type of extensions do not contain some sort of virus...My computer gone crazy while I was working on jupyterlab and ı had to just close the computer and restart it again.

I have downloaded this thing https://github.com/timkpaine/jupyterlab_miami_nights which is just and updated version of the JupyterLab Neon Theme
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top