# Plotly not working in Jupyter R kernel

**URL:** <https://community.plotly.com/t/plotly-not-working-in-jupyter-r-kernel/1616>\
**Category:** Plotly R\
**Created:** [July 22, 2016, 5:24am UTC](https://community.plotly.com/t/plotly-not-working-in-jupyter-r-kernel/1616 "2016-07-22T05:24:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![itf](https://avatars.discourse-cdn.com/v4/letter/i/5f9b8f/32.png) [@itf](https://community.plotly.com/u/itf)\
**Post date:** [July 22, 2016, 5:24am UTC](https://community.plotly.com/t/plotly-not-working-in-jupyter-r-kernel/1616/1 "2016-07-22T05:24:03Z")

</div>

Plotly doesn’t seem to be working in my Jupyter R kernel notebooks correctly. For example, the following exact code from a Plotly [example](https://plot.ly/r/) throws the error listed below:

`library(plotly) set.seed(100) d <- diamonds[sample(nrow(diamonds), 1000),] plot_ly(d, x = carat, y = price, text = paste("Clarity: ", clarity), mode = "markers", color = carat, size = carat)`

```
"Error in plot_ly(d, x = carat, y = price, text = paste("Clarity: ", clarity), : object 'carat' not found
Traceback:

1. plot_ly(d, x = carat, y = price, text = paste("Clarity: ", clarity), 
 . mode = "markers", color = carat, size = carat)"

```

Unfortunately the error message “object not found” is not super informative. Any suggestions or ideas why Plotly isn’t working as predicted on well-known dataframes in Jupyter R notebooks?
