You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by GitBox <gi...@apache.org> on 2022/07/05 12:54:53 UTC

[GitHub] [incubator-linkis] CCweixiao opened a new issue, #2206: [Feature] Add the function of show_html to Linkis' python engine or pyspark engine

CCweixiao opened a new issue, #2206:
URL: https://github.com/apache/incubator-linkis/issues/2206

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar feature requirement.
   
   
   ### Problem Description
   
   _No response_
   
   ### Description
   
   在某些场景下非常有用,例如:开发者封装业务逻辑,然后输出成表单形式,供普通用户使用,功能类似于apiservice,但更加灵活。
   It is very useful in some scenarios. For example, developers encapsulate business logic, and then output it into a form for ordinary users to use. The function is similar to apiservice, but it is more flexible.
   
   ### Use case
   
   <img width="1157" alt="image" src="https://user-images.githubusercontent.com/27730211/171417095-287618b0-ed10-43ed-b800-4ade448b0c34.png">
   
   
   ### solutions
   
   /linkis_project/linkis-engineconn-plugins/engineconn-plugins/python/src/main/resources/python/python.py
   
   ```python
   def show_html(html_content, width="auto", height="auto"):
     html = "<div style='width:{width};height:{height}'>{html_content}<div>"
     intp.showHTML(html.format(width=width, height=height, html_content=html_content))
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org


[GitHub] [incubator-linkis] peacewong closed issue #2206: [Feature] Add the function of show_html to Linkis' python engine or pyspark engine

Posted by GitBox <gi...@apache.org>.
peacewong closed issue #2206: [Feature] Add the function of show_html to Linkis' python engine or pyspark engine
URL: https://github.com/apache/incubator-linkis/issues/2206


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org