Skip to content

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

@mschroen

Description

@mschroen

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 ?

  • hydrogen-python
  • Hydrogen Launcher
  • Data Explorer

Expected behavior

output current projects directory or file directory

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛For unexpected issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions