{"id":21400,"library":"gravis","title":"gravis","description":"Gravis is an interactive graph visualization library for Python. It generates HTML/CSS/JS visualizations that can be embedded in notebooks or served as standalone web apps. Current version 0.1.0 requires Python >=3.5. Released infrequently.","status":"active","version":"0.1.0","language":"python","source_language":"en","source_url":"https://github.com/robert-haas/gravis/","tags":["graph visualization","interactive","networkx","jupyter","html"],"install":[{"cmd":"pip install gravis","lang":"bash","label":"Install gravis"}],"dependencies":[{"reason":"Required for interactive display in Jupyter notebooks (notebook or lab)","package":"ipython","optional":true}],"imports":[{"wrong":"import gravis","symbol":"gravis","correct":"import gravis"}],"quickstart":{"code":"import gravis as gv\nimport networkx as nx\nG = nx.Graph()\nG.add_edge('a', 'b')\n# For Jupyter: use gv.d3(G) or gv.vis(G)\n# For standalone web app: gv.d3(G, use_standalone=True)\nfig = gv.d3(G)\nfig.display()","lang":"python","description":"Basic usage: create a NetworkX graph, then visualize with gravis."},"warnings":[{"fix":"Ensure input is a NetworkX Graph, DiGraph, etc.","message":"The 'graph' module (gv.d3 or gv.vis) expects a NetworkX graph. Using other graph types may cause unexpected errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Change to 'import gravis as gv'.","message":"The old import pattern 'from gravis import gv' does not work. Always use 'import gravis as gv'.","severity":"deprecated","affected_versions":"0.1.0"}],"env_vars":null,"search_vec":"'0.1.0':29 '3.5':32 'app':26 'current':27 'embed':18 'generat':12 'graph':6,35 'gravi':1,2 'html':40 'html/css/js':13 'infrequ':34 'interact':5,37 'jupyt':39 'librari':8 'networkx':38 'notebook':20 'python':10,31 'releas':33 'requir':30 'serv':22 'standalon':24 'version':28 'visual':7,14,36 'web':25","created_at":"2026-04-27T16:59:41.572537+00:00","updated_at":"2026-04-27T16:59:41.572537+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpooftzpxh/venv/lib/python3.12/site-packages/gravis/__init__.py\", line 19, in <module>\n    from ._internal.plotting import d3, three, vis\n  File \"/tmp/tmpooftzpxh/venv/lib/python3.12/site-packages/gravis/_interna"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.1.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://robert-haas.github.io/gravis-docs/","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/gravis/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}