Skip to content
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

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

Open
1 of 3 tasks
mschroen opened this issue Mar 31, 2022 · 0 comments
Open
1 of 3 tasks
Labels
bug 🐛 For unexpected issues

Comments

@mschroen
Copy link

mschroen commented Mar 31, 2022

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!

@mschroen mschroen added the bug 🐛 For unexpected issues label Mar 31, 2022
@mschroen mschroen changed the title Kernel always opens in user's home directory Kernel for converted .ipynb files always opens in user's home directory Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 For unexpected issues
Projects
None yet
Development

No branches or pull requests

1 participant