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

Trouble displaying output using R leaflet library #15692

Open
1 of 2 tasks
mastrodonte113 opened this issue May 15, 2024 · 0 comments
Open
1 of 2 tasks

Trouble displaying output using R leaflet library #15692

mastrodonte113 opened this issue May 15, 2024 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@mastrodonte113
Copy link

mastrodonte113 commented May 15, 2024

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

I'm currently using Jupyter Notebook within VSCode and have installed the R leaflet library.
However, I'm encountering an issue as there's no output displayed in the notebook. For instance, I've tried running the following code:

library(leaflet)
leaflet() %>% addTiles()

The code seems to execute correctly, as indicated by the green checkmark, but I'm not seeing anything, as you can see in the screenshot:
01

However, when I run the same code in a regular .r file in VSCode, it works just fine:
02

This is the version of R I am using in VSCode Jupyter notebook if it can help:

            _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          4                           
minor          1.3                         
year           2022                        
month          03                          
day            10                          
svn rev        81868                       
language       R                           
version.string R version 4.1.3 (2022-03-10)
nickname       One Push-Up    

I've noticed a similar issue with other libraries like rpivotTable. What could I be doing wrong?

Any help would be greatly appreciated!

VS Code Version

Version: 1.89.1 (user setup) Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:13:33.891Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.22631

Jupyter Extension Version

v2024.4.0

Jupyter logs

No response

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

@mastrodonte113 mastrodonte113 added the bug Issue identified by VS Code Team member as probable bug label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants