Skip to content

Commit

Permalink
using Jupyter magic commands %
Browse files Browse the repository at this point in the history
  • Loading branch information
sadasant committed Jun 24, 2022
1 parent 89d1691 commit 88d099b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ suite('DataScience - DataViewerDependencyService', () => {
assert.equal(await resultPromise, undefined);
assert.deepEqual(
stub.getCalls().map((call) => call.lastArg),
[getVersionOfPandasCommand, 'pip install pandas']
[getVersionOfPandasCommand, '%pip install pandas']
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export class DataViewerDependencyService implements IDataViewerDependencyService
Common.install()
);

const command = `${this.packaging(kernel)} install pandas`;
// From https://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-pip (%conda is here as well).
const command = `%${this.packaging(kernel)} install pandas`;

if (selection === Common.install()) {
try {
Expand Down

0 comments on commit 88d099b

Please sign in to comment.