Code Monkey home page Code Monkey logo

Comments (3)

BBeran avatar BBeran commented on June 5, 2024

You can find an example in the documentation here

https://github.com/tableau/TabPy/blob/master/TableauConfiguration.md#using-deployed-functions

SCRIPT_REAL("
return tabpy.query('add',_arg1,_arg2)['response']",
-SUM([Discount]),SUM([Price]))

You can find a detailed working example with a downloadable sample Tableau workbook showing how to publish models and use the published models in calculated fields on our blog.

from tabpy.

alamhanz avatar alamhanz commented on June 5, 2024

Alright thank you @BBeran but there is another problem,, the tableau can't find the endname

An error occurred while communicating with the Predictive Service.
Error processing script
The endpoint you're trying to query did not respond. Please make sure the endpoint exists and the correct set of arguments are provided.

even though I've add the function to server..

u'add': {u'last_error': None,
  u'status': u'LoadSuccessful',
  u'type': u'model',
  u'version': 1}

what should i do?

from tabpy.

BBeran avatar BBeran commented on June 5, 2024

This is a generic error. So it could be failing because the code fails to run e.g. because incorrect arguments were passed. If you could share the add function definition and how you're calling it from Tableau (most importantly type of data being passed, aggregations used and what does the visualization look like?), we should be able to get to the bottom of this quickly.

from tabpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.