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

Notebooks exported from py files have incorrect working directory #3656

Closed
IanMatthewHuff opened this issue Jan 24, 2019 · 5 comments
Closed
Assignees

Comments

@IanMatthewHuff
Copy link
Member

  1. Run a cell that loads data from somewhere, and make sure it runs fine
    import pandas as pd # pandas is a dataframe library
    df = pd.read_csv("./data/pima-data.csv") # load Pima data
    df.head(5)

  2. run command "Export the current file and output as Jupyter Notebooks", and then click on "Open in browser" once it's finished.

Expected: the notebook runs fine.
Actual: the notebook isn't able to load the data file.

@IanMatthewHuff IanMatthewHuff self-assigned this Jan 25, 2019
@IanMatthewHuff
Copy link
Member Author

Looks ok to me currently. Not sure what Rong was doing differently for steps:
ExportCD.png

@IanMatthewHuff
Copy link
Member Author

Import CD looks ok as well:
ImportCD.png

@IanMatthewHuff
Copy link
Member Author

Looks like it just might be the Right click context menu items that have this issue?

@ronglums
Copy link
Contributor

yeah I was using the context menu.

@IanMatthewHuff
Copy link
Member Author

Yeah, I ran into it. Got a fix out now, looks like the new context menu commands didn't have the %cd code in them.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 25, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants