nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.91k stars 335 forks source link

Kernel for converted .ipynb files always opens in user's home directory #2148

Open mschroen opened 2 years ago

mschroen commented 2 years ago

Description

When running a Kernel on an automatically converted .ipynb file with Hydrogen on Atom on Win10, the current working directory always is my user home directory. No matter what I set in the settings for this option.

Steps to Reproduce

  1. Open an existing .ipynb file in Atom, it will be converted and opens in a new tab "untitled".
  2. Write import os and os.getcwd()
  3. Will output user home directory instead of the project's directory nor the current files directory.

OS version: Windows 10 Atom: 1.60.0 x64 Hydrogen: 2.16.3

Plugins

Have you installed and activated any of the Hydrogen plugins below ?

Expected behavior

output current projects directory or file directory

--- EDIT--- Works for .py files, but does not work for .ipynb files!