-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac69d42
commit 669e611
Showing
6 changed files
with
213 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/03_file_viewer.ipynb. | ||
|
||
# %% auto 0 | ||
__all__ = ['FileViewer'] | ||
|
||
# %% ../nbs/03_file_viewer.ipynb 1 | ||
import ipywidgets as widgets | ||
from ipywidgets import VBox, HBox, HTML, Button, Label, Text, Checkbox, Accordion, FileUpload | ||
from IPython.display import display, clear_output | ||
import ipyvuetify as v | ||
from traitlets import observe | ||
|
||
# %% ../nbs/03_file_viewer.ipynb 2 | ||
class FileViewer(VBox): | ||
|
||
def __init__(self): | ||
super().__init__() | ||
|
||
# File viewer (hidden in accordion) | ||
self.file_viewer_accordion = Accordion(children=[HTML('File viewer content')]) | ||
self.file_viewer_accordion.selected_index = None # Hide the accordion content initially | ||
|
||
# Arrange widgets vertically | ||
self.children = [ | ||
self.file_viewer_accordion, # File viewer (hidden initially) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "d09b853a-3124-4232-9618-3b6761678bc5", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#| default_exp file_viewer" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "d8e6a32e-e248-4ec4-9763-7a18c8cd0b9b", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#| export\n", | ||
"import ipywidgets as widgets\n", | ||
"from ipywidgets import VBox, HBox, HTML, Button, Label, Text, Checkbox, Accordion, FileUpload\n", | ||
"from IPython.display import display, clear_output\n", | ||
"import ipyvuetify as v\n", | ||
"from traitlets import observe" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "07c50690-0a66-4b72-b819-6fd06b1c9016", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#| export\n", | ||
"\n", | ||
"class FileViewer(VBox):\n", | ||
" \n", | ||
" def __init__(self):\n", | ||
" super().__init__()\n", | ||
" \n", | ||
" # File viewer (hidden in accordion)\n", | ||
" self.file_viewer_accordion = Accordion(children=[HTML('File viewer content')])\n", | ||
" self.file_viewer_accordion.selected_index = None # Hide the accordion content initially\n", | ||
"\n", | ||
" # Arrange widgets vertically\n", | ||
" self.children = [\n", | ||
" self.file_viewer_accordion, # File viewer (hidden initially)\n", | ||
" ]" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "ae7ac138-aa5d-4c47-ae8d-18deb24b5627", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"file_viewer = FileViewer()\n", | ||
"file_viewer" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "7cd9b87a-4ce9-42b7-857d-037a7a0b3d44", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#| hide\n", | ||
"import nbdev; nbdev.nbdev_export()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "5a75be53-5c9c-43d2-9aaa-b4c3c2ecab8d", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "python3", | ||
"language": "python", | ||
"name": "python3" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters