小编Sac*_*han的帖子

R/ShinyApp没有在浏览器中显示plot_ly,但在查看器窗格中仅显示图形

我面临的问题与R/Shiny图中未提及 的浏览器相同

但在我的情况下,reactivePlot()不起作用.它显示

错误,即"reactivePlot已弃用.请改用renderPlot."

代码不会抛出任何错误.它工作正常.问题仅在于在浏览器中显示图表图表.我在所有浏览器上尝试过它,图形显示在查看器窗格而不是浏览器上,但如果我绘制其他图表,如barplot,它很容易在浏览器上显示.我无法解决问题!! 帮帮我!!提前致谢!!!!

r shiny plotly shinydashboard

6
推荐指数
1
解决办法
3332
查看次数

使用 boto3 从 python 代码执行 Athena 查询显示错误“botocore.errorfactory.InvalidRequestException”

我正在使用 boto3 库执行 Athena 查询,具体代码如下:

import boto3
client = boto3.client('athena')

def main():
    queryStart = client.start_query_execution(
        QueryString = 'SELECT * FROM <tablename>',
        QueryExecutionContext = {
            'Database': '<databasename>'
        },
        ResultConfiguration={
        'OutputLocation': 's3://<outputlocation>',
        'EncryptionConfiguration': {
            'EncryptionOption': 'SSE_S3'
        }
     }
    )
    queryExecution = client.get_query_results(QueryExecutionId=queryStart['QueryExecutionId'],MaxResults=10)
    prinnt(queryExecution)
Run Code Online (Sandbox Code Playgroud)

在执行这个简单的代码时,我收到错误:

  Traceback (most recent call last):
      File "readingathena.py", line 38, in <module>
      main()
      File "readingathena.py", line 33, in main
      for i in response_iterator:
      File "C:\Program Files\Python36\lib\site-packages\botocore\paginate.py", line 255, in __iter__
      response = self._make_request(current_kwargs)
      File "C:\Program Files\Python36\lib\site-packages\botocore\paginate.py", line 332, in …
Run Code Online (Sandbox Code Playgroud)

boto3 amazon-athena

3
推荐指数
1
解决办法
6805
查看次数

标签 统计

amazon-athena ×1

boto3 ×1

plotly ×1

r ×1

shiny ×1

shinydashboard ×1