Skip to content

Impact of JUPYTER_DATA_DIR in winpython.ini #1288

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

Open
CaptainInler opened this issue Jan 30, 2024 · 0 comments
Open

Impact of JUPYTER_DATA_DIR in winpython.ini #1288

CaptainInler opened this issue Jan 30, 2024 · 0 comments

Comments

@CaptainInler
Copy link

I want to run Jupyter Lab.exe, but point the working folder of Jupyter to a predefined folder where all my existing notebooks are located. Changing JUPYTER_DATA_DIR from winpython.ini seems to have no impact at all. Neither does WINPYWORKDIR.

The only thing that kind of worked was to add WINPYWORKDIR1 (note 1 at the end) as winjupyter_lab.bat points to that

@echo off
call "%~dp0env_for_icons.bat" %*
cd/D "%WINPYWORKDIR1%"
"%WINPYDIR%\scripts\jupyter-lab.exe" %*

Unfortunately, this creates some files in the defined path that I don't want there.

Looking at the script files, it seems to me that JUPYTER_DATA_DIR in env.bat and WinPython_PS_Prompt.ps1 is overwritten by %%HOME%%%, but commenting it out didn't change anything.

The only things that works at the moment are:

My question: are the variables in winpython.ini meant to solve my task, or do I misunderstand the concept of winpython.ini?

Version I test with: 3.11.6

@stonebig stonebig added this to the 2025-03 PEP 751 / AI local milestone May 4, 2025
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