Skip to content

Impact of JUPYTER_DATA_DIR in winpython.ini  #1288

Description

@CaptainInler

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions