Installing in non-Anaconda-based Jupyterlab instance #1263
Replies: 6 comments 1 reply
-
Hey @samrblackman This extension can definitely be installed in non-Anaconda-based instance. You should check:
To receive more help, you will need to share more info about your system. In particular, you should execute JupyterLab in debug mode (using the
|
Beta Was this translation helpful? Give feedback.
-
Thanks Frederic,
Perhaps the below details will help.
I have installed git and checked the option for my system path variables to
be updated. This appears to install successfully.
I then run the following within a .bat script (as admin) to create my
jupyterlab instance. <USER> is a placeholder for my user profile name.
cd C:\Users\<USER>\JupyterLab\workspace
C:
SET JUPYTER_RUNTIME_DIR=C:\Users\ <USER> \JupyterLab\runtime
SET JUPTER_DATA_DIR=C:\Users\ <USER> \JupyterLab\jupyter
SET SHELL=C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
SET PATH=C:\Program Files\Python311;C:\Program
Files\Python311\Scripts;C:\Program Files\Python311\Lib;C:\Program
Files\Python311\include
call python -m venv C:\Users\ <USER> \JupyterLab\gitenv
call C:\Users\ <USER> \JupyterLab\gitenv\Scripts\activate.bat
call python -m pip install --upgrade pip
call pip install pywinpty
call pip install requests
call pip install jupyter
call pip install -v "jupyterlab<4"
call pip install jupyterlab-git
call ipython kernel install
call pip install pandas
call jupyter lab --debug
This seems to run successfully, and then when the JupyterLab instance
launches in my Chrome browser, I get the error message "Failed to load the
jupyterlab-git server extension. Git command not found - please ensure you
have Git > 2 installed."
I don't understand as I have Git installed and as far as I know the correct
path variables are set up. I can access git via cmd and powershell outside
of jupyterlab, so I am confused!
Thanks for your help and please let me know if there is anything else I can
do to help.
…On Fri, Sep 8, 2023 at 7:44 AM Frédéric Collonval ***@***.***> wrote:
Hey @samrblackman <https://github.com/samrblackman>
This extension can definitely be installed in non-Anaconda-based instance.
You should check:
- git command is available in whatever environment isolation you are
using
- node.js is not needed - installing through pip with pip install
jupyterlab-git will give you the JavaScript assets directly
To receive more help, you will need to share more info about your system.
In particular, you should execute JupyterLab in debug mode (using the
--debug option).
of importance, don't install Python package in the user space (using pip
install --user) it is known to behave poorly with JupyterLab extension.
—
Reply to this email directly, view it on GitHub
<#1263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHTMABUCTATF6AXCRMDH3QTXZMAJDANCNFSM6AAAAAA4NQQ4KQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Sure thing - the result is "None" which doesn't seem good! Thanks for your
help.
…---------------------
Sam Blackman
1-207-233-8943
***@***.***
https://www.linkedin.com/in/samrblackman/
On Mon, Sep 11, 2023 at 11:42 AM Frédéric Collonval < ***@***.***> wrote:
Would you mind execute in a notebook cell
import osfrom shutil import whichprint(which('git'))
and report here what is the result
—
Reply to this email directly, view it on GitHub
<#1263 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHTMABXVRJ45WPWH2KIAMNDXZ4WNDANCNFSM6AAAAAA4NQQ4KQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hi Frederic, I'm sure you're busy, I thought I'd ping you. Have you had a
chance to look into this further? Thanks for your help.
…-Sam
On Mon, Sep 11, 2023 at 12:04 PM Sam Blackman ***@***.***>
wrote:
Sure thing - the result is "None" which doesn't seem good! Thanks for your
help.
---------------------
Sam Blackman
1-207-233-8943
***@***.***
https://www.linkedin.com/in/samrblackman/
On Mon, Sep 11, 2023 at 11:42 AM Frédéric Collonval <
***@***.***> wrote:
> Would you mind execute in a notebook cell
>
> import osfrom shutil import whichprint(which('git'))
>
> and report here what is the result
>
> —
> Reply to this email directly, view it on GitHub
> <#1263 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHTMABXVRJ45WPWH2KIAMNDXZ4WNDANCNFSM6AAAAAA4NQQ4KQ>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***
> com>
>
|
Beta Was this translation helpful? Give feedback.
-
Hi Frederic, any updates? Appreciate your help. Thanks
…On Tue, Sep 19, 2023 at 5:52 PM Sam Blackman ***@***.***> wrote:
Hi Frederic, I'm sure you're busy, I thought I'd ping you. Have you had a
chance to look into this further? Thanks for your help.
-Sam
On Mon, Sep 11, 2023 at 12:04 PM Sam Blackman ***@***.***>
wrote:
> Sure thing - the result is "None" which doesn't seem good! Thanks for
> your help.
>
> ---------------------
> Sam Blackman
> 1-207-233-8943
> ***@***.***
> https://www.linkedin.com/in/samrblackman/
>
>
> On Mon, Sep 11, 2023 at 11:42 AM Frédéric Collonval <
> ***@***.***> wrote:
>
>> Would you mind execute in a notebook cell
>>
>> import osfrom shutil import whichprint(which('git'))
>>
>> and report here what is the result
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#1263 (reply in thread)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AHTMABXVRJ45WPWH2KIAMNDXZ4WNDANCNFSM6AAAAAA4NQQ4KQ>
>> .
>> You are receiving this because you were mentioned.Message ID:
>> ***@***.***
>> .com>
>>
>
|
Beta Was this translation helpful? Give feedback.
-
Hi team,
It's been 5 months or so, and I still have this issue. Any direction would
be appreciated. Thanks... I'd like to use Git in my jupyterlab yet this
seems unfeasible.
Thanks
Sam
---------------------
Sam Blackman
1-207-233-8943
***@***.***
…On Thu, Oct 19, 2023 at 1:44 PM Sam Blackman ***@***.***> wrote:
Hi Frederic, any updates? Appreciate your help. Thanks
On Tue, Sep 19, 2023 at 5:52 PM Sam Blackman ***@***.***>
wrote:
> Hi Frederic, I'm sure you're busy, I thought I'd ping you. Have you had a
> chance to look into this further? Thanks for your help.
>
> -Sam
>
>
> On Mon, Sep 11, 2023 at 12:04 PM Sam Blackman ***@***.***>
> wrote:
>
>> Sure thing - the result is "None" which doesn't seem good! Thanks for
>> your help.
>>
>> ---------------------
>> Sam Blackman
>> 1-207-233-8943
>> ***@***.***
>> https://www.linkedin.com/in/samrblackman/
>>
>>
>> On Mon, Sep 11, 2023 at 11:42 AM Frédéric Collonval <
>> ***@***.***> wrote:
>>
>>> Would you mind execute in a notebook cell
>>>
>>> import osfrom shutil import whichprint(which('git'))
>>>
>>> and report here what is the result
>>>
>>> —
>>> Reply to this email directly, view it on GitHub
>>> <#1263 (reply in thread)>,
>>> or unsubscribe
>>> <https://github.com/notifications/unsubscribe-auth/AHTMABXVRJ45WPWH2KIAMNDXZ4WNDANCNFSM6AAAAAA4NQQ4KQ>
>>> .
>>> You are receiving this because you were mentioned.Message ID:
>>> <jupyterlab/jupyterlab-git/repo-discussions/1263/comments/6969302@
>>> github.com>
>>>
>>
|
Beta Was this translation helpful? Give feedback.
-
Hi Team -
I'm trying to get this working in a Jupyterlab instance I've created without Anaconda and can't seem to get it working. I've set my Jupyterlab version < 4 and installed Git and node.js (manually from their site), yet no dice. I keep getting "git command not found make sure Git version >2 is installed" messages.
I also have installed the lab extension and it shows up as "OK" and so I'm not sure what is the issue. I've read that this cannot work in a Jupyterlab instance created outside of Anaconda (I just built my own virtual environment).
Sorry if this is an ignorant question; please point me in the right direction if so! Just not sure what to do at this point. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions