Tm1py: TM1Py functions

Created on 25 Aug 2020  路  3Comments  路  Source: cubewise-code/tm1py

Hi there,
I am new with tm1py and just made my first python script to import data into Power BI.
Because I am not familiar with all the tm1py functions, I want to make use of the possibility to use the 'tab' tosee the functions.
See myprintscreen:
image

I installed jupyter notebook, upgraded tm1py but when I am using 'tab' after
tm1.cubes.cells. or even after
tm1.power_bi.
nothing happened.

How can I see the functions which are available on tm1py?

Thanks in advance.

question

Most helpful comment

If you are a beginner and not sure about which function to execute then the best IDE that you should use is PyCharm.
Pycharm is very fast at _auto-completion_ because it will load all the libraries in memory.

To answer your question:
If you have already executed a cell and type further lines in that cell... then the use of 'tab' after a 'dot' won't work.

Basically what I'm saying is use a separate cell for creating the tm1 object and type the remaining code in some other cell.

image

All 3 comments

If you are a beginner and not sure about which function to execute then the best IDE that you should use is PyCharm.
Pycharm is very fast at _auto-completion_ because it will load all the libraries in memory.

To answer your question:
If you have already executed a cell and type further lines in that cell... then the use of 'tab' after a 'dot' won't work.

Basically what I'm saying is use a separate cell for creating the tm1 object and type the remaining code in some other cell.

image

Thanks a lot everybody.
That helped alot.

Was this page helpful?
0 / 5 - 0 ratings