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

mirrord not working in VS code jupyter #3

Open
alonme opened this issue Dec 7, 2022 · 3 comments
Open

mirrord not working in VS code jupyter #3

alonme opened this issue Dec 7, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@alonme
Copy link

alonme commented Dec 7, 2022

Bug Description

Mirrord doesn't seem to mirror network operations when using it through vscode inside a jupyter notebook.

Steps to Reproduce

to reproduce save the following json as XXX.ipynb, and open it with vscode and debug the cell using the dropdown menu

image

i am getting my ip, instead of the one of my cluster

{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "ip = requests.get(\"https://checkip.amazonaws.com\").text.strip()\n",
    "print(ip)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3.8.7 ('.venv': poetry)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.7"
  },
  "orig_nbformat": 4,
  "vscode": {
   "interpreter": {
    "hash": "5e06dea6d00be0c404d7d97cc88274261dff12025f3151a0ade91cb9e1d96187"
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}

Backtrace

No response

Relevant Logs

No response

Your operating system and version

Macos 13.0.1

Local process

python cell through vscode jupyter

Local process version

No response

Additional Info

No response

@alonme alonme added the bug Something isn't working label Dec 7, 2022
@aviramha aviramha transferred this issue from metalbear-co/mirrord Jun 17, 2023
@aviramha
Copy link
Member

Unfortunately can't be solved because of VS Code limitation.

@aviramha aviramha closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2024
@alonme
Copy link
Author

alonme commented Oct 24, 2024

@aviramha can you elaborate? Let's open an issue for vscode? Or is there already a relevant one?

@aviramha aviramha reopened this Oct 24, 2024
@aviramha
Copy link
Member

My bad, there might be more exploration that can be done (I see there's quite a lot of 'onX' extension points we might be able to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants