-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for creating Python sessions using the reticulate R package. The Reticulate Python session behaves just like any other Python session - ie, you can interact with the console, variables pane, data explorer, etc. The difference is that, since the Reticulate session is running in the same process as it's parent R session, you can easily share objects between R and Python sessions. --------- Signed-off-by: Daniel Falbel <[email protected]> Co-authored-by: Wasim Lorgat <[email protected]>
- Loading branch information
Showing
18 changed files
with
10,522 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
extensions/positron-reticulate/extension.webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (C) 2024 Posit Software, PBC. All rights reserved. | ||
* Licensed under the Elastic License 2.0. See LICENSE.txt for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
//@ts-check | ||
|
||
'use strict'; | ||
|
||
const withDefaults = require('../shared.webpack.config'); | ||
|
||
module.exports = withDefaults({ | ||
context: __dirname, | ||
entry: { | ||
extension: './src/extension.ts', | ||
}, | ||
node: { | ||
__dirname: false | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"name": "positron-reticulate", | ||
"displayName": "%displayName%", | ||
"description": "%description%", | ||
"version": "0.0.1", | ||
"publisher": "vscode", | ||
"engines": { | ||
"vscode": "^1.65.0" | ||
}, | ||
"activationEvents": [ | ||
"onStartupFinished" | ||
], | ||
"main": "./out/extension.js", | ||
"scripts": { | ||
"vscode:prepublish": "yarn run compile", | ||
"pretest": "yarn run compile && yarn run lint", | ||
"lint": "eslint src --ext ts" | ||
}, | ||
"contributes": { | ||
"languageRuntimes": [ | ||
{ | ||
"languageId": "reticulate" | ||
} | ||
], | ||
"configuration": { | ||
"type": "object", | ||
"title": "%configurationTitle%", | ||
"properties": { | ||
"positron.reticulate.enabled": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "%enabledDescription%" | ||
} | ||
} | ||
} | ||
}, | ||
"extensionDependencies": [ | ||
"ms-python.python", | ||
"vscode.positron-r", | ||
"vscode.jupyter-adapter" | ||
], | ||
"devDependencies": { | ||
"@types/glob": "^7.2.0", | ||
"@types/mocha": "^9.1.0", | ||
"@types/node": "14.x", | ||
"@typescript-eslint/eslint-plugin": "^5.12.1", | ||
"@typescript-eslint/parser": "^5.12.1", | ||
"@vscode/test-electron": "^2.1.2", | ||
"inversify": "^6.0.1", | ||
"eslint": "^8.9.0", | ||
"glob": "^7.2.0", | ||
"mocha": "^9.2.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.5.5", | ||
"vsce": "^2.11.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/posit-dev/positron" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"displayName": "Positron Reticulate", | ||
"description": "Provides reticulate support for positron", | ||
"configurationTitle": "Reticulate settings", | ||
"enabledDescription": "Enables reticulate console sessions" | ||
} |
7,316 changes: 7,316 additions & 0 deletions
7,316
extensions/positron-reticulate/resources/branding/reticulate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.