mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
Added fix (#1263)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"execution_count": null,
|
||||
"id": "e9ad60bc",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -16,7 +16,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 18,
|
||||
"execution_count": null,
|
||||
"id": "beb36881",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -43,8 +43,8 @@
|
||||
" return new_str.title()\n",
|
||||
"\n",
|
||||
"def format_plotly(fig, x, y, ticker, expiry, inst):\n",
|
||||
" fig.update_yaxes(title=clean_str(x))\n",
|
||||
" fig.update_xaxes(title=clean_str(y))\n",
|
||||
" fig.update_yaxes(title=clean_str(y))\n",
|
||||
" fig.update_xaxes(title=clean_str(x))\n",
|
||||
" expires = \", \".join(expiry)\n",
|
||||
" title = f\"{clean_str(y)} vs. {clean_str(x)} for {ticker.upper()} {inst}s on {expires}\"\n",
|
||||
" fig.update_layout(\n",
|
||||
@@ -63,29 +63,14 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 19,
|
||||
"execution_count": null,
|
||||
"id": "f8c2f65c",
|
||||
"metadata": {
|
||||
"tags": [
|
||||
"parameters"
|
||||
]
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "5906faf5dfa944a6bee1c6c4b84d8ebd",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"text/plain": [
|
||||
"VBox(children=(HTML(value='<h1>Option Chain Dashboard</h1>'), HBox(children=(VBox(children=(Text(value='', des…"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"class Chart:\n",
|
||||
" def __init__(self):\n",
|
||||
|
||||
Reference in New Issue
Block a user