Coder Social home page Coder Social logo

snehankekre / streamlit-forum Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 5.57 MB

Streamlit component to display topics from Streamlit's community forum related to any exception.

Home Page: https://pypi.org/project/streamlit-forum/

License: Apache License 2.0

Python 100.00%
streamlit-component streamlit discourse developer-tools python

streamlit-forum's Introduction

streamlit-forum

Streamlit component to display topics from Streamlit's community forum related to any exception.

Installation

PyPI version fury.io

pip install streamlit-forum

Usage

import streamlit as st
from streamlit_forum import forum

with forum():
    import streamlit as st
    # Your code that may raise an exception here. E.g.
    0/0
streamlit-forum.mp4

Docs

To view the docstring, import Streamlit and the component and call st.help(forum).

streamlit_forum.forum(top=5, criteria='broad', sortby='relevance', status='any')
Use in a `with` block to execute some code and display 
topics from Streamlit's community forum related to any exception.

Parameters
----------
top : int
    Number of topics to display. Default is 5.
criteria : str
    Search criteria. Either 'broad' or 'narrow'. Default is 'broad'.
sortby : str
    Sort criteria. Either 'relevance', 'views', 'likes', or 'latest_topic'.
    Default is 'relevance'.
status : str
    Status of forum topic. Either 'open', 'closed', 'public', 'archived',
    'noreplies', 'single_user', 'solved', 'unsolved'. Default is 'any'.

Examples
--------
>>> import streamlit as st
>>> from streamlit_forum import forum
...
>>> with forum():
>>>     import streamlit as st
>>>     # Your code that may raise an exception here. E.g.
>>>     0/0

streamlit-forum's People

Contributors

okld avatar snehankekre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.