I am using anaconda3 windows10
I am coding main.ipynb using jupyter notebook
I wrote a function in 2.py which is in the same folder as the main.ipynb
when after I updated the 2.py and saved file, and trying run the code in main,
I find Jupiter not picking up the updated code 2.py file even I ran the code from the very top to bottom.
I have to restart the kernel for every single update in the 2.py
and showing me an error
Error:
FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
from pandas.util.testing import assert_frame_equal
Does anyone know what can I do about this?
(May-17-2020, 05:51 AM)buunaanaa Wrote: [ -> ]Does anyone know what can I do about this?
How should anyone now what you have done or the content it apply to
it's the message i talk about in
post #4.
Just to show that i also can get this message.
(my_env) E:\div_code\my_env
λ python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pinkfish as pf
Error:
E:\div_code\my_env\lib\site-packages\pandas_datareader\compat\__init__.py:7: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
from pandas.util.testing import assert_frame_equal
So this is to get pinkfish to work,after edit of source code in
fetch.py
.
As i told you can ignore this message.
import one more time in same run and is't gone.
>>> import pinkfish as pf
>>>
Put you got other problems
after
this fix,
then i did show how to run all of this in virtual environment
post #8.
sorry, this is not related to the last problem I had.
#main.ipynb
import pandas as pd
import numpy as np
import os
from pandas import DataFrame
from datetime import datetime
import matplotlib.pyplot as plt
#import pyEX as p
import csv
import requests
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import matplotlib as mpl
%matplotlib inline
from matplotlib.pylab import rcParams
import seaborn as sns
# from talib.abstract import *
# from pandas_datareader import data
import pandas_datareader as dr
import pandas_datareader.data as web
import buunaanaa
x=2
buunaanaa.readbuu(x)
here is the second file:
#buunaanaa.py
def readbuu(x):
print('111')
return x
when i add a line into the 2nd part:
#buunaanaa.py
def readbuu(x):
print('111')
# after i added next line and save the file, it won't show 222 unless i reseat the kernel
print('222')
return x
after i saved buunaanaa.py and run the code in main.ipynb, it won't show 222 unless i restart the kernel.
at the same time it shows me an error
Error:
D:\programs\Anaconda3\lib\site-packages\pandas_datareader\compat\__init__.py:7: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
from pandas.util.testing import assert_frame_equal
BTW, I un-install the Anaconda and re-installed it completely after I had issues with old pandas.