Hi Jason,

Thank you very much for your response. I tried everything, but for some
reason the problem still persists.

The only code that gave me the real working folder path was :

globals()['_dh'][0]

And I took it from:
https://stackoverflow.com/questions/39125532/file-does-not-exist-in-jupyter-notebook/53958599#53958599

But I wasn't able to make the ipynb file to load the current folder path :(
... I also tried uninstalling and installing jupyter again.

On Tue, Jan 28, 2020 at 4:49 PM Jason Grout <[email protected]> wrote:

> You can change that default directory in the notebook configuration, or
> from the comand line with: jupyter notebook
> --NotebookApp.notebook_dir='/path/to/directory'.
>
> Perhaps you need to look at your config file. You can find the config file
> in one of the config directories listed by `jupyter --paths`. Look for the
> jupyter_notebook_config.py file.
>
> Here are instructions for setting that config value, which may help narrow
> down things: https://stackoverflow.com/a/40514875
>
> Thanks,
>
> Jason
>
>
> On Tue, Jan 28, 2020 at 2:02 PM Javi Alfaro <[email protected]>
> wrote:
>
>> Good evening from El Salvador,
>>
>> I apologize if my query shouldn't be posted here.
>>
>> I understand that when running Jupyter notebooks, the default working
>> directory is the directory the notebook is open in, but I'm not sure what
>> happened and this doesn't happen anymore, my current working directory has
>> been set, accidentally, to a different path. How can I correct this to the
>> default option?
>>
>> Thanks in advance,
>>
>> Javier Alfaro.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jupyter/70f17237-6aa0-4ff6-9fca-f4a90972304a%40googlegroups.com
>> <https://groups.google.com/d/msgid/jupyter/70f17237-6aa0-4ff6-9fca-f4a90972304a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/CAPDWZHwGHTW-%3DOFW4%3DbkJTBLtNCqONSxvFNeM%3DWxneERHMp-yA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jupyter/CAPDWZHwGHTW-%3DOFW4%3DbkJTBLtNCqONSxvFNeM%3DWxneERHMp-yA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CACJGEmGLw2coHT%2B1_Ou3WjPK3aogM40gQhdBbPTP65e71NXNMg%40mail.gmail.com.

Reply via email to