Skip to content

Commit

Permalink
Fix bug where uninstalling a bundled Python package twice worked (#6426)
Browse files Browse the repository at this point in the history
Related to #6233.

### Release Notes

#### New Features

- N/A

#### Bug Fixes

- N/A

### QA Notes

Running `pip uninstall ipykernel` any number of times should not work.
  • Loading branch information
seeM authored Feb 24, 2025
1 parent aa00c75 commit 7502ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/positron-python/src/client/positron/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { Console } from '../common/utils/localize';
import { getIpykernelBundle, IPykernelBundle } from './ipykernel';

/** Regex for commands to uninstall packages using supported Python package managers. */
const _uninstallCommandRegex = /(pip|pipenv|conda).*uninstall|poetry.*remove/g;
const _uninstallCommandRegex = /(pip|pipenv|conda).*uninstall|poetry.*remove/;

/**
* A Positron language runtime that wraps a Jupyter kernel and a Language Server
Expand Down

0 comments on commit 7502ee7

Please sign in to comment.