Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adds abspath for files search #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions pandas_ui/funct1.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
import plotly.graph_objects as go
import numpy as np
import sys
from IPython.display import display, HTML;import os
from IPython.display import display, HTML
import os



Expand Down Expand Up @@ -1371,15 +1372,12 @@ def column_selected_disp(column_selected_val):
#######################################################################################################

def summ_disp(column_summ_val):

patho = eval('pd.__file__')
patho = patho.replace('pandas\__init__.py','')

patho = os.path.abspath(os.path.dirname(__file__))


file = open(patho +"pandas_ui\plot.png", "rb")
file = open(os.path.join(patho, 'plot.png'), "rb")
image = file.read()
file1 = open(patho +"pandas_ui\plt1.png", "rb")
file1 = open(os.path.join(patho, 'plt1.png'), "rb")
image1 = file1.read()
csv = widgets.Image(
value=image,
Expand Down Expand Up @@ -3436,10 +3434,8 @@ def on_bcmd_clicked(antrl):
display(headcmd)
display(lineout)

patho = eval('pd.__file__')
patho = patho.replace('pandas\__init__.py','')
patho = patho+'pandas_ui\panda.html'
file = open(patho, "rb")
patho = os.path.abspath(os.path.dirname(__file__))
file = open(os.path.join(patho, 'panda.html'), "rb")
image = file.read()
htm = widgets.HTML(
value=image
Expand Down Expand Up @@ -4735,9 +4731,8 @@ def plthlp_response(cntrl):
display('~ ld : Add different line dashes to plot based on values of a column')
display('~ mar_x : Add a marginal distribution of x values ( y vales, z values)')
display('~ s_max : Set size of the point in the plot')
patho = eval('pd.__file__')
patho = patho.replace('pandas\__init__.py','')
file = open(patho + 'pandas_ui\zis.jpg', 'rb')
patho = os.path.abspath(os.path.dirname(__file__))
file = open(os.path.join(patho, 'zis.jpg'), "rb")
image = file.read()
display(lineout)
display(' Reference ')
Expand Down