-
Notifications
You must be signed in to change notification settings - Fork 91
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
Positron Web: Various R plot packages don't work (similar issue between packages) #4804
Labels
area: plots
Issues related to Plots category.
area: workbench
Issues related to Workbench category.
lang: r
Milestone
Comments
testlabauto
added
area: plots
Issues related to Plots category.
area: workbench
Issues related to Workbench category.
lang: r
labels
Sep 24, 2024
I'm fixing this while working on #4274 |
sharon-wang
added a commit
that referenced
this issue
Oct 1, 2024
### Description - part of #4274 - addresses #4804 - should unblock #4806, where the new plotly rendering method relies on a proxy server instead of an HTML file proxy #### Changes - add a new command to create a generic proxy server `positronProxy.startHttpProxyServer` - rename the command `positronProxy.stopHelpProxyServer` to `positronProxy.stopProxyServer` since it is not help-specific - rename `resources/scripts.html` to `resources/scripts_help.html` since it is help-specific - move the src/href rewriting to a private reusable function `rewriteUrlsWithProxyPath`, which is now used by the generic http proxy and the help proxy `contentRewriter` - update `src/vs/code/browser/workbench/workbench.ts` to resolve the uri while maintaining the uri's original path, query string and fragment strings (NOTE: needs to be contributed upstream) - update `src/vs/workbench/services/languageRuntime/common/languageRuntimeUiClient.ts` to choose between starting an HTML file proxy if a file is being served or a generic http proxy if the content is not a file ### QA Notes On Server Web and Workbench, running the following in the corresponding consoles: ##### Python `pip install plotly nbformat pandas` ```python import plotly.express as px fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) fig.show() ``` ##### R `install.packages('plotly')` ```r library(plotly) fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) fig ``` #### Expected Result The corresponding interactive plots should display in the plots pane and be interact-able!
sharon-wang
added a commit
that referenced
this issue
Oct 2, 2024
### Description A follow-up to #4806 to revert `src/vs/workbench/services/languageRuntime/common/languageRuntimeUiClient.ts` back to using a proxy for interactive plots. A generic HTTP proxy was added via #4855, so server plots can be proxied appropriately in Server Web and Workbench. Related to - #4804 - #4274 - #4245 ### QA Notes On Server Web and Workbench, running the following in the corresponding consoles: ##### Python `pip install plotly nbformat pandas` ```python import plotly.express as px fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) fig.show() ``` ##### R `install.packages('plotly')` ```r library(plotly) fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) fig ``` #### Expected Result The corresponding interactive plots should display in the plots pane and be interact-able!
Verified Fixed
Test scenario(s)All scenarios in ticket now work! Link(s) to TestRail test cases run or created: |
isabelizimm
pushed a commit
that referenced
this issue
Oct 16, 2024
### Description - part of #4274 - addresses #4804 - should unblock #4806, where the new plotly rendering method relies on a proxy server instead of an HTML file proxy #### Changes - add a new command to create a generic proxy server `positronProxy.startHttpProxyServer` - rename the command `positronProxy.stopHelpProxyServer` to `positronProxy.stopProxyServer` since it is not help-specific - rename `resources/scripts.html` to `resources/scripts_help.html` since it is help-specific - move the src/href rewriting to a private reusable function `rewriteUrlsWithProxyPath`, which is now used by the generic http proxy and the help proxy `contentRewriter` - update `src/vs/code/browser/workbench/workbench.ts` to resolve the uri while maintaining the uri's original path, query string and fragment strings (NOTE: needs to be contributed upstream) - update `src/vs/workbench/services/languageRuntime/common/languageRuntimeUiClient.ts` to choose between starting an HTML file proxy if a file is being served or a generic http proxy if the content is not a file ### QA Notes On Server Web and Workbench, running the following in the corresponding consoles: ##### Python `pip install plotly nbformat pandas` ```python import plotly.express as px fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) fig.show() ``` ##### R `install.packages('plotly')` ```r library(plotly) fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) fig ``` #### Expected Result The corresponding interactive plots should display in the plots pane and be interact-able!
isabelizimm
pushed a commit
that referenced
this issue
Oct 16, 2024
### Description A follow-up to #4806 to revert `src/vs/workbench/services/languageRuntime/common/languageRuntimeUiClient.ts` back to using a proxy for interactive plots. A generic HTTP proxy was added via #4855, so server plots can be proxied appropriately in Server Web and Workbench. Related to - #4804 - #4274 - #4245 ### QA Notes On Server Web and Workbench, running the following in the corresponding consoles: ##### Python `pip install plotly nbformat pandas` ```python import plotly.express as px fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) fig.show() ``` ##### R `install.packages('plotly')` ```r library(plotly) fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) fig ``` #### Expected Result The corresponding interactive plots should display in the plots pane and be interact-able!
isabelizimm
pushed a commit
that referenced
this issue
Oct 16, 2024
### Description - part of #4274 - addresses #4804 - should unblock #4806, where the new plotly rendering method relies on a proxy server instead of an HTML file proxy #### Changes - add a new command to create a generic proxy server `positronProxy.startHttpProxyServer` - rename the command `positronProxy.stopHelpProxyServer` to `positronProxy.stopProxyServer` since it is not help-specific - rename `resources/scripts.html` to `resources/scripts_help.html` since it is help-specific - move the src/href rewriting to a private reusable function `rewriteUrlsWithProxyPath`, which is now used by the generic http proxy and the help proxy `contentRewriter` - update `src/vs/code/browser/workbench/workbench.ts` to resolve the uri while maintaining the uri's original path, query string and fragment strings (NOTE: needs to be contributed upstream) - update `src/vs/workbench/services/languageRuntime/common/languageRuntimeUiClient.ts` to choose between starting an HTML file proxy if a file is being served or a generic http proxy if the content is not a file ### QA Notes On Server Web and Workbench, running the following in the corresponding consoles: ##### Python `pip install plotly nbformat pandas` ```python import plotly.express as px fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) fig.show() ``` ##### R `install.packages('plotly')` ```r library(plotly) fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) fig ``` #### Expected Result The corresponding interactive plots should display in the plots pane and be interact-able!
isabelizimm
pushed a commit
that referenced
this issue
Oct 16, 2024
### Description A follow-up to #4806 to revert `src/vs/workbench/services/languageRuntime/common/languageRuntimeUiClient.ts` back to using a proxy for interactive plots. A generic HTTP proxy was added via #4855, so server plots can be proxied appropriately in Server Web and Workbench. Related to - #4804 - #4274 - #4245 ### QA Notes On Server Web and Workbench, running the following in the corresponding consoles: ##### Python `pip install plotly nbformat pandas` ```python import plotly.express as px fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) fig.show() ``` ##### R `install.packages('plotly')` ```r library(plotly) fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) fig ``` #### Expected Result The corresponding interactive plots should display in the plots pane and be interact-able!
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: plots
Issues related to Plots category.
area: workbench
Issues related to Workbench category.
lang: r
System details:
Positron and OS details:
Dev build on Sep 24, 24
Interpreter details:
R 4.3.3
Describe the issue:
Highcharter, leaflet and plotly plots not working in web version. Plot view shows:
Steps to reproduce the issue:
Highcharter
Leaflet
Plotly
Expected or desired behavior:
Plots generated
Were there any error messages in the UI, Output panel, or Developer Tools console?
from VSCode
The text was updated successfully, but these errors were encountered: